aboutsummaryrefslogtreecommitdiffstats
path: root/src/monitor/deploy/operator.yaml
diff options
context:
space:
mode:
authorRitu Sood <Ritu.Sood@intel.com>2019-08-28 20:35:09 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-28 20:35:09 +0000
commitc5218d2a9d3d6ff009a87e7f1e999a8b5c0332d3 (patch)
tree8d3522a941fdc85ef24e6294c9bd9eb9d4b1b251 /src/monitor/deploy/operator.yaml
parentb8f0a1c74947c50b3f1a5b3e3ca7cb6e4ccc7ab9 (diff)
parentab8c95eff5c1228237f758d3ccfc99c751f713f7 (diff)
Merge "Adding monitor operator to monitor edge resources"
Diffstat (limited to 'src/monitor/deploy/operator.yaml')
-rw-r--r--src/monitor/deploy/operator.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/monitor/deploy/operator.yaml b/src/monitor/deploy/operator.yaml
new file mode 100644
index 00000000..9affeaaa
--- /dev/null
+++ b/src/monitor/deploy/operator.yaml
@@ -0,0 +1,33 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: monitor
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ name: monitor
+ template:
+ metadata:
+ labels:
+ name: monitor
+ spec:
+ serviceAccountName: monitor
+ containers:
+ - name: monitor
+ # Replace this with the built image name
+ image: k8splugin.io/monitor:latest
+ command:
+ - monitor
+ imagePullPolicy: IfNotPresent
+ env:
+ - name: WATCH_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: OPERATOR_NAME
+ value: "monitor"