Kubernetes Kubeconfig for admin credentials generated by Kops

10/10/2018

How we can re-generate kubeconfig file of the admin user generated by Kops? This in the case we have many users using it and we decide to create a different privileged access to cluster resources using the RBAC concept. We have created users for each privilege access and this works fine, but need to make sure that the kubeconfig, which contains the admin credentials, is not used by any user any more.

NOTE: We have changed the base64 encoding in the s3 bucket under /cluster_name/secrets/admin then kops rolling-update for the cluster but nothing has been changed.

-- Aly Ragab
kops
kubernetes

1 Answer

10/11/2018

Looks like you cannot revoke certificate for now https://github.com/kubernetes/kubernetes/issues/60917.

Issue is still open on github https://github.com/kubernetes/kubernetes/issues/18982

-- Artem Golenyaev
Source: StackOverflow