1 # Copyright © 2020 Samsung
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
17 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
19 selector: {{- include "common.selectors" . | nindent 4 }}
20 replicas: {{ index .Values.replicaCount }}
23 labels: {{- include "common.labels" . | nindent 8 }}
25 initContainers: {{ include "so.certificate.container_importer" . | nindent 8 }}
26 - name: {{ include "common.name" . }}-readiness
39 fieldPath: metadata.namespace
40 image: {{ include "common.repository" . }}/{{ .Values.global.readinessImage }}
41 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
43 - name: {{ include "common.name" . }}
46 name: {{ include "common.fullname" . }}-configmap
47 image: {{ include "common.repository" . }}/{{ .Values.image }}
48 resources: {{ include "common.resources" . | nindent 12 }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 volumeMounts: {{ include "so.certificate.volume-mounts" . | nindent 12 }}
54 mountPath: /app/config
58 port: {{ index .Values.livenessProbe.port }}
59 initialDelaySeconds: {{ index .Values.livenessProbe.initialDelaySeconds}}
60 periodSeconds: {{ index .Values.livenessProbe.periodSeconds}}
61 successThreshold: {{ index .Values.livenessProbe.successThreshold}}
62 failureThreshold: {{ index .Values.livenessProbe.failureThreshold}}
63 ports: {{- include "common.containerPorts" . | nindent 10 }}
64 volumes: {{ include "so.certificate.volumes" . | nindent 8 }}
69 name: {{ include "common.fullname" . }}-app-configmap