apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubedge-operator-ansible
spec:
  replicas: 1
  selector:
    matchLabels:
      name: kubedge-operator-ansible
  template:
    metadata:
      labels:
        name: kubedge-operator-ansible
    spec:
      serviceAccountName: kubedge-operator-ansible
      containers:
        - name: kubedge-operator-ansible
          # Replace this with the built image name
          image: hack4easy/kubedge-operator-ansible-dev:v0.0.1
          ports:
          - containerPort: 60000
            name: metrics
          imagePullPolicy: Always
          env:
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: OPERATOR_NAME
              value: "kubedge-operator-ansible"
