diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-07-31 15:32:28 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-08-28 12:45:14 -0700 |
commit | ab8c95eff5c1228237f758d3ccfc99c751f713f7 (patch) | |
tree | a950ac5356f547434f24c8cc3bf53f3620e84a74 /src/monitor/deploy/operator.yaml | |
parent | dcace0784979890bb986fb078348b4b3ceef146c (diff) |
Adding monitor operator to monitor edge resources
Add an operator to monitor resources at the edge location.
The operator listens to pods and services right now and stores
their information in a CustomResource
Issue-ID: MULTICLOUD-675
Change-Id: I801478a77fcd019010ea1b4388d6077f63b89d05
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src/monitor/deploy/operator.yaml')
-rw-r--r-- | src/monitor/deploy/operator.yaml | 33 |
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" |