Skip to content

Commit 4e30ef9

Browse files
committed
ci: conflist installer
1 parent 9a1f4f0 commit 4e30ef9

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: azure-cni-conflist-installer
5+
namespace: kube-system
6+
labels:
7+
app: azure-cni
8+
spec:
9+
selector:
10+
matchLabels:
11+
k8s-app: azure-cni
12+
template:
13+
metadata:
14+
labels:
15+
k8s-app: azure-cni
16+
spec:
17+
affinity:
18+
nodeAffinity:
19+
requiredDuringSchedulingIgnoredDuringExecution:
20+
nodeSelectorTerms:
21+
- matchExpressions:
22+
- key: type
23+
operator: NotIn
24+
values:
25+
- virtual-kubelet
26+
- key: kubernetes.io/os
27+
operator: In
28+
values:
29+
- linux
30+
- key: kubernetes.azure.com/managed
31+
operator: In
32+
values:
33+
- "false"
34+
priorityClassName: system-node-critical
35+
tolerations:
36+
- key: CriticalAddonsOnly
37+
operator: Exists
38+
- operator: "Exists"
39+
effect: NoExecute
40+
- operator: "Exists"
41+
effect: NoSchedule
42+
initContainers:
43+
- name: cni-installer
44+
image: ${CNI_IMAGE}
45+
imagePullPolicy: Always
46+
command: ["/dropgz"]
47+
args:
48+
- deploy
49+
- --skip-verify
50+
- ${CONFLIST}
51+
- -o
52+
- /etc/cni/net.d/${CONFLIST_PRIORITY}-${CONFLIST}
53+
volumeMounts:
54+
- name: cni-conflist
55+
mountPath: /etc/cni/net.d
56+
containers:
57+
- name: pause
58+
image: mcr.microsoft.com/oss/kubernetes/pause:3.6
59+
hostNetwork: true
60+
volumes:
61+
- name: cni-conflist
62+
hostPath:
63+
path: /etc/cni/net.d
64+
type: Directory
65+
66+
# acnpublic.azurecr.io/azure-cni:linux-amd64-v1.7.5-3-g93d32acd0
67+
# envsubst '${CONFLIST},${CONFLIST_PRIORITY},${CNI_IMAGE}' < test/integration/manifests/cni/conflist-installer.yaml | kubectl apply -f -

0 commit comments

Comments
 (0)