ansible-role-kubernetes icon indicating copy to clipboard operation
ansible-role-kubernetes copied to clipboard

User "system:anonymous" cannot get resource "configmaps" in API group

Open wonderphil opened this issue 1 year ago • 3 comments

Hi

I just tried using your role and ran into an issue when trying to join nodes to the cluster:

Failed to request cluster-info, will try again: 
    configmaps "cluster-info" is forbidden: 
    User "system:anonymous" cannot get resource "configmaps" in API group "" 
    in the namespace "kube-public"

Wondering if you had seen this before and know what I am doing wrong, I am using pretty much all the default vars; the only ones that I have changed are:

kubernetes_config_kubelet_configuration:
    cgroupDriver: systemd
kubernetes_allow_pods_on_control_plane: false
kubernetes_pod_network: 10.50.0.0/16

wonderphil avatar Mar 24 '23 08:03 wonderphil

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] avatar Jul 23 '23 03:07 github-actions[bot]

I had the same issue. Running sudo kubeadm reset on all nodes and trying again solved this issue for me.

bart-roos avatar Sep 13 '23 09:09 bart-roos

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] avatar Jan 21 '24 03:01 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Mar 24 '24 03:03 github-actions[bot]