File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -6212,6 +6212,9 @@ spec:
6212
6212
securityContext :
6213
6213
privileged : true
6214
6214
volumeMounts :
6215
+ - mountPath : /var/log/calico/cni
6216
+ name : cni-log-dir
6217
+ readOnly : false
6215
6218
- mountPath : /host/etc/cni/net.d
6216
6219
name : cni-net-dir
6217
6220
readOnly : false
@@ -6231,9 +6234,6 @@ spec:
6231
6234
name : policysync
6232
6235
- mountPath : /sys/fs/bpf
6233
6236
name : bpffs
6234
- - mountPath : /var/log/calico/cni
6235
- name : cni-log-dir
6236
- readOnly : true
6237
6237
hostNetwork : true
6238
6238
initContainers :
6239
6239
- command :
@@ -6333,6 +6333,10 @@ spec:
6333
6333
- effect : NoExecute
6334
6334
operator : Exists
6335
6335
volumes :
6336
+ - hostPath :
6337
+ path : /var/log/calico/cni
6338
+ type : DirectoryOrCreate
6339
+ name : cni-log-dir
6336
6340
- hostPath :
6337
6341
path : /lib/modules
6338
6342
name : lib-modules
@@ -6366,9 +6370,6 @@ spec:
6366
6370
- hostPath :
6367
6371
path : /etc/cni/net.d
6368
6372
name : cni-net-dir
6369
- - hostPath :
6370
- path : /var/log/calico/cni
6371
- name : cni-log-dir
6372
6373
- hostPath :
6373
6374
path : /var/lib/cni/networks
6374
6375
name : host-local-net-dir
Original file line number Diff line number Diff line change 14
14
value : " ChecksumOffloadBroken=true"
15
15
- name : CALICO_IPV4POOL_VXLAN
16
16
value : " Always"
17
+ volumeMounts :
18
+ # Fix CNI logging - make cni-log-dir writable
19
+ - mountPath : /var/log/calico/cni
20
+ name : cni-log-dir
21
+ readOnly : false
22
+ volumes :
23
+ # Ensure CNI log directory gets created
24
+ - hostPath :
25
+ path : /var/log/calico/cni
26
+ type : DirectoryOrCreate
27
+ name : cni-log-dir
17
28
You can’t perform that action at this time.
0 commit comments