Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 1 | {{/* |
| 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 | |
kwasiel | d74d38f | 2020-07-23 10:09:57 +0000 | [diff] [blame] | 17 | apiVersion: apps/v1 |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 18 | kind: Deployment |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 19 | metadata: {{- include "common.resourceMetadata" . | nindent 2 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 20 | spec: |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 21 | selector: {{- include "common.selectors" . | nindent 4 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 22 | replicas: {{ .Values.replicaCount }} |
| 23 | template: |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 24 | metadata: {{- include "common.templateMetadata" . | nindent 6 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 25 | spec: |
| 26 | containers: |
Sylvain Desbureaux | 37dc40c | 2020-11-21 22:46:57 +0100 | [diff] [blame] | 27 | - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 28 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 29 | name: {{ include "common.name" . }} |
| 30 | command: ["/opt/multicloud/k8splugin/k8plugin"] |
| 31 | workingDir: /opt/multicloud/k8splugin |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 32 | ports: {{ include "common.containerPorts" . | nindent 10 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 33 | {{- 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 |
miroslavmasaryk | a7ac7f0 | 2023-03-01 14:12:26 +0100 | [diff] [blame] | 52 | resources: {{ include "common.resources" . | nindent 10 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 53 | {{- 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 Desbureaux | 37dc40c | 2020-11-21 22:46:57 +0100 | [diff] [blame] | 61 | - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.global.artifactImage }} |
Andreas Geissler | dfa23c8 | 2022-05-13 16:54:43 +0200 | [diff] [blame] | 62 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
liboNet | 80f587a | 2019-05-17 01:30:16 +0800 | [diff] [blame] | 63 | 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 |
efiacor | c8c3316 | 2022-11-25 11:36:52 +0000 | [diff] [blame] | 75 | env: |
efiacor | c8c3316 | 2022-11-25 11:36:52 +0000 | [diff] [blame] | 76 | - name: SASL_JAAS_CONFIG |
david.mcweeney | 2886a11 | 2023-02-10 12:35:20 +0000 | [diff] [blame] | 77 | valueFrom: |
| 78 | secretKeyRef: |
| 79 | name: {{ include "common.name" . }}-ku |
| 80 | key: sasl.jaas.config |
farida azmy | 7251355 | 2021-10-12 18:55:21 +0200 | [diff] [blame] | 81 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 82 | volumes: |
| 83 | - name: localtime |
| 84 | hostPath: |
| 85 | path: /etc/localtime |
| 86 | - name : {{ include "common.name" . }} |
| 87 | configMap: |
| 88 | name: {{ include "common.fullname" . }} |
liboNet | 80f587a | 2019-05-17 01:30:16 +0800 | [diff] [blame] | 89 | - name: artifact-data |
| 90 | emptyDir: {} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 91 | imagePullSecrets: |
| 92 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |