blob: cf07343c6e3688173e79ddf8ea0f191095c3e87b [file] [log] [blame]
Sean Condona49cffd2021-10-01 12:38:45 +01001# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
Sean Condona49cffd2021-10-01 12:38:45 +01004
5apiVersion: apps/v1
6kind: Deployment
7metadata:
8 name: {{ include "aether-roc-gui.fullname" . }}
9 namespace: {{ .Release.Namespace }}
10 labels:
11 {{- include "aether-roc-gui.labels" . | nindent 4 }}
12spec:
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 }}