blob: 557ca6f00c3395a09bbaf23b0dbf5a44da62216a [file] [log] [blame]
Mohammed Naser65cda132024-05-02 14:34:08 -04001{{- if not .Values.runAsStatefulSet }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -05002apiVersion: apps/v1
3kind: Deployment
4metadata:
Mohammed Naser9ad0d462023-01-15 20:36:37 -05005 labels:
Mohammed Naser65cda132024-05-02 14:34:08 -04006 {{- include "prometheus-pushgateway.defaultLabels" . | nindent 4 }}
7 name: {{ include "prometheus-pushgateway.fullname" . }}
8 namespace: {{ template "prometheus-pushgateway.namespace" . }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -05009spec:
10 replicas: {{ .Values.replicaCount }}
Mohammed Naser65cda132024-05-02 14:34:08 -040011 {{- with .Values.strategy }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -050012 strategy:
Mohammed Naser65cda132024-05-02 14:34:08 -040013 {{- toYaml . | nindent 4 }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -050014 {{- end }}
15 selector:
16 matchLabels:
Mohammed Naser65cda132024-05-02 14:34:08 -040017 {{- include "prometheus-pushgateway.selectorLabels" . | nindent 6 }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -050018 template:
19 metadata:
Mohammed Naser65cda132024-05-02 14:34:08 -040020 {{- with .Values.podAnnotations }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -050021 annotations:
Mohammed Naser65cda132024-05-02 14:34:08 -040022 {{- toYaml . | nindent 8 }}
23 {{- end }}
24 labels:
25 {{- include "prometheus-pushgateway.defaultLabels" . | nindent 8 }}
Mohammed Naser9ad0d462023-01-15 20:36:37 -050026 spec:
Mohammed Naser65cda132024-05-02 14:34:08 -040027 {{- include "prometheus-pushgateway.podSpec" . | nindent 6 }}
28{{- end }}