adamant-kite-43734
11/24/2025, 10:19 AMnarrow-guitar-87575
11/24/2025, 12:01 PMcreamy-pencil-82913
11/24/2025, 8:56 PMnarrow-guitar-87575
11/24/2025, 8:57 PMnarrow-guitar-87575
11/24/2025, 8:58 PMcreamy-pencil-82913
11/24/2025, 8:58 PMnarrow-guitar-87575
11/24/2025, 8:59 PMcreamy-pencil-82913
11/24/2025, 9:01 PMnarrow-guitar-87575
11/24/2025, 9:03 PMapiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: rke2-multus
namespace: kube-system
spec:
valuesContent: |-
rke2-whereabouts:
enabled: true
resources:
limits:
cpu: 1
memory: 300Mi
requests:
cpu: 1m
memory: 50Micreamy-pencil-82913
11/24/2025, 9:03 PMeager-iron-71848
11/25/2025, 3:16 PMnarrow-guitar-87575
11/25/2025, 3:17 PMeager-iron-71848
11/25/2025, 3:18 PMnarrow-guitar-87575
11/25/2025, 3:18 PMnarrow-guitar-87575
11/26/2025, 9:12 PM{
"aud": [
"<https://kubernetes.default.svc.cluster.local>",
"rke2"
],
"exp": 1795726175,
"iat": 1764190175,
"iss": "<https://kubernetes.default.svc.cluster.local>",
"jti": "x",
"<http://kubernetes.io|kubernetes.io>": {
"namespace": "kube-system",
"node": {
"name": "<http://kub-a5.priv.cerit-sc.cz|kub-a5.priv.cerit-sc.cz>",
"uid": "5e66478b-b931-4d06-86f7-eb9d7e781ca1"
},
"pod": {
"name": "rke2-multus-4gs84",
"uid": "7ab64287-80cc-4735-9049-3ebb8d28e917"
},
"serviceaccount": {
"name": "multus",
"uid": "302045cb-9d93-4baa-b049-03e30a9338b8"
},
"warnafter": 1764193782
},
"nbf": 1764190175,
"sub": "system:serviceaccount:kube-system:multus"
}
while rke2 1.33.6 issues token:
{
"aud": [
"<https://kubernetes.default.svc.cluster.local>",
"rke2"
],
"exp": 1764194795,
"iat": 1764191188,
"iss": "<https://kubernetes.default.svc.cluster.local>",
"jti": "x",
"<http://kubernetes.io|kubernetes.io>": {
"namespace": "kube-system",
"node": {
"name": "<http://app001.ostr.nrp1.du.cesnet.cz|app001.ostr.nrp1.du.cesnet.cz>",
"uid": "0cef76c3-2679-40d1-bd07-2a05ced1cec6"
},
"pod": {
"name": "rke2-multus-pb78x",
"uid": "6c9a00d2-075f-438c-8a37-2f8556258314"
},
"serviceaccount": {
"name": "multus",
"uid": "03a9e926-29b6-4890-a800-a2c0125b210d"
}
},
"nbf": 1764191188,
"sub": "system:serviceaccount:kube-system:multus"
}
see that exp field in the 1.33.5 version is set to 1y ahead, while exp field in 1.33.6 is set to +1h.
both versions mount the token using:
- name: kube-api-access-lm6pk
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
so it looks like the expiry did not work before, but now it does.
or does anybody understand things here?creamy-pencil-82913
11/26/2025, 9:20 PMserviceAccountToken source, that contains a token that the kubelet acquires from kube-apiserver. The kubelet fetches time-bound tokens using the TokenRequest API. A token served for a TokenRequest expires either when the pod is deleted or after a defined lifespan (by default, that is 1 hour). The kubelet also refreshes that token before the token expires. The token is bound to the specific Pod and has the kube-apiserver as its audience.creamy-pencil-82913
11/26/2025, 9:23 PM--service-account-max-token-expiration apiserver flag I believenarrow-guitar-87575
11/26/2025, 9:24 PMcreamy-pencil-82913
11/26/2025, 9:25 PMnarrow-guitar-87575
11/26/2025, 9:25 PMkube-apiserver --admission-control-config-file=/etc/rancher/rke2/rke2-pss-cerit.yaml --audit-policy-file=/etc/rancher/rke2/audit-policy.yaml --audit-log-maxage=30 --audit-log-maxbackup=10 --audit-log-maxsize=100 --advertise-address=10.16.62.14 --allow-privileged=true --anonymous-auth=false --api-audiences=<https://kubernetes.default.svc.cluster.local>,rke2 --audit-log-format=json --audit-log-maxage=30 --audit-log-maxbackup=10 --audit-log-maxsize=100 --audit-log-path=/var/log/kube-audit/audit.log --audit-policy-file=/etc/rancher/rke2/audit-policy.yaml --authorization-mode=Node,RBAC --bind-address=0.0.0.0 --cert-dir=/var/lib/rancher/rke2/server/tls/temporary-certs --client-ca-file=/var/lib/rancher/rke2/server/tls/client-ca.crt --egress-selector-config-file=/var/lib/rancher/rke2/server/etc/egress-selector-config.yaml --enable-admission-plugins=NodeRestriction --enable-aggregator-routing=true --enable-bootstrap-token-auth=true --encryption-provider-config=/var/lib/rancher/rke2/server/cred/encryption-config.json --encryption-provider-config-automatic-reload=true --etcd-cafile=/var/lib/rancher/rke2/server/tls/etcd/server-ca.crt --etcd-certfile=/var/lib/rancher/rke2/server/tls/etcd/client.crt --etcd-keyfile=/var/lib/rancher/rke2/server/tls/etcd/client.key --etcd-servers=<https://127.0.0.1:2379> --feature-gates=UserNamespacesPodSecurityStandards=true,InPlacePodVerticalScalingExclusiveCPUs=true --kubelet-certificate-authority=/var/lib/rancher/rke2/server/tls/server-ca.crt --kubelet-client-certificate=/var/lib/rancher/rke2/server/tls/client-kube-apiserver.crt --kubelet-client-key=/var/lib/rancher/rke2/server/tls/client-kube-apiserver.key --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname --profiling=false --proxy-client-cert-file=/var/lib/rancher/rke2/server/tls/client-auth-proxy.crt --proxy-client-key-file=/var/lib/rancher/rke2/server/tls/client-auth-proxy.key --requestheader-allowed-names=system:auth-proxy --requestheader-client-ca-file=/var/lib/rancher/rke2/server/tls/request-header-ca.crt --requestheader-extra-headers-prefix=X-Remote-Extra- --requestheader-group-headers=X-Remote-Group --requestheader-username-headers=X-Remote-User --secure-port=6443 --service-account-issuer=<https://kubernetes.default.svc.cluster.local> --service-account-key-file=/var/lib/rancher/rke2/server/tls/service.key --service-account-signing-key-file=/var/lib/rancher/rke2/server/tls/service.current.key --service-cluster-ip-range=10.43.0.0/16,2001:718:801:42cb:8:3::/112 --service-node-port-range=30000-32767 --storage-backend=etcd3 --tls-cert-file=/var/lib/rancher/rke2/server/tls/serving-kube-apiserver.crt --tls-cipher-suites=TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 --tls-private-key-file=/var/lib/rancher/rke2/server/tls/serving-kube-apiserver.keynarrow-guitar-87575
11/26/2025, 9:25 PMcreamy-pencil-82913
11/26/2025, 9:37 PMnarrow-guitar-87575
11/26/2025, 9:37 PMcreamy-pencil-82913
11/26/2025, 9:38 PMroot@rke2-server-001:/# kubectl get node -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
<http://rke2-server-001.example.com|rke2-server-001.example.com> Ready control-plane,etcd,master 9m38s v1.33.6+rke2r1 172.17.0.4 <none> Ubuntu 22.04.5 LTS 6.14.0-1012-aws <containerd://2.1.5-k3s1>narrow-guitar-87575
11/26/2025, 9:39 PM/var/lib/kubelet/pods/[multuspodid]/volumes/kubernetes.io~projected/kube-api-access-*/token is that so?creamy-pencil-82913
11/26/2025, 9:46 PMroot@rke2-server-001:/# for ID in $(kubectl get pod -n kube-system -l app=rke2-multus -o jsonpath={.items[].metadata.uid}); do cat /var/lib/kubelet/pods/$ID/volumes/kubernetes.io~projected/kube-api-access-*/token; echo; donecreamy-pencil-82913
11/26/2025, 9:47 PMroot@rke2-server-001:/# for ID in $(kubectl get pod -n kube-system -l app=rke2-multus -o jsonpath={.items[].metadata.uid}); do cat /var/lib/kubelet/pods/$ID/volumes/kubernetes.io~projected/kube-api-access-*/token; echo; done
eyJhbGciOiJSUzI1NiIsImtpZCI6InJSY0NXYUFjQXBMb21mX3AwclY4Mk13Q0w0aVF0NjhCTkpxMjVJYUhLMVEifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiLCJya2UyIl0sImV4cCI6M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BEviKFR08T4p-F2wNY9xx9tkd47XEt5rLqyxkJ9PI7KjqiIcUaffKFcHkWPW4w9kekMVXvUTEYVdWFKaouTbtZm19jp7tqwM7cqB-FDTml4zQ-wqluwvv2f3rrSWWMRkiXpwnQad9cRwjDlWuAbUBXXlFQ"
root@rke2-server-001:/#rke2creamy-pencil-82913
11/26/2025, 9:47 PMnarrow-guitar-87575
11/26/2025, 9:47 PMnarrow-guitar-87575
11/26/2025, 9:47 PMcreamy-pencil-82913
11/26/2025, 9:48 PMcreamy-pencil-82913
11/26/2025, 9:48 PMnarrow-guitar-87575
11/26/2025, 9:49 PMnarrow-guitar-87575
11/26/2025, 9:49 PMnarrow-guitar-87575
11/26/2025, 9:50 PMnarrow-guitar-87575
11/26/2025, 9:50 PMcreamy-pencil-82913
11/26/2025, 9:52 PMcreamy-pencil-82913
11/26/2025, 9:52 PMcreamy-pencil-82913
11/26/2025, 9:52 PMnarrow-guitar-87575
11/26/2025, 9:54 PMkubeconfig is created in /host/etc/cni/net.d/multus.d/multus.kubeconfig
kubeconfig file is created.
master capabilities is get from conflist
multus config file is created.
and nothing morecreamy-pencil-82913
11/26/2025, 9:55 PMEntering watch loop…creamy-pencil-82913
11/26/2025, 9:55 PMcontainers:
- args:
- --multus-conf-file=auto
- --cni-conf-dir=/host/etc/cni/net.d
- --cni-bin-dir=/host/opt/cni/bin
- --multus-autoconfig-dir=/host/etc/cni/net.d
- --multus-kubeconfig-file-host=/etc/cni/net.d/multus.d/multus.kubeconfig
command:
- /thin_entrypoint
env:
- name: KUBERNETES_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
image: rancher/hardened-multus-cni:v4.2.3-build20251031creamy-pencil-82913
11/26/2025, 9:56 PM--cleanup-config-on-exit flagnarrow-guitar-87575
11/26/2025, 9:56 PM- args:
- '--multus-conf-file=auto'
- '--cni-conf-dir=/host/etc/cni/net.d'
- '--cni-bin-dir=/host/opt/cni/bin'
- '--multus-autoconfig-dir=/host/etc/cni/net.d'
- >-
--multus-kubeconfig-file-host=/etc/cni/net.d/multus.d/multus.kubeconfig
command:
- /thin_entrypointcreamy-pencil-82913
11/26/2025, 9:57 PMcreamy-pencil-82913
11/26/2025, 9:59 PMapiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-multus
namespace: kube-system
spec:
valuesContent: |-
config:
cni_conf:
cleanupConfigOnExit: true
rke2-whereabouts:
enabled: true
resources:
limits:
cpu: 1
memory: 300Mi
requests:
cpu: 1m
memory: 50Micreamy-pencil-82913
11/26/2025, 10:00 PMnarrow-guitar-87575
11/26/2025, 10:01 PMkubeconfig is created in /host/etc/cni/net.d/multus.d/multus.kubeconfig
kubeconfig file is created.
master capabilities is get from conflist
multus config file is created.
Entering watch loop...creamy-pencil-82913
11/26/2025, 10:01 PMnarrow-guitar-87575
11/26/2025, 10:02 PMcreamy-pencil-82913
11/26/2025, 10:02 PMnarrow-guitar-87575
11/26/2025, 10:03 PMcreamy-pencil-82913
11/26/2025, 10:06 PMnarrow-guitar-87575
11/26/2025, 10:07 PM--service-account-extend-token-expiration=false it is actually set to this valuenarrow-guitar-87575
11/26/2025, 10:07 PMcreamy-pencil-82913
11/26/2025, 10:09 PMcreamy-pencil-82913
11/26/2025, 10:09 PMnarrow-guitar-87575
11/26/2025, 10:09 PMcreamy-pencil-82913
11/26/2025, 10:09 PMnarrow-guitar-87575
11/26/2025, 10:10 PMcreamy-pencil-82913
11/26/2025, 10:10 PMcreamy-pencil-82913
11/26/2025, 10:10 PMnarrow-guitar-87575
11/26/2025, 10:11 PMcreamy-pencil-82913
11/26/2025, 10:25 PMnarrow-guitar-87575
11/26/2025, 11:17 PMcreamy-pencil-82913
11/26/2025, 11:20 PM