BPA Provisioning CRD and Controller
[icn.git] / cmd / bpa-operator / deploy / operator.yaml
diff --git a/cmd/bpa-operator/deploy/operator.yaml b/cmd/bpa-operator/deploy/operator.yaml
new file mode 100644 (file)
index 0000000..913c062
--- /dev/null
@@ -0,0 +1,33 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: bpa-operator
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      name: bpa-operator
+  template:
+    metadata:
+      labels:
+        name: bpa-operator
+    spec:
+      serviceAccountName: bpa-operator
+      containers:
+        - name: bpa-operator
+          # Replace this with the built image name
+          image: REPLACE_IMAGE
+          command:
+          - bpa-operator
+          imagePullPolicy: Always
+          env:
+            - name: WATCH_NAMESPACE
+              valueFrom:
+                fieldRef:
+                  fieldPath: metadata.namespace
+            - name: POD_NAME
+              valueFrom:
+                fieldRef:
+                  fieldPath: metadata.name
+            - name: OPERATOR_NAME
+              value: "bpa-operator"