-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathreference-cni-daemonset.yml
More file actions
73 lines (73 loc) · 1.77 KB
/
reference-cni-daemonset.yml
File metadata and controls
73 lines (73 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cni-binary-copy-script
namespace: kube-system
annotations:
kubernetes.io/description: |
This is a script used to copy CNI binaries
data:
cnibincopy.sh: |-
#!/bin/bash
cp -f /usr/src/plugins/bin/* /host/opt/cni/bin
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kube-containernetworking-plugins-ds-amd64
namespace: kube-system
labels:
tier: node
app: containernetworking-plugins
name: containernetworking-plugins
spec:
selector:
matchLabels:
name: containernetworking-plugins
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
tier: node
app: containernetworking-plugins
name: containernetworking-plugins
spec:
hostNetwork: true
nodeSelector:
kubernetes.io/arch: amd64
tolerations:
- operator: Exists
effect: NoSchedule
initContainers:
- name: containernetworking-binary-copy
image: nfvpe/containernetworking-plugins
command: ["/entrypoint/cnibincopy.sh"]
securityContext:
privileged: true
volumeMounts:
- name: cni-binary-copy
mountPath: /entrypoint
- name: cnibin
mountPath: /host/opt/cni/bin
volumes:
- name: cnibin
hostPath:
path: /opt/cni/bin
- name: cni-binary-copy
configMap:
name: cni-binary-copy-script
defaultMode: 0744
containers:
- name: kube-containernetworking-plugins
image: busybox
command: ["sleep"]
args: ["infinity"]
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"