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