blob: d4ccab9385fdd0e9a11cd2045ffa2e6c19432304 [file] [log] [blame]
Sean Condon6fc99682022-02-04 10:48:17 +00001# 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 Condon6fc99682022-02-04 10:48:17 +00004
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 }}
Bavier, Andybb43b2e2022-09-13 09:33:20 -070040 image: "{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}"
Sean Condon6fc99682022-02-04 10:48:17 +000041 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 }}
SeanCondon34f31872022-07-22 16:37:09 +010049 - name: FEATUREAETHER
50 value: {{ .Values.feature.aether | quote }}
51 - name: FEATURESDNFABRIC
52 value: {{ .Values.feature.sdnfabric | quote }}
Sean Condon6fc99682022-02-04 10:48:17 +000053 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 }}