apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubevirt-image-service
  namespace: kis
spec:
  replicas: 3
  selector:
    matchLabels:
      name: kubevirt-image-service
  template:
    metadata:
      labels:
        name: kubevirt-image-service
    spec:
      serviceAccountName: kubevirt-image-service
      containers:
        - name: kubevirt-image-service
          image: quay.io/tmaxanc/kubevirt-image-service:latest
          command:
          - kubevirt-image-service
          imagePullPolicy: Always
          env:
            - name: WATCH_NAMESPACE
              value: ""
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: OPERATOR_NAME
              value: "kubevirt-image-service"
