2 # Copyright 2018 Intel Corporation, Inc
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.
20 name: {{ include "common.fullname" . }}-preload
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ .Release.Name }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 release: {{ .Release.Name }}
36 - image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
38 name: {{ include "common.name" . }}-readiness
45 - "aaf-sms-quorumclient"
51 fieldPath: metadata.namespace
53 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-preload
59 - "/sms/certs/aaf_root_ca.cer"
63 - "{{ .Values.service.internalPort }}"
65 - "https://aaf-sms.{{ include "common.namespace" . }}"
68 - mountPath: /etc/localtime
71 - mountPath: /preload/config
72 name: {{ include "common.name" . }}-preload
73 - mountPath: /sms/certs
74 name: {{ include "common.fullname" . }}-certs
77 {{ include "common.resources" . | indent 10 }}
78 {{- if .Values.nodeSelector }}
80 {{ toYaml .Values.nodeSelector | indent 10 }}
82 {{- if .Values.affinity }}
84 {{ toYaml .Values.affinity | indent 10 }}
90 - name : {{ include "common.name" . }}-preload
92 name: {{ include "common.fullname" . }}-preload
93 - name: {{ include "common.fullname" . }}-certs
95 secretName: {{ include "common.fullname" . }}-certs
96 restartPolicy: OnFailure
98 - name: "{{ include "common.namespace" . }}-docker-registry-key"