Compare commits
3 Commits
5a2ea15914
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18e822e949 | ||
|
|
f1c0543a0b | ||
|
|
f67d73d1b8 |
@@ -7,4 +7,4 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: api
|
||||
image: 172.35.0.216:3000/simplifique/vendaweb-api:016c930
|
||||
image: 172.35.0.216:3000/simplifique/vendaweb-api:f1c0543
|
||||
|
||||
@@ -3,4 +3,4 @@ kind: Deployment
|
||||
metadata:
|
||||
name: vendaweb-api
|
||||
spec:
|
||||
replicas: 15
|
||||
replicas: 2
|
||||
|
||||
18
k8s/overlays/prod/hpa.yaml
Normal file
18
k8s/overlays/prod/hpa.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: vendaweb-api
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: vendaweb-api
|
||||
minReplicas: 2
|
||||
maxReplicas: 15
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: 70
|
||||
@@ -5,6 +5,7 @@ namespace: vendaweb-prod
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- hpa.yaml
|
||||
|
||||
patches:
|
||||
- path: service-patch.yaml
|
||||
|
||||
Reference in New Issue
Block a user