Sean Condon | 670605a | 2021-12-13 12:58:20 +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 | 670605a | 2021-12-13 12:58:20 +0000 | [diff] [blame] | 4 | |
| 5 | apiVersion: apps/v1 |
| 6 | kind: Deployment |
| 7 | metadata: |
| 8 | name: {{ include "aether-enterprise-portal.fullname" . }} |
| 9 | namespace: {{ .Release.Namespace }} |
| 10 | labels: |
| 11 | {{- include "aether-enterprise-portal.labels" . | nindent 4 }} |
| 12 | spec: |
| 13 | replicas: {{ .Values.replicaCount }} |
| 14 | selector: |
| 15 | matchLabels: |
| 16 | name: {{ template "aether-enterprise-portal.fullname" . }} |
| 17 | app: aether |
| 18 | type: arg |
| 19 | resource: {{ template "aether-enterprise-portal.fullname" . }} |
| 20 | {{- include "aether-enterprise-portal.selectorLabels" . | nindent 6 }} |
| 21 | template: |
| 22 | metadata: |
| 23 | labels: |
| 24 | name: {{ template "aether-enterprise-portal.fullname" . }} |
| 25 | app: aether |
| 26 | type: arg |
| 27 | resource: {{ template "aether-enterprise-portal.fullname" . }} |
| 28 | {{- include "aether-enterprise-portal.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 }} |
Sean Condon | 36c8225 | 2022-03-16 09:49:40 +0000 | [diff] [blame] | 49 | - name: ONFLOGIN |
| 50 | valueFrom: |
| 51 | secretKeyRef: |
| 52 | name: aether-enterprise-portal-api |
| 53 | key: credentials |
Sean Condon | 670605a | 2021-12-13 12:58:20 +0000 | [diff] [blame] | 54 | stdin : true |
| 55 | resources: |
| 56 | {{- toYaml .Values.resources | nindent 12 }} |
| 57 | ports: |
| 58 | {{- with .Values.ports }} |
| 59 | {{- range $key, $port := . }} |
| 60 | - name: {{ $key }} |
| 61 | {{ toYaml $port | nindent 14 }} |
| 62 | {{- end }} |
| 63 | {{- end }} |
| 64 | livenessProbe: |
| 65 | tcpSocket: |
| 66 | port: web |
| 67 | initialDelaySeconds: 30 |
| 68 | readinessProbe: |
| 69 | tcpSocket: |
| 70 | port: web |
| 71 | initialDelaySeconds: 30 |
| 72 | volumeMounts: |
| 73 | - name: config |
| 74 | mountPath: /etc/nginx/conf.d |
| 75 | - name: secret |
| 76 | mountPath: /usr/share/certs |
| 77 | readOnly: true |
Sean Condon | 670605a | 2021-12-13 12:58:20 +0000 | [diff] [blame] | 78 | volumes: |
| 79 | - name: config |
| 80 | configMap: |
| 81 | name: {{ template "aether-enterprise-portal.fullname" . }} |
| 82 | - name: secret |
| 83 | secret: |
| 84 | secretName: {{ template "aether-enterprise-portal.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 }} |