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.
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 }}
30 app: {{ include "common.name" . }}
31 serviceName: {{ include "common.servicename" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
38 {{- if .Values.persistence.enabled }}
40 - name: fix-permission
46 chmod -R 775 /consul/data
47 chown -R 100:1000 /consul/data
48 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 - mountPath: /consul/data
52 name: {{ include "common.fullname" . }}-data
55 - image: "{{ include "common.repository" . }}/{{ .Values.image.vault }}"
56 name: {{ include "common.name" . }}
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 - containerPort: {{ .Values.service.internalPort }}
62 - mountPath: /vault/config/config.json
63 name: {{ include "common.fullname" . }}-vault
65 - mountPath: /etc/localtime
69 {{ include "common.resources" . | indent 10 }}
70 - image: "{{ include "common.repository" . }}/{{ .Values.image.consul }}"
71 name: {{ include "common.name" . }}-backend
72 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
73 args: ["agent","-server","-bind","0.0.0.0","-bootstrap-expect=1","-config-file","/consul/config/config.json"]
78 {{- if .Values.persistence.enabled }}
79 - mountPath: /consul/data
80 name: {{ include "common.fullname" . }}-data
82 - mountPath: /consul/config/config.json
83 name: {{ include "common.fullname" . }}-consulconfiguration
85 - mountPath: /etc/localtime
89 {{ include "common.resources" . | indent 10 }}
91 - name: {{ include "common.fullname" . }}-consulconfiguration
93 name: {{ include "common.fullname" . }}-consul
94 - name: {{ include "common.fullname" . }}-vault
96 name: {{ include "common.fullname" . }}-vault
101 - name: "{{ include "common.namespace" . }}-docker-registry-key"
102 {{- if .Values.persistence.enabled }}
103 volumeClaimTemplates:
105 name: {{ include "common.fullname" . }}-data
107 name: {{ include "common.fullname" . }}
108 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
109 release: "{{ include "common.release" . }}"
110 heritage: "{{ .Release.Service }}"
113 - {{ .Values.persistence.accessMode | quote }}
114 storageClassName: {{ include "common.storageClass" . }}
117 storage: {{ .Values.persistence.size | quote }}