1 # Copyright 2018 Intel Corporation, Inc
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.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
30 release: {{ .Release.Name }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
38 - image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
39 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 name: {{ include "common.name" . }}-readiness
41 command: ["/bin/sh", "-c"]
42 args: ["sed -i s/client.AppsV1beta1Api/client.AppsV1Api/g /root/ready.py && /root/ready.py --container-name aaf-sms-vault --container-name aaf-sms-vault-backend"]
48 fieldPath: metadata.namespace
50 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 name: {{ include "common.name" . }}
53 command: ["/sms/bin/sms"]
56 - containerPort: {{ .Values.service.internalPort }}
57 {{- if eq .Values.liveness.enabled true }}
60 port: {{ .Values.service.internalPort }}
62 path: /v1/sms/quorum/status
63 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.liveness.periodSeconds }}
68 port: {{ .Values.service.internalPort }}
70 path: /v1/sms/quorum/status
71 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
72 periodSeconds: {{ .Values.readiness.periodSeconds }}
74 - mountPath: /etc/localtime
77 - mountPath: /sms/smsconfig.json
78 name: {{ include "common.name" .}}
79 subPath: smsconfig.json
80 - mountPath: /sms/auth
81 name: {{ include "common.fullname" . }}-auth
83 {{ include "common.resources" . | indent 10 }}
84 {{- if .Values.nodeSelector }}
86 {{ toYaml .Values.nodeSelector | indent 10 }}
88 {{- if .Values.affinity }}
90 {{ toYaml .Values.affinity | indent 10 }}
96 - name : {{ include "common.name" . }}
98 name: {{ include "common.fullname" . }}
99 - name: {{ include "common.fullname" . }}-auth
100 persistentVolumeClaim:
101 claimName: {{ include "common.fullname" . }}
103 - name: "{{ include "common.namespace" . }}-docker-registry-key"