Fixed mounted volume on calico to update serviceAccount token

Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
pull/292/head
Roberto Bonafiglia 2022-10-06 16:45:26 +02:00 committed by Roberto Bonafiglia
parent 80ebf7bedd
commit 5141129ab3
3 changed files with 21 additions and 1 deletions

View File

@ -184,6 +184,12 @@ spec:
resources:
requests:
cpu: 250m
lifecycle:
preStop:
exec:
command:
- /bin/calico-node
- -shutdown
livenessProbe:
exec:
command:
@ -192,13 +198,19 @@ spec:
periodSeconds: 10
initialDelaySeconds: 10
failureThreshold: 6
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /readiness
port: 9099
host: localhost
periodSeconds: 10
timeoutSeconds: 10
volumeMounts:
# For maintaining CNI plugin API credentials.
- mountPath: /host/etc/cni/net.d
name: cni-net-dir
readOnly: false
- mountPath: /lib/modules
name: lib-modules
readOnly: true
@ -213,6 +225,9 @@ spec:
readOnly: false
- name: policysync
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
# for allocating subnets.
- name: kube-flannel
@ -275,6 +290,10 @@ spec:
- name: cni-net-dir
hostPath:
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
- name: policysync
hostPath:

View File

@ -87,6 +87,7 @@ rules:
- globalbgpconfigs
- bgpconfigurations
- ippools
- ipreservations
- ipamblocks
- globalnetworkpolicies
- globalnetworksets

View File

@ -1,2 +1,2 @@
url: local
packageVersion: 01
packageVersion: 02