kube-rbac-proxy container is crashing on startup because it can't access the token /var/run/secrets/kubernetes.io/serviceaccount/token. Injecting the alertmanager serviceaccount token is disabled by default.
Override on a pod level doesn't look existing.
kubectl explain Alertmanager.spec
After set automountServiceAccountToken: true in the serviceaccount, everything works.
Steps to Reproduce the Problem
Use a Kubernetes 1.23 cluster
Enable the Add-on oauth-proxy
Actual Behavior
kube-rbac-proxy has no token available
Expected Behavior
kube-rbac-proxy has access to the injected /var/run/secrets/kubernetes.io/serviceaccount/token
kube-rbac-proxy container is crashing on startup because it can't access the token
/var/run/secrets/kubernetes.io/serviceaccount/token
. Injecting the alertmanager serviceaccount token is disabled by default.Override on a pod level doesn't look existing.
After set
automountServiceAccountToken: true
in the serviceaccount, everything works.Steps to Reproduce the Problem
Actual Behavior
kube-rbac-proxy has no token available
Expected Behavior
kube-rbac-proxy has access to the injected
/var/run/secrets/kubernetes.io/serviceaccount/token