diff options
author | Todd Malsbary <todd.malsbary@intel.com> | 2021-06-04 14:24:56 -0700 |
---|---|---|
committer | Todd Malsbary <todd.malsbary@intel.com> | 2021-06-15 14:42:16 -0700 |
commit | a99aa8015594cbfd9d46bbc8313f72321a95cc1f (patch) | |
tree | 85cba2e3b9a947d18b159cd19114a5357ed70d8e /kud/deployment_infra/helm/kubevirt-operator/templates/deployment.yaml | |
parent | dc925231a978d1ae4dce969cb4c386d4a1b0bb87 (diff) |
Add kubevirt and cdi addon helm charts
Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I6ba134140f0aca6717c656ffa35c6576426a8b98
Diffstat (limited to 'kud/deployment_infra/helm/kubevirt-operator/templates/deployment.yaml')
-rw-r--r-- | kud/deployment_infra/helm/kubevirt-operator/templates/deployment.yaml | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/kud/deployment_infra/helm/kubevirt-operator/templates/deployment.yaml b/kud/deployment_infra/helm/kubevirt-operator/templates/deployment.yaml new file mode 100644 index 00000000..1cd64725 --- /dev/null +++ b/kud/deployment_infra/helm/kubevirt-operator/templates/deployment.yaml @@ -0,0 +1,86 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "kubevirt-operator.fullname" . }} + labels: + {{- include "kubevirt-operator.labels" . | nindent 4 }} + kubevirt.io: virt-operator +spec: + replicas: 2 + selector: + matchLabels: + {{- include "kubevirt-operator.selectorLabels" . | nindent 6 }} + kubevirt.io: virt-operator + strategy: + type: RollingUpdate + template: + metadata: + annotations: + scheduler.alpha.kubernetes.io/critical-pod: "" + labels: + {{- include "kubevirt-operator.selectorLabels" . | nindent 8 }} + kubevirt.io: virt-operator + prometheus.kubevirt.io: "" + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "kubevirt-operator.serviceAccountName" . }} + containers: + - name: virt-operator + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + command: + - virt-operator + - --port + - "8443" + - -v + - "2" + env: + - name: OPERATOR_IMAGE + value: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} + - name: WATCH_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.annotations['olm.targetNamespaces'] + ports: + - containerPort: 8443 + name: metrics + protocol: TCP + - containerPort: 8444 + name: webhooks + protocol: TCP + readinessProbe: + httpGet: + path: /metrics + port: 8443 + scheme: HTTPS + initialDelaySeconds: 5 + timeoutSeconds: 10 + resources: + {{- toYaml .Values.resources | nindent 10 }} + volumeMounts: + - mountPath: /etc/virt-operator/certificates + name: kubevirt-operator-certs + readOnly: true + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 6 }} + {{- end }} + priorityClassName: {{ include "kubevirt-operator.priorityClassName" . }} + securityContext: + {{- toYaml .Values.securityContext | nindent 8 }} + volumes: + - name: kubevirt-operator-certs + secret: + optional: true + secretName: kubevirt-operator-certs |