github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/prometheus/templates/deployment.yaml (about) 1 # TODO: the original template has service account, roles, etc 2 apiVersion: extensions/v1beta1 3 kind: Deployment 4 metadata: 5 name: prometheus 6 namespace: {{ .Release.Namespace }} 7 labels: 8 app: prometheus 9 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 10 release: {{ .Release.Name }} 11 heritage: {{ .Release.Service }} 12 spec: 13 replicas: {{ .Values.replicaCount }} 14 selector: 15 matchLabels: 16 app: prometheus 17 template: 18 metadata: 19 labels: 20 app: prometheus 21 annotations: 22 sidecar.istio.io/inject: "false" 23 scheduler.alpha.kubernetes.io/critical-pod: "" 24 spec: 25 serviceAccountName: prometheus 26 {{- if .Values.global.priorityClassName }} 27 priorityClassName: "{{ .Values.global.priorityClassName }}" 28 {{- end }} 29 containers: 30 - name: prometheus 31 image: "{{ .Values.hub }}/prometheus:{{ .Values.tag }}" 32 imagePullPolicy: {{ .Values.global.imagePullPolicy }} 33 args: 34 - '--storage.tsdb.retention=6h' 35 - '--config.file=/etc/prometheus/prometheus.yml' 36 ports: 37 - containerPort: 9090 38 name: http 39 livenessProbe: 40 httpGet: 41 path: /-/healthy 42 port: 9090 43 readinessProbe: 44 httpGet: 45 path: /-/ready 46 port: 9090 47 resources: 48 {{- if .Values.resources }} 49 {{ toYaml .Values.resources | indent 12 }} 50 {{- else }} 51 {{ toYaml .Values.global.defaultResources | indent 12 }} 52 {{- end }} 53 volumeMounts: 54 - name: config-volume 55 mountPath: /etc/prometheus 56 - mountPath: /etc/istio-certs 57 name: istio-certs 58 volumes: 59 - name: config-volume 60 configMap: 61 name: prometheus 62 - name: istio-certs 63 secret: 64 defaultMode: 420 65 optional: true 66 secretName: istio.default 67 affinity: 68 {{- include "nodeaffinity" . | indent 6 }}