-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaemonset.yaml
70 lines (70 loc) · 1.95 KB
/
daemonset.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
61
62
63
64
65
66
67
68
69
70
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
k8s-app: calico-node-mtu-setup
name: calico-node-mtu-setup
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: calico-node-mtu-setup
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
k8s-app: calico-node-mtu-setup
spec:
serviceAccount: calico-node-mtu-setup
serviceAccountName: calico-node-mtu-setup
priorityClassName: system-node-critical
nodeSelector:
beta.kubernetes.io/os: linux
projectcalico.org/ds-ready: "true"
containers:
- name: mtu-setup
image: registry.gitlab.com/k8spin-open/container-images/kubectl:1.15.0
imagePullPolicy: Always
command: ["/bin/bash", "-c"]
args: ["/etc/scripts/mtu.sh /host/etc/cni/net.d"]
env:
- name: CNI_CONF_NAME
value: 10-calico.conflist
- name: MTU_SIZE
value: "1460"
- name: RETRY_PERIOD
value: "10"
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
resources:
requests:
cpu: 10m
memory: 10Mi
volumeMounts:
- mountPath: /etc/scripts
name: calico-node-mtu-setup
- mountPath: /host/etc/cni/net.d
name: cni-net-dir
restartPolicy: Always
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
volumes:
- hostPath:
path: /etc/cni/net.d
type: ""
name: cni-net-dir
- name: calico-node-mtu-setup
configMap:
name: calico-node-mtu-setup
defaultMode: 0777