apiVersion: apps/v1
kind: Deployment
metadata:
  name: learning
spec:
  replicas: 1
  selector:
    matchLabels:
      name: learning
  template:
    metadata:
      labels:
        name: learning
    spec:
      serviceAccountName: learning
      containers:
        - name: learning
          # Replace this with the built image name
          image: REPLACE_IMAGE
          command:
          - learning
          imagePullPolicy: Always
          env:
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: OPERATOR_NAME
              value: "learning"
