Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 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 }} |
| 40 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
| 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 }} |
| 49 | stdin : true |
| 50 | resources: |
| 51 | {{- toYaml .Values.resources | nindent 12 }} |
| 52 | ports: |
| 53 | {{- with .Values.ports }} |
| 54 | {{- range $key, $port := . }} |
| 55 | - name: {{ $key }} |
| 56 | {{ toYaml $port | nindent 14 }} |
| 57 | {{- end }} |
| 58 | {{- end }} |
| 59 | livenessProbe: |
| 60 | tcpSocket: |
| 61 | port: web |
| 62 | initialDelaySeconds: 30 |
| 63 | readinessProbe: |
| 64 | tcpSocket: |
| 65 | port: web |
| 66 | initialDelaySeconds: 30 |
| 67 | volumeMounts: |
| 68 | - name: config |
| 69 | mountPath: /etc/nginx/conf.d |
| 70 | - name: secret |
| 71 | mountPath: /usr/share/certs |
| 72 | readOnly: true |
| 73 | |
| 74 | volumes: |
| 75 | - name: config |
| 76 | configMap: |
| 77 | name: {{ template "aether-roc-gui.fullname" . }} |
| 78 | - name: secret |
| 79 | secret: |
| 80 | secretName: {{ template "aether-roc-gui.fullname" . }}-secret |
| 81 | {{- with .Values.nodeSelector }} |
| 82 | nodeSelector: |
| 83 | {{- toYaml . | nindent 8 }} |
| 84 | {{- end }} |
| 85 | {{- with .Values.affinity }} |
| 86 | affinity: |
| 87 | {{- toYaml . | nindent 8 }} |
| 88 | {{- end }} |
| 89 | {{- with .Values.tolerations }} |
| 90 | tolerations: |
| 91 | {{- toYaml . | nindent 8 }} |
| 92 | {{- end }} |