How to Secure Your Kubernetes Cluster with OpenID Connect and RBAC

Never mind, I had to add the following lines to the client kubernetes config file, these are missing when “kubectl oidc-login setup --oidc-issuer-url= --oidc-client-id=” is executed and prints out the " kubectl config set-credentials" command:

- --oidc-extra-scope=email
- --oidc-extra-scope=offline_access
- --oidc-extra-scope=profile
- --oidc-extra-scope=openid