github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-pushgateway/templates/deployment.yaml (about) 1 {{- if not .Values.runAsStatefulSet }} 2 apiVersion: apps/v1 3 kind: Deployment 4 metadata: 5 labels: 6 {{- include "prometheus-pushgateway.defaultLabels" . | nindent 4 }} 7 name: {{ include "prometheus-pushgateway.fullname" . }} 8 namespace: {{ template "prometheus-pushgateway.namespace" . }} 9 spec: 10 replicas: {{ .Values.replicaCount }} 11 {{- with .Values.strategy }} 12 strategy: 13 {{- toYaml . | nindent 4 }} 14 {{- end }} 15 selector: 16 matchLabels: 17 {{- include "prometheus-pushgateway.selectorLabels" . | nindent 6 }} 18 template: 19 metadata: 20 {{- with .Values.podAnnotations }} 21 annotations: 22 {{- toYaml . | nindent 8 }} 23 {{- end }} 24 labels: 25 {{- include "prometheus-pushgateway.defaultLabels" . | nindent 8 }} 26 spec: 27 {{- include "prometheus-pushgateway.podSpec" . | nindent 6 }} 28 {{- end }}