Skip to content

Commit d5c3386

Browse files
authored
Cns yaml (#549)
* Beginnings of cns yaml * Beginnings of cns yaml * Changing to directoryOrCreate and removing addon manager line which was killing pod automatically on aks cluster
1 parent 26569aa commit d5c3386

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

cns/azure-cns.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: azure-cns
5+
namespace: kube-system
6+
labels:
7+
app: azure-cns
8+
spec:
9+
selector:
10+
matchLabels:
11+
k8s-app: azure-cns
12+
template:
13+
metadata:
14+
labels:
15+
k8s-app: azure-cns
16+
annotations:
17+
cluster-autoscaler.kubernetes.io/daemonset-pod: "true"
18+
spec:
19+
priorityClassName: system-node-critical
20+
tolerations:
21+
- key: CriticalAddonsOnly
22+
operator: Exists
23+
nodeSelector:
24+
beta.kubernetes.io/os: linux
25+
containers:
26+
- name: cns-container
27+
image: mcr.microsoft.com/containernetworking/azure-cns:latest
28+
imagePullPolicy: Always
29+
volumeMounts:
30+
- name: log
31+
mountPath: /var/log
32+
- name: cni
33+
mountPath: /opt/cni/bin
34+
- name: cniconfig
35+
mountPath: /etc/cni/net.d
36+
- name: cnsconfig
37+
mountPath: /var/lib/azure-network
38+
ports:
39+
- containerPort: 10090
40+
env:
41+
- name: CNSIpAddress
42+
valueFrom:
43+
fieldRef:
44+
fieldPath: status.podIP
45+
hostNetwork: true
46+
volumes:
47+
- name: log
48+
hostPath:
49+
path: /var/log
50+
type: Directory
51+
- name: cni
52+
hostPath:
53+
path: /opt/cni/bin
54+
type: Directory
55+
- name: cniconfig
56+
hostPath:
57+
path: /etc/cni/net.d
58+
type: Directory
59+
- name: cnsconfig
60+
hostPath:
61+
path: /var/lib/azure-network
62+
type: DirectoryOrCreate

0 commit comments

Comments
 (0)