github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-node-exporter/templates/verticalpodautoscaler.yaml (about) 1 {{- if and (.Capabilities.APIVersions.Has "autoscaling.k8s.io/v1") (.Values.verticalPodAutoscaler.enabled) }} 2 apiVersion: autoscaling.k8s.io/v1 3 kind: VerticalPodAutoscaler 4 metadata: 5 name: {{ include "prometheus-node-exporter.fullname" . }} 6 namespace: {{ include "prometheus-node-exporter.namespace" . }} 7 labels: 8 {{- include "prometheus-node-exporter.labels" . | nindent 4 }} 9 spec: 10 {{- with .Values.verticalPodAutoscaler.recommenders }} 11 recommenders: 12 {{- toYaml . | nindent 4 }} 13 {{- end }} 14 resourcePolicy: 15 containerPolicies: 16 - containerName: node-exporter 17 {{- with .Values.verticalPodAutoscaler.controlledResources }} 18 controlledResources: 19 {{- toYaml . | nindent 8 }} 20 {{- end }} 21 {{- with .Values.verticalPodAutoscaler.controlledValues }} 22 controlledValues: {{ . }} 23 {{- end }} 24 {{- with .Values.verticalPodAutoscaler.maxAllowed }} 25 maxAllowed: 26 {{- toYaml . | nindent 8 }} 27 {{- end }} 28 {{- with .Values.verticalPodAutoscaler.minAllowed }} 29 minAllowed: 30 {{- toYaml . | nindent 8 }} 31 {{- end }} 32 targetRef: 33 apiVersion: apps/v1 34 kind: DaemonSet 35 name: {{ include "prometheus-node-exporter.fullname" . }} 36 {{- with .Values.verticalPodAutoscaler.updatePolicy }} 37 updatePolicy: 38 {{- toYaml . | nindent 4 }} 39 {{- end }} 40 {{- end }}