mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-09 09:26:35 +00:00
794 B
794 B
Team Operation
kops
Export the kubeconfig.
KUBECONFIG=.kubeconfig kops export kubecfg hello.k8s.local
Remove the admin access from the kubeconfig.
It should look as like:
apiVersion: v1
kind: Config
clusters:
- cluster:
certificate-authority-data: LS...
server: https://api.hello.k8s.example.com
name: hello.k8s.local
contexts:
- context:
cluster: hello.k8s.local
user: hello.k8s.local
name: hello.k8s.local
current-context: hello.k8s.local
preferences: {}
users:
- name: hello.k8s.local
user:
auth-provider:
name: oidc
config:
client-id: YOUR_CLIEND_ID
client-secret: YOUR_CLIENT_SECRET
idp-issuer-url: YOUR_ISSUER
You can share the kubeconfig to your team members for easy onboarding.