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
39 command: ["/bin/sh", "-c"]
40 args: ["sed -i s/client.AppsV1beta1Api/client.AppsV1Api/g /root/ready.py && sed -i s/client.ExtensionsV1beta1Api/client.AppsV1Api/g /root/ready.py && /root/ready.py --container-name aaf-sms --container-name aaf-sms-quorumclient"]
46 fieldPath: metadata.namespace
48 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 name: {{ include "common.name" . }}-preload
54 - "/sms/certs/aaf_root_ca.cer"
58 - "{{ .Values.service.internalPort }}"
60 - "https://aaf-sms.{{ include "common.namespace" . }}"
63 - mountPath: /etc/localtime
66 - mountPath: /preload/config
67 name: {{ include "common.name" . }}-preload
69 {{ include "common.resources" . | indent 10 }}
70 {{- if .Values.nodeSelector }}
72 {{ toYaml .Values.nodeSelector | indent 10 }}
74 {{- if .Values.affinity }}
76 {{ toYaml .Values.affinity | indent 10 }}
82 - name : {{ include "common.name" . }}-preload
84 name: {{ include "common.fullname" . }}-preload
85 restartPolicy: OnFailure
87 - name: "{{ include "common.namespace" . }}-docker-registry-key"