init
This commit is contained in:
commit
f8b377c347
10 changed files with 1147 additions and 0 deletions
25
helm-chart/templates/hpa.yaml
Normal file
25
helm-chart/templates/hpa.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace | default .Values.name }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ .Values.name }}
|
||||
minReplicas: {{ .Values.minReplicas }}
|
||||
maxReplicas: {{ .Values.maxReplicas }}
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: {{ .Values.targetCPUUtilization }}
|
||||
- type: Resource
|
||||
resource:
|
||||
name: memory
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: {{ .Values.targetMemoryUtilization }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue