2 # Copyright 2019 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.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
28 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
29 name: {{ include "common.name" . }}
30 command: ["/opt/multicloud/k8splugin/k8plugin"]
31 workingDir: /opt/multicloud/k8splugin
32 ports: {{ include "common.containerPorts" . | nindent 10 }}
33 {{- if eq .Values.liveness.enabled true }}
36 port: {{ .Values.service.internalPort }}
37 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
38 periodSeconds: {{ .Values.liveness.periodSeconds }}
42 port: {{ .Values.service.internalPort }}
43 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
44 periodSeconds: {{ .Values.readiness.periodSeconds }}
46 - mountPath: /etc/localtime
49 - mountPath: /opt/multicloud/k8splugin/k8sconfig.json
50 name: {{ include "common.name" .}}
51 subPath: k8sconfig.json
52 resources: {{ include "common.resources" . | nindent 10 }}
53 {{- if .Values.nodeSelector }}
55 {{ toYaml .Values.nodeSelector | indent 10 }}
57 {{- if .Values.affinity }}
59 {{ toYaml .Values.affinity | indent 10 }}
61 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.artifactImage }}
62 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
63 name: framework-artifactbroker
64 command: ["/opt/app/distribution/bin/artifact-dist.sh"]
65 args: ["/opt/app/distribution/etc/mounted/config.json"]
67 - containerPort: {{ .Values.artifactbroker.internalPort }}
70 - mountPath: /opt/app/distribution/etc/mounted/config.json
71 name: {{ include "common.name" .}}
76 - name: SASL_JAAS_CONFIG
79 name: {{ include "common.name" . }}-ku
81 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
86 - name : {{ include "common.name" . }}
88 name: {{ include "common.fullname" . }}
91 {{- include "common.imagePullSecrets" . | nindent 6 }}