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: 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:

View File

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

View File

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