Hey all,
When I deploy a simple pod to a namespace. kubernetes fails to deploy the pod with the below warning
│ Type Reason Age From Message │
│ ---- ------ ---- ---- ------- │
│ Normal Scheduled 13m default-scheduler Successfully assigned monitoring/helloworld-deployment-64d678f457-9t9bj to k8-worker │
│ Warning FailedMount 50s (x14 over 13m) kubelet MountVolume.SetUp failed for volume "kube-api-access-fsmhg" : configmap "kube-root-ca.crt" not found```
However, running the same pod in the default namespace seems to work, I found some suggestions online to add `automountServiceAccountToken: false` to the pod spec, this allows the pod to be deployed but it's not a good enough solution since we can't access the API anymore, plus when using third-party helm charts I would rather not pull and modify them.
The question is, what is causing this, and how can I fix it. I have been struggling with this issue for two days.
PS: The `kube-root-ca.crt` config map is deployed to the namespace