Integrate Nokia/danm CNI into IEC
[iec.git] / src / foundation / scripts / cni / danm / integration / manifests / svcwatcher / svcwatcher_ds.yaml
diff --git a/src/foundation/scripts/cni/danm/integration/manifests/svcwatcher/svcwatcher_ds.yaml b/src/foundation/scripts/cni/danm/integration/manifests/svcwatcher/svcwatcher_ds.yaml
new file mode 100644 (file)
index 0000000..a90b26a
--- /dev/null
@@ -0,0 +1,38 @@
+# yamllint disable rule:hyphens rule:commas rule:indentation
+apiVersion: apps/v1beta2
+kind: DaemonSet
+metadata:
+  name: svcwatcher
+  namespace: kube-system
+spec:
+  selector:
+    matchLabels:
+      danm.k8s.io: svcwatcher
+  template:
+    metadata:
+      annotations:
+        # Adapt to your own network environment!
+        danm.k8s.io/interfaces: |
+          [
+            {
+              "network":"flannel"
+            }
+          ]
+      labels:
+        danm.k8s.io: svcwatcher
+    spec:
+      serviceAccount: svcwatcher
+      dnsPolicy: ClusterFirst
+      nodeSelector:
+        "node-role.kubernetes.io/master": ""
+      containers:
+        - name: svcwatcher
+          image: svcwatcher
+          args:
+            - "--logtostderr"
+      tolerations:
+       - effect: NoSchedule
+         operator: Exists
+       - effect: NoExecute
+         operator: Exists
+      terminationGracePeriodSeconds: 0