6c37f31250e408ee88f74e942b5bca29e8b5fe8c
[demo.git] / vnfs / DAaaS / microservices / visualization-operator / deploy / operator.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: visualization-operator
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       name: visualization-operator
10   template:
11     metadata:
12       labels:
13         name: visualization-operator
14     spec:
15       serviceAccountName: visualization-operator
16       containers:
17         - name: visualization-operator
18           # Replace this with the built image name
19           image: REPLACE_IMAGE
20           command:
21           - visualization-operator
22           imagePullPolicy: Always
23           env:
24             - name: WATCH_NAMESPACE
25               valueFrom:
26                 fieldRef:
27                   fieldPath: metadata.namespace
28             - name: POD_NAME
29               valueFrom:
30                 fieldRef:
31                   fieldPath: metadata.name
32             - name: OPERATOR_NAME
33               value: "visualization-operator"