Update K8S to include an auto generator of values template
This commit is contained in:
22
opencloud/charts/prometheus/templates/vpa.yaml
Normal file
22
opencloud/charts/prometheus/templates/vpa.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
{{- if .Values.server.verticalAutoscaler.enabled -}}
|
||||
apiVersion: autoscaling.k8s.io/v1
|
||||
kind: VerticalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ template "prometheus.server.fullname" . }}-vpa
|
||||
namespace: {{ include "prometheus.namespace" . }}
|
||||
labels:
|
||||
{{- include "prometheus.server.labels" . | nindent 4 }}
|
||||
spec:
|
||||
targetRef:
|
||||
apiVersion: "apps/v1"
|
||||
{{- if .Values.server.statefulSet.enabled }}
|
||||
kind: StatefulSet
|
||||
{{- else }}
|
||||
kind: Deployment
|
||||
{{- end }}
|
||||
name: {{ template "prometheus.server.fullname" . }}
|
||||
updatePolicy:
|
||||
updateMode: {{ .Values.server.verticalAutoscaler.updateMode | default "Off" | quote }}
|
||||
resourcePolicy:
|
||||
containerPolicies: {{ .Values.server.verticalAutoscaler.containerPolicies | default list | toYaml | trim | nindent 4 }}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user