2 # Copyright 2018 Intel Corporation, Inc
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.
17 {{- if .Values.global.distcenter.enabled -}}
21 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
23 replicas: {{ .Values.replicaCount }}
26 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
30 {{- if .Values.global.tpm.enabled }}
31 - image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
32 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
33 name: {{ include "common.name" . }}-readiness
35 - /root/job_complete.py
38 - "{{ include "common.release" . }}-aaf-sshsm-abrmd-init"
44 fieldPath: metadata.namespace
53 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-gen-passphrase
56 command: ["sh", "-c", "/usr/bin/openssl rand -base64 12 >/distcenter/data/passphrase"]
62 fieldPath: metadata.namespace
64 - mountPath: /etc/localtime
67 - name: {{ include "common.fullname" . }}-data
68 mountPath: /distcenter/data
78 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
79 name: {{ include "common.name" . }}
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 command: ["/entrypoint.sh"]
82 workingDir: /distcenter
84 - mountPath: /etc/localtime
87 - name: {{ include "common.fullname" . }}-data
88 mountPath: /distcenter/data
89 resources: {{ include "common.resources" . | nindent 10 }}
90 {{- if .Values.nodeSelector }}
91 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
93 {{- if .Values.affinity }}
94 affinity: {{ toYaml .Values.affinity | nindent 8 }}
100 - name: {{ include "common.fullname" . }}-data
101 persistentVolumeClaim:
102 claimName: {{ include "common.release" . }}-aaf-sshsm
104 - name: "{{ include "common.namespace" . }}-docker-registry-key"