1 # Copyright 2018 Intel Corporation, Inc
2 # Modifications © 2020 AT&T
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.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ include "common.release" . }}
35 - name: fix-permission
41 chmod -R 775 /sms/auth
42 chown -R 1000:1000 /sms/auth
43 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 - mountPath: /sms/auth
47 name: {{ include "common.fullname" . }}-auth
48 - name: {{ include "common.name" . }}-readiness
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 - "aaf-sms-vault-backend"
63 fieldPath: metadata.namespace
65 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 name: {{ include "common.name" . }}
68 command: ["/sms/bin/sms"]
71 - containerPort: {{ .Values.service.internalPort }}
72 {{- if eq .Values.liveness.enabled true }}
75 port: {{ .Values.service.internalPort }}
77 path: /v1/sms/quorum/status
78 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
79 periodSeconds: {{ .Values.liveness.periodSeconds }}
83 port: {{ .Values.service.internalPort }}
85 path: /v1/sms/quorum/status
86 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
87 periodSeconds: {{ .Values.readiness.periodSeconds }}
89 - mountPath: /etc/localtime
92 - mountPath: /sms/smsconfig.json
93 name: {{ include "common.name" .}}
94 subPath: smsconfig.json
95 - mountPath: /sms/auth
96 name: {{ include "common.fullname" . }}-auth
98 {{ include "common.resources" . | indent 10 }}
99 {{- if .Values.nodeSelector }}
101 {{ toYaml .Values.nodeSelector | indent 10 }}
103 {{- if .Values.affinity }}
105 {{ toYaml .Values.affinity | indent 10 }}
111 - name : {{ include "common.name" . }}
113 name: {{ include "common.fullname" . }}
114 - name: {{ include "common.fullname" . }}-auth
115 {{- if .Values.persistence.enabled }}
116 persistentVolumeClaim:
117 claimName: {{ include "common.fullname" . }}
122 - name: "{{ include "common.namespace" . }}-docker-registry-key"