diff options
author | 2021-06-24 20:39:22 +0000 | |
---|---|---|
committer | 2021-06-24 20:39:22 +0000 | |
commit | 3c09e032b06c18426e59ec38d925e2b4ace24abc (patch) | |
tree | ff8a6c1ed8dc0d7f861195b936e30e61d2b1b0bb /kud/deployment_infra/helm/cdi-operator/templates/deployment.yaml | |
parent | 40e13a3001826fbc1682dad51e5c1366aa62581e (diff) | |
parent | a99aa8015594cbfd9d46bbc8313f72321a95cc1f (diff) |
Merge "Add kubevirt and cdi addon helm charts"
Diffstat (limited to 'kud/deployment_infra/helm/cdi-operator/templates/deployment.yaml')
-rw-r--r-- | kud/deployment_infra/helm/cdi-operator/templates/deployment.yaml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/kud/deployment_infra/helm/cdi-operator/templates/deployment.yaml b/kud/deployment_infra/helm/cdi-operator/templates/deployment.yaml new file mode 100644 index 00000000..3010d6e7 --- /dev/null +++ b/kud/deployment_infra/helm/cdi-operator/templates/deployment.yaml @@ -0,0 +1,70 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "cdi-operator.fullname" . }} + labels: + {{- include "cdi-operator.labels" . | nindent 4 }} + operator.cdi.kubevirt.io: "" +spec: + replicas: 1 + selector: + matchLabels: + {{- include "cdi-operator.selectorLabels" . | nindent 6 }} + operator.cdi.kubevirt.io: "" + strategy: {} + template: + metadata: + labels: + {{- include "cdi-operator.selectorLabels" . | nindent 8 }} + operator.cdi.kubevirt.io: "" + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "cdi-operator.serviceAccountName" . }} + containers: + - name: cdi-operator + image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + - name: DEPLOY_CLUSTER_RESOURCES + value: "true" + - name: OPERATOR_VERSION + value: {{ .Values.image.tag | default .Chart.AppVersion }} + - name: CONTROLLER_IMAGE + value: {{ .Values.controllerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + - name: IMPORTER_IMAGE + value: {{ .Values.importerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + - name: CLONER_IMAGE + value: {{ .Values.clonerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + - name: APISERVER_IMAGE + value: {{ .Values.apiserverImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + - name: UPLOAD_SERVER_IMAGE + value: {{ .Values.uploadServerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + - name: UPLOAD_PROXY_IMAGE + value: {{ .Values.uploadProxyImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + - name: VERBOSITY + value: "1" + - name: PULL_POLICY + value: {{ .Values.image.pullPolicy }} + ports: + - containerPort: 60000 + name: metrics + protocol: TCP + resources: + {{- toYaml .Values.resources | nindent 10 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 6 }} + {{- end }} + securityContext: + {{- toYaml .Values.securityContext | nindent 8 }} |