mirror of https://git.rancher.io/rke2-charts
Fixed mounted volume on calico to update serviceAccount token
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>pull/292/head
parent
80ebf7bedd
commit
5141129ab3
|
@ -184,6 +184,12 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/calico-node
|
||||||
|
- -shutdown
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
@ -192,13 +198,19 @@ spec:
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
|
timeoutSeconds: 10
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /readiness
|
path: /readiness
|
||||||
port: 9099
|
port: 9099
|
||||||
host: localhost
|
host: localhost
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 10
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
# For maintaining CNI plugin API credentials.
|
||||||
|
- mountPath: /host/etc/cni/net.d
|
||||||
|
name: cni-net-dir
|
||||||
|
readOnly: false
|
||||||
- mountPath: /lib/modules
|
- mountPath: /lib/modules
|
||||||
name: lib-modules
|
name: lib-modules
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -213,6 +225,9 @@ spec:
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- name: policysync
|
- name: policysync
|
||||||
mountPath: /var/run/nodeagent
|
mountPath: /var/run/nodeagent
|
||||||
|
- name: cni-log-dir
|
||||||
|
mountPath: /var/log/calico/cni
|
||||||
|
readOnly: true
|
||||||
# This container runs flannel using the kube-subnet-mgr backend
|
# This container runs flannel using the kube-subnet-mgr backend
|
||||||
# for allocating subnets.
|
# for allocating subnets.
|
||||||
- name: kube-flannel
|
- name: kube-flannel
|
||||||
|
@ -275,6 +290,10 @@ spec:
|
||||||
- name: cni-net-dir
|
- name: cni-net-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/cni/net.d
|
path: /etc/cni/net.d
|
||||||
|
# Used to access CNI logs.
|
||||||
|
- name: cni-log-dir
|
||||||
|
hostPath:
|
||||||
|
path: /var/log/calico/cni
|
||||||
# Used to create per-pod Unix Domain Sockets
|
# Used to create per-pod Unix Domain Sockets
|
||||||
- name: policysync
|
- name: policysync
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|
|
@ -87,6 +87,7 @@ rules:
|
||||||
- globalbgpconfigs
|
- globalbgpconfigs
|
||||||
- bgpconfigurations
|
- bgpconfigurations
|
||||||
- ippools
|
- ippools
|
||||||
|
- ipreservations
|
||||||
- ipamblocks
|
- ipamblocks
|
||||||
- globalnetworkpolicies
|
- globalnetworkpolicies
|
||||||
- globalnetworksets
|
- globalnetworksets
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
url: local
|
url: local
|
||||||
packageVersion: 01
|
packageVersion: 02
|
||||||
|
|
Loading…
Reference in New Issue