Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2019 Intel Corporation, Inc |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 3 | # Modifications Copyright © 2024 Deutsche Telekom |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | */}} |
| 17 | |
kwasiel | d74d38f | 2020-07-23 10:09:57 +0000 | [diff] [blame] | 18 | apiVersion: apps/v1 |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 19 | kind: Deployment |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 20 | metadata: {{- include "common.resourceMetadata" . | nindent 2 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 21 | spec: |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 22 | selector: {{- include "common.selectors" . | nindent 4 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 23 | replicas: {{ .Values.replicaCount }} |
| 24 | template: |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 25 | metadata: {{- include "common.templateMetadata" . | nindent 6 }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 26 | spec: |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 27 | {{ include "common.podSecurityContext" . | indent 6 | trim }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 28 | containers: |
Sylvain Desbureaux | 37dc40c | 2020-11-21 22:46:57 +0100 | [diff] [blame] | 29 | - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 30 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 31 | name: {{ include "common.name" . }} |
| 32 | command: ["/opt/multicloud/k8splugin/k8plugin"] |
| 33 | workingDir: /opt/multicloud/k8splugin |
Andreas Geissler | 718fb74 | 2023-03-09 09:44:02 +0100 | [diff] [blame] | 34 | ports: {{ include "common.containerPorts" . | nindent 10 }} |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 35 | {{ include "common.containerSecurityContext" . | indent 10 | trim }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 36 | {{- if eq .Values.liveness.enabled true }} |
| 37 | livenessProbe: |
| 38 | tcpSocket: |
| 39 | port: {{ .Values.service.internalPort }} |
| 40 | initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} |
| 41 | periodSeconds: {{ .Values.liveness.periodSeconds }} |
| 42 | {{ end -}} |
| 43 | readinessProbe: |
| 44 | tcpSocket: |
| 45 | port: {{ .Values.service.internalPort }} |
| 46 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 47 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
| 48 | volumeMounts: |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 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"] |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 66 | {{ include "common.containerSecurityContext" . | indent 10 | trim }} |
| 67 | resources: {{ include "common.resources" . | nindent 10 }} |
liboNet | 80f587a | 2019-05-17 01:30:16 +0800 | [diff] [blame] | 68 | ports: |
| 69 | - containerPort: {{ .Values.artifactbroker.internalPort }} |
| 70 | protocol: TCP |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 71 | {{- if eq .Values.liveness.enabled true }} |
| 72 | livenessProbe: |
| 73 | tcpSocket: |
| 74 | port: {{ .Values.artifactbroker.internalPort }} |
| 75 | initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} |
| 76 | periodSeconds: {{ .Values.liveness.periodSeconds }} |
| 77 | {{ end -}} |
| 78 | readinessProbe: |
| 79 | tcpSocket: |
| 80 | port: {{ .Values.artifactbroker.internalPort }} |
| 81 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 82 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
liboNet | 80f587a | 2019-05-17 01:30:16 +0800 | [diff] [blame] | 83 | volumeMounts: |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 84 | - mountPath: "{{ .Values.log.path }}" |
| 85 | name: framework-log |
liboNet | 80f587a | 2019-05-17 01:30:16 +0800 | [diff] [blame] | 86 | - mountPath: /opt/app/distribution/etc/mounted/config.json |
| 87 | name: {{ include "common.name" .}} |
| 88 | subPath: config.json |
| 89 | - mountPath: /data |
| 90 | name: artifact-data |
efiacor | c8c3316 | 2022-11-25 11:36:52 +0000 | [diff] [blame] | 91 | env: |
efiacor | c8c3316 | 2022-11-25 11:36:52 +0000 | [diff] [blame] | 92 | - name: SASL_JAAS_CONFIG |
david.mcweeney | 2886a11 | 2023-02-10 12:35:20 +0000 | [diff] [blame] | 93 | valueFrom: |
| 94 | secretKeyRef: |
| 95 | name: {{ include "common.name" . }}-ku |
| 96 | key: sasl.jaas.config |
farida azmy | 7251355 | 2021-10-12 18:55:21 +0200 | [diff] [blame] | 97 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 98 | volumes: |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 99 | - name: framework-log |
| 100 | emptyDir: |
| 101 | sizeLimit: {{ .Values.volumes.logSizeLimit }} |
Kiran Kamineni | e2ba7c8 | 2019-04-22 17:52:13 -0700 | [diff] [blame] | 102 | - name : {{ include "common.name" . }} |
| 103 | configMap: |
| 104 | name: {{ include "common.fullname" . }} |
liboNet | 80f587a | 2019-05-17 01:30:16 +0800 | [diff] [blame] | 105 | - name: artifact-data |
Andreas Geissler | 6fd2821 | 2024-10-22 11:33:38 +0200 | [diff] [blame] | 106 | emptyDir: |
| 107 | sizeLimit: {{ .Values.volumes.artifactDataSizeLimit }} |
Andreas Geissler | bd0d31a | 2024-03-20 09:51:32 +0100 | [diff] [blame] | 108 | {{- include "common.imagePullSecrets" . | nindent 6 }} |