add hpa
This commit is contained in:
19
k8s/moj-servis/hpa.yaml
Normal file
19
k8s/moj-servis/hpa.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: autoscaling/v2
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: helloo-cicdd-hpa
|
||||||
|
namespace: student-marijanela218
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: moj-servis
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 5
|
||||||
|
metrics:
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: 60
|
||||||
Reference in New Issue
Block a user