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: /opt/multicloud/k8splugin/k8sconfig.json
47 name: {{ include "common.name" .}}
48 subPath: k8sconfig.json
49 resources: {{ include "common.resources" . | nindent 10 }}
50 {{- if .Values.nodeSelector }}
52 {{ toYaml .Values.nodeSelector | indent 10 }}
54 {{- if .Values.affinity }}
56 {{ toYaml .Values.affinity | indent 10 }}
58 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.artifactImage }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: framework-artifactbroker
61 command: ["/opt/app/distribution/bin/artifact-dist.sh"]
62 args: ["/opt/app/distribution/etc/mounted/config.json"]
64 - containerPort: {{ .Values.artifactbroker.internalPort }}
67 - mountPath: /opt/app/distribution/etc/mounted/config.json
68 name: {{ include "common.name" .}}
73 - name: SASL_JAAS_CONFIG
76 name: {{ include "common.name" . }}-ku
78 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
80 - name : {{ include "common.name" . }}
82 name: {{ include "common.fullname" . }}
85 {{- include "common.imagePullSecrets" . | nindent 6 }}