-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxcluster-cni-secondary-net.yaml
61 lines (60 loc) · 1.6 KB
/
xcluster-cni-secondary-net.yaml
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: xcluster-cni-secondary-net
spec:
selector:
matchLabels:
app: xcluster-cni-secondary-net
template:
metadata:
labels:
app: xcluster-cni-secondary-net
spec:
nodeSelector:
kubernetes.io/os: linux
hostNetwork: true
initContainers:
- name: install
image: registry.nordix.org/cloud-native/xcluster-cni:latest
imagePullPolicy: IfNotPresent
command: ["/xcluster-cni.sh", "install"]
securityContext:
privileged: true
env:
- name: INSTALL_K8S_NET
value: "no"
volumeMounts:
- mountPath: /cni/bin
name: cni-bin-dir
readOnly: false
- mountPath: /cni/net.d
name: cni-net-dir
readOnly: false
containers:
- name: xcluster-cni
image: registry.nordix.org/cloud-native/xcluster-cni:latest
imagePullPolicy: IfNotPresent
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: LOG_LEVEL
value: "debug"
- name: CIDR_ANNOTATION
value: "cidr.example.com/eth2"
- name: ADDRESS_ANNOTATION
value: "adr.example.com/eth2"
- name: PROTOCOL
value: "210"
securityContext:
capabilities:
add: ["NET_ADMIN"]
volumes:
- name: cni-bin-dir
hostPath:
path: /opt/cni/bin
- name: cni-net-dir
hostPath:
path: /etc/cni/net.d