2 # Copyright 2018 Intel Corporation, Inc
3 # Modifications © 2020 AT&T
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
29 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 serviceName: {{ include "common.servicename" . }}
37 app: {{ include "common.name" . }}
38 release: {{ include "common.release" . }}
40 {{- if .Values.persistence.enabled }}
42 - name: fix-permission
48 chmod -R 775 /consul/data
49 chown -R 100:1000 /consul/data
50 image: {{ include "repositoryGenerator.image.busybox" . }}
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - mountPath: /consul/data
54 name: {{ include "common.fullname" . }}-data
57 - image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image.vault }}
58 name: {{ include "common.name" . }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 - containerPort: {{ .Values.service.internalPort }}
64 - mountPath: /vault/config/config.json
65 name: {{ include "common.fullname" . }}-vault
67 - mountPath: /etc/localtime
71 {{ include "common.resources" . | indent 10 }}
72 - image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image.consul }}
73 name: {{ include "common.name" . }}-backend
74 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 args: ["agent","-server","-bind","0.0.0.0","-bootstrap-expect=1","-config-file","/consul/config/config.json"]
80 {{- if .Values.persistence.enabled }}
81 - mountPath: /consul/data
82 name: {{ include "common.fullname" . }}-data
84 - mountPath: /consul/config/config.json
85 name: {{ include "common.fullname" . }}-consulconfiguration
87 - mountPath: /etc/localtime
91 {{ include "common.resources" . | indent 10 }}
93 - name: {{ include "common.fullname" . }}-consulconfiguration
95 name: {{ include "common.fullname" . }}-consul
96 - name: {{ include "common.fullname" . }}-vault
98 name: {{ include "common.fullname" . }}-vault
103 - name: "{{ include "common.namespace" . }}-docker-registry-key"
104 {{- if .Values.persistence.enabled }}
105 volumeClaimTemplates:
107 name: {{ include "common.fullname" . }}-data
109 name: {{ include "common.fullname" . }}
110 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
111 release: "{{ include "common.release" . }}"
112 heritage: "{{ .Release.Service }}"
115 - {{ .Values.persistence.accessMode | quote }}
116 storageClassName: {{ include "common.storageClass" . }}
119 storage: {{ .Values.persistence.size | quote }}