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