Sean Condon | 6fc9968 | 2022-02-04 10:48:17 +0000 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020-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 | 6fc9968 | 2022-02-04 10:48:17 +0000 | [diff] [blame] | 4 | |
| 5 | apiVersion: apps/v1 |
| 6 | kind: Deployment |
| 7 | metadata: |
| 8 | name: {{ include "aether-roc-gui.fullname" . }} |
| 9 | namespace: {{ .Release.Namespace }} |
| 10 | labels: |
| 11 | {{- include "aether-roc-gui.labels" . | nindent 4 }} |
| 12 | spec: |
| 13 | replicas: {{ .Values.replicaCount }} |
| 14 | selector: |
| 15 | matchLabels: |
| 16 | name: {{ template "aether-roc-gui.fullname" . }} |
| 17 | app: aether |
| 18 | type: arg |
| 19 | resource: {{ template "aether-roc-gui.fullname" . }} |
| 20 | {{- include "aether-roc-gui.selectorLabels" . | nindent 6 }} |
| 21 | template: |
| 22 | metadata: |
| 23 | labels: |
| 24 | name: {{ template "aether-roc-gui.fullname" . }} |
| 25 | app: aether |
| 26 | type: arg |
| 27 | resource: {{ template "aether-roc-gui.fullname" . }} |
| 28 | {{- include "aether-roc-gui.selectorLabels" . | nindent 8 }} |
| 29 | spec: |
| 30 | {{- with .Values.imagePullSecrets }} |
| 31 | imagePullSecrets: |
| 32 | {{- toYaml . | nindent 8 }} |
| 33 | {{- end }} |
| 34 | securityContext: |
| 35 | {{- toYaml .Values.podSecurityContext | nindent 8 }} |
| 36 | containers: |
| 37 | - name: {{ .Chart.Name }} |
| 38 | securityContext: |
| 39 | {{- toYaml .Values.securityContext | nindent 12 }} |
Bavier, Andy | bb43b2e | 2022-09-13 09:33:20 -0700 | [diff] [blame] | 40 | image: "{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}" |
Sean Condon | 6fc9968 | 2022-02-04 10:48:17 +0000 | [diff] [blame] | 41 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 42 | env: |
| 43 | - name: NAMESPACE |
| 44 | valueFrom: |
| 45 | fieldRef: |
| 46 | fieldPath: metadata.namespace |
| 47 | - name: OPENIDCISSUER |
| 48 | value: {{ .Values.openidc.issuer }} |
SeanCondon | 34f3187 | 2022-07-22 16:37:09 +0100 | [diff] [blame] | 49 | - name: FEATUREAETHER |
| 50 | value: {{ .Values.feature.aether | quote }} |
| 51 | - name: FEATURESDNFABRIC |
| 52 | value: {{ .Values.feature.sdnfabric | quote }} |
Sean Condon | 6fc9968 | 2022-02-04 10:48:17 +0000 | [diff] [blame] | 53 | stdin : true |
| 54 | resources: |
| 55 | {{- toYaml .Values.resources | nindent 12 }} |
| 56 | ports: |
| 57 | {{- with .Values.ports }} |
| 58 | {{- range $key, $port := . }} |
| 59 | - name: {{ $key }} |
| 60 | {{ toYaml $port | nindent 14 }} |
| 61 | {{- end }} |
| 62 | {{- end }} |
| 63 | livenessProbe: |
| 64 | tcpSocket: |
| 65 | port: web |
| 66 | initialDelaySeconds: 30 |
| 67 | readinessProbe: |
| 68 | tcpSocket: |
| 69 | port: web |
| 70 | initialDelaySeconds: 30 |
| 71 | volumeMounts: |
| 72 | - name: config |
| 73 | mountPath: /etc/nginx/conf.d |
| 74 | - name: secret |
| 75 | mountPath: /usr/share/certs |
| 76 | readOnly: true |
| 77 | |
| 78 | volumes: |
| 79 | - name: config |
| 80 | configMap: |
| 81 | name: {{ template "aether-roc-gui.fullname" . }} |
| 82 | - name: secret |
| 83 | secret: |
| 84 | secretName: {{ template "aether-roc-gui.fullname" . }}-secret |
| 85 | {{- with .Values.nodeSelector }} |
| 86 | nodeSelector: |
| 87 | {{- toYaml . | nindent 8 }} |
| 88 | {{- end }} |
| 89 | {{- with .Values.affinity }} |
| 90 | affinity: |
| 91 | {{- toYaml . | nindent 8 }} |
| 92 | {{- end }} |
| 93 | {{- with .Values.tolerations }} |
| 94 | tolerations: |
| 95 | {{- toYaml . | nindent 8 }} |
| 96 | {{- end }} |