blob: 325dbb0308ad0e06dcdd658fbbd171dad4154b33 [file] [log] [blame]
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -07001{{/*
2# Copyright 2019 Intel Corporation, Inc
3#
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
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
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.
15*/}}
16
kwasield74d38f2020-07-23 10:09:57 +000017apiVersion: apps/v1
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070018kind: Deployment
Andreas Geissler718fb742023-03-09 09:44:02 +010019metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070020spec:
Andreas Geissler718fb742023-03-09 09:44:02 +010021 selector: {{- include "common.selectors" . | nindent 4 }}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070022 replicas: {{ .Values.replicaCount }}
23 template:
Andreas Geissler718fb742023-03-09 09:44:02 +010024 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070025 spec:
26 containers:
Sylvain Desbureaux37dc40c2020-11-21 22:46:57 +010027 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070028 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
29 name: {{ include "common.name" . }}
30 command: ["/opt/multicloud/k8splugin/k8plugin"]
31 workingDir: /opt/multicloud/k8splugin
Andreas Geissler718fb742023-03-09 09:44:02 +010032 ports: {{ include "common.containerPorts" . | nindent 10 }}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070033 {{- if eq .Values.liveness.enabled true }}
34 livenessProbe:
35 tcpSocket:
36 port: {{ .Values.service.internalPort }}
37 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
38 periodSeconds: {{ .Values.liveness.periodSeconds }}
39 {{ end -}}
40 readinessProbe:
41 tcpSocket:
42 port: {{ .Values.service.internalPort }}
43 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
44 periodSeconds: {{ .Values.readiness.periodSeconds }}
45 volumeMounts:
46 - mountPath: /etc/localtime
47 name: localtime
48 readOnly: true
49 - mountPath: /opt/multicloud/k8splugin/k8sconfig.json
50 name: {{ include "common.name" .}}
51 subPath: k8sconfig.json
miroslavmasaryka7ac7f02023-03-01 14:12:26 +010052 resources: {{ include "common.resources" . | nindent 10 }}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070053 {{- if .Values.nodeSelector }}
54 nodeSelector:
55{{ toYaml .Values.nodeSelector | indent 10 }}
56 {{- end -}}
57 {{- if .Values.affinity }}
58 affinity:
59{{ toYaml .Values.affinity | indent 10 }}
60 {{- end }}
Sylvain Desbureaux37dc40c2020-11-21 22:46:57 +010061 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.artifactImage }}
Andreas Geisslerdfa23c82022-05-13 16:54:43 +020062 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
liboNet80f587a2019-05-17 01:30:16 +080063 name: framework-artifactbroker
64 command: ["/opt/app/distribution/bin/artifact-dist.sh"]
65 args: ["/opt/app/distribution/etc/mounted/config.json"]
66 ports:
67 - containerPort: {{ .Values.artifactbroker.internalPort }}
68 protocol: TCP
69 volumeMounts:
70 - mountPath: /opt/app/distribution/etc/mounted/config.json
71 name: {{ include "common.name" .}}
72 subPath: config.json
73 - mountPath: /data
74 name: artifact-data
efiacorc8c33162022-11-25 11:36:52 +000075 env:
efiacorc8c33162022-11-25 11:36:52 +000076 - name: SASL_JAAS_CONFIG
david.mcweeney2886a112023-02-10 12:35:20 +000077 valueFrom:
78 secretKeyRef:
79 name: {{ include "common.name" . }}-ku
80 key: sasl.jaas.config
farida azmy72513552021-10-12 18:55:21 +020081 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070082 volumes:
83 - name: localtime
84 hostPath:
85 path: /etc/localtime
86 - name : {{ include "common.name" . }}
87 configMap:
88 name: {{ include "common.fullname" . }}
liboNet80f587a2019-05-17 01:30:16 +080089 - name: artifact-data
90 emptyDir: {}
Kiran Kaminenie2ba7c82019-04-22 17:52:13 -070091 imagePullSecrets:
92 - name: "{{ include "common.namespace" . }}-docker-registry-key"