2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
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.
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
23 replicas: {{ .Values.replicaCount }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
28 - command: ["sh", "-c", "chown -R 200:200 /share"]
29 image: {{ include "repositoryGenerator.image.busybox" . }}
30 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
31 name: {{ include "common.name" . }}-init
36 - name: {{ include "common.name" . }}
37 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}
38 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 - containerPort: {{ .Values.service.externalPort }}
41 {{- if eq .Values.liveness.enabled true }}
44 port: {{ .Values.service.externalPort }}
45 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
46 periodSeconds: {{ .Values.liveness.periodSeconds }}
50 path: {{ .Values.readiness.path }}
51 port: {{ .Values.service.externalPort }}
52 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
53 periodSeconds: {{ .Values.readiness.periodSeconds }}
55 - mountPath: /etc/localtime
58 - mountPath: /sonatype-work
61 {{- if eq .Values.resources.flavor "large" }}
62 {{ toYaml .Values.resources.large | indent 12 }}
64 {{ toYaml .Values.resources.small | indent 12 }}
66 {{- if .Values.nodeSelector }}
68 {{ toYaml .Values.nodeSelector | indent 10 }}
70 {{- if .Values.affinity }}
72 {{ toYaml .Values.affinity | indent 10 }}
74 serviceAccountName: {{ include "common.fullname" (dict "suffix" "nothing" "dot" . )}}
80 {{- if .Values.persistence.enabled }}
81 persistentVolumeClaim:
82 claimName: {{ include "common.fullname" . }}
87 - name: "{{ include "common.namespace" . }}-docker-registry-key"