Sean Condon | 25c7bf5 | 2021-11-06 11:53:59 +0000 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | # SPDX-License-Identifier: Apache-2.0 |
Sean Condon | 25c7bf5 | 2021-11-06 11:53:59 +0000 | [diff] [blame] | 4 | |
| 5 | apiVersion: apps/v1 |
| 6 | kind: Deployment |
| 7 | metadata: |
| 8 | name: {{ template "demo-exporter.fullname" . }} |
| 9 | namespace: {{ .Release.Namespace }} |
| 10 | labels: |
| 11 | name: {{ template "demo-exporter.fullname" . }} |
| 12 | spec: |
| 13 | replicas: {{ .Values.replicaCount }} |
| 14 | selector: |
| 15 | matchLabels: |
| 16 | {{- include "demo-exporter.selectorLabels" . | nindent 6 }} |
| 17 | template: |
| 18 | metadata: |
| 19 | labels: |
| 20 | name: {{ template "demo-exporter.fullname" . }} |
| 21 | {{- include "demo-exporter.selectorLabels" . | nindent 8 }} |
| 22 | spec: |
| 23 | {{- with .Values.imagePullSecrets }} |
| 24 | imagePullSecrets: |
| 25 | {{- toYaml . | nindent 6 }} |
| 26 | {{- end }} |
| 27 | securityContext: |
| 28 | {{- toYaml .Values.podSecurityContext | nindent 8 }} |
| 29 | containers: |
| 30 | - name: {{ .Chart.Name }} |
| 31 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
| 32 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 33 | env: |
| 34 | - name: POD_NAMESPACE |
| 35 | valueFrom: |
| 36 | fieldRef: |
| 37 | fieldPath: metadata.namespace |
| 38 | - name: POD_NAME |
| 39 | valueFrom: |
| 40 | fieldRef: |
| 41 | fieldPath: metadata.name |
| 42 | - name: NODE_NAME |
| 43 | valueFrom: |
| 44 | fieldRef: |
| 45 | fieldPath: spec.nodeName |
| 46 | args: |
Scott Baker | aac30df | 2022-04-29 13:53:17 -0700 | [diff] [blame] | 47 | - "/usr/local/bin/aether-mock-exporter" |
Sean Condon | 25c7bf5 | 2021-11-06 11:53:59 +0000 | [diff] [blame] | 48 | ports: |
| 49 | - name: metrics |
| 50 | containerPort: 2112 |
| 51 | readinessProbe: |
| 52 | httpGet: |
| 53 | path: /metrics |
| 54 | port: 2112 |
| 55 | initialDelaySeconds: 5 |
| 56 | periodSeconds: 10 |
| 57 | livenessProbe: |
| 58 | httpGet: |
| 59 | path: /metrics |
| 60 | port: 2112 |
| 61 | initialDelaySeconds: 15 |
| 62 | periodSeconds: 20 |
| 63 | volumes: |
| 64 | - name: secret |
| 65 | secret: |
| 66 | secretName: {{ template "demo-exporter.fullname" . }}-secret |