PUSHP RAJ | 7c521fa | 2021-12-06 14:19:03 +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
|
PUSHP RAJ | 7c521fa | 2021-12-06 14:19:03 +0000 | [diff] [blame] | 4 |
|
| 5 | apiVersion: apps/v1
|
| 6 | kind: Deployment
|
| 7 | metadata:
|
| 8 | name: {{ template "chronos-exporter.fullname" . }}
|
| 9 | namespace: {{ .Release.Namespace }}
|
| 10 | labels:
|
| 11 | name: {{ template "chronos-exporter.fullname" . }}
|
| 12 | spec:
|
| 13 | replicas: {{ .Values.replicaCount }}
|
| 14 | selector:
|
| 15 | matchLabels:
|
| 16 | {{- include "chronos-exporter.selectorLabels" . | nindent 6 }}
|
| 17 | template:
|
| 18 | metadata:
|
| 19 | labels:
|
| 20 | name: {{ template "chronos-exporter.fullname" . }}
|
| 21 | {{- include "chronos-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:
|
| 47 | - "/usr/local/bin/chronos-exporter"
|
Sean Condon | fbc563d | 2021-12-08 15:54:26 -0800 | [diff] [blame] | 48 | - "--config"
|
| 49 | - {{ .Values.configfile }}
|
PUSHP RAJ | 2b6a6e3 | 2022-02-01 18:06:01 +0000 | [diff] [blame] | 50 | - "--alert"
|
| 51 | - {{ .Values.alertfile }}
|
Sean Condon | e89f754 | 2022-02-08 12:48:56 +0000 | [diff] [blame] | 52 | - "--aether"
|
| 53 | - {{ .Values.aetherfile }}
|
PUSHP RAJ | 7c521fa | 2021-12-06 14:19:03 +0000 | [diff] [blame] | 54 | ports:
|
| 55 | - name: metrics
|
| 56 | containerPort: 2112
|
| 57 | readinessProbe:
|
| 58 | httpGet:
|
| 59 | path: /metrics
|
| 60 | port: 2112
|
| 61 | initialDelaySeconds: 5
|
| 62 | periodSeconds: 10
|
| 63 | livenessProbe:
|
| 64 | httpGet:
|
| 65 | path: /metrics
|
| 66 | port: 2112
|
| 67 | initialDelaySeconds: 15
|
| 68 | periodSeconds: 20
|
Sean Condon | fbc563d | 2021-12-08 15:54:26 -0800 | [diff] [blame] | 69 | volumeMounts:
|
| 70 | - name: exporter-config
|
| 71 | mountPath: /etc/chronos-exporter/configs
|
| 72 | readOnly: true
|
PUSHP RAJ | cb8d3e5 | 2022-01-07 18:55:39 +0000 | [diff] [blame] | 73 | - name: exporter-images
|
| 74 | mountPath: /opt/images
|
| 75 | readOnly: true
|
| 76 | - name: exporter-site-plans
|
Sean Condon | 8654449 | 2022-01-28 19:06:48 +0000 | [diff] [blame] | 77 | mountPath: /opt/site-plans/fremont
|
PUSHP RAJ | cb8d3e5 | 2022-01-07 18:55:39 +0000 | [diff] [blame] | 78 | readOnly: true
|
PUSHP RAJ | 2b6a6e3 | 2022-02-01 18:06:01 +0000 | [diff] [blame] | 79 | - name: exporter-alert
|
| 80 | mountPath: /etc/chronos-exporter/alerts
|
| 81 | readOnly: true
|
PUSHP RAJ | 7c521fa | 2021-12-06 14:19:03 +0000 | [diff] [blame] | 82 | volumes:
|
| 83 | - name: secret
|
| 84 | secret:
|
Sean Condon | fbc563d | 2021-12-08 15:54:26 -0800 | [diff] [blame] | 85 | secretName: {{ template "chronos-exporter.fullname" . }}-secret
|
| 86 | - name: exporter-config
|
| 87 | configMap:
|
| 88 | name: {{ template "chronos-exporter.fullname" . }}-config
|
PUSHP RAJ | cb8d3e5 | 2022-01-07 18:55:39 +0000 | [diff] [blame] | 89 | - name: exporter-images
|
| 90 | configMap:
|
| 91 | name: {{ template "chronos-exporter.fullname" . }}-images
|
| 92 | - name: exporter-site-plans
|
| 93 | configMap:
|
| 94 | name: {{ template "chronos-exporter.fullname" . }}-site-plans
|
PUSHP RAJ | 2b6a6e3 | 2022-02-01 18:06:01 +0000 | [diff] [blame] | 95 | - name: exporter-alert
|
| 96 | configMap:
|
| 97 | name: {{ template "chronos-exporter.fullname" . }}-alert
|