blob: cf88e74f28e8918007a7e561ca794a1232aea978 [file] [log] [blame]
Sean Condon670605a2021-12-13 12:58:20 +00001# SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
Sean Condon670605a2021-12-13 12:58:20 +00004
5apiVersion: apps/v1
6kind: Deployment
7metadata:
8 name: {{ include "aether-enterprise-portal.fullname" . }}
9 namespace: {{ .Release.Namespace }}
10 labels:
11 {{- include "aether-enterprise-portal.labels" . | nindent 4 }}
12spec:
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 Condon36c82252022-03-16 09:49:40 +000049 - name: ONFLOGIN
50 valueFrom:
51 secretKeyRef:
52 name: aether-enterprise-portal-api
53 key: credentials
Sean Condon670605a2021-12-13 12:58:20 +000054 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 Condon670605a2021-12-13 12:58:20 +000078 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 }}