github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/prometheus-pushgateway/templates/statefulset.yaml (about) 1 {{- if .Values.runAsStatefulSet }} 2 apiVersion: apps/v1 3 kind: StatefulSet 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 serviceName: {{ include "prometheus-pushgateway.fullname" . }} 12 selector: 13 matchLabels: 14 {{- include "prometheus-pushgateway.selectorLabels" . | nindent 6 }} 15 template: 16 metadata: 17 {{- with .Values.podAnnotations }} 18 annotations: 19 {{- toYaml . | nindent 8 }} 20 {{- end }} 21 labels: 22 {{- include "prometheus-pushgateway.defaultLabels" . | nindent 8 }} 23 spec: 24 {{- include "prometheus-pushgateway.podSpec" . | nindent 6 }} 25 {{- if .Values.persistentVolume.enabled }} 26 volumeClaimTemplates: 27 - metadata: 28 {{- with .Values.persistentVolume.annotations }} 29 annotations: 30 {{- toYaml . | nindent 10 }} 31 {{- end }} 32 labels: 33 {{- include "prometheus-pushgateway.defaultLabels" . | nindent 10 }} 34 name: storage-volume 35 spec: 36 accessModes: 37 {{ toYaml .Values.persistentVolume.accessModes }} 38 {{- if .Values.persistentVolume.storageClass }} 39 {{- if (eq "-" .Values.persistentVolume.storageClass) }} 40 storageClassName: "" 41 {{- else }} 42 storageClassName: "{{ .Values.persistentVolume.storageClass }}" 43 {{- end }} 44 {{- end }} 45 resources: 46 requests: 47 storage: "{{ .Values.persistentVolume.size }}" 48 {{- end }} 49 {{- end }}