diff options
author | Sridhar Rao <sridhar.rao@spirent.com> | 2020-07-22 13:09:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2020-07-22 13:09:57 +0000 |
commit | 1fe9ace8ff03f71d47e156c1cf82dbb07fe96c27 (patch) | |
tree | 490ba4d59b245fd6811109ea4d576e9bf82ddac5 /tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/userspace-daemonset.yml | |
parent | 6801918e1ca373e61eb081d1d577cbb092a7d234 (diff) | |
parent | 4c29bee136718738ca012278588e18e95e120e0b (diff) |
Merge "TOOLS: Ansible Playbook for Deployed Kubernetes Cluster."
Diffstat (limited to 'tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/userspace-daemonset.yml')
-rw-r--r-- | tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/userspace-daemonset.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/userspace-daemonset.yml b/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/userspace-daemonset.yml new file mode 100644 index 00000000..74bb520c --- /dev/null +++ b/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/files/userspace-daemonset.yml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: userspace-cni-amd64 + namespace: kube-system + labels: + tier: node + app: userspace-cni +spec: + selector: + matchLabels: + app: userspace-cni + template: + metadata: + labels: + tier: node + app: userspace-cni + spec: + hostNetwork: true + nodeSelector: + beta.kubernetes.io/arch: amd64 + tolerations: + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule + containers: + - name: userspace-cni-plugin + image: parthyadav/userspace-cni:latest + imagePullPolicy: IfNotPresent + resources: + requests: + cpu: "100m" + memory: "50Mi" + limits: + cpu: "100m" + memory: "50Mi" + securityContext: + privileged: true + volumeMounts: + - name: cnibin + mountPath: /host/opt/cni/bin + volumes: + - name: cnibin + hostPath: + path: /opt/cni/bin + |