go-zen-chu / ubuntu-k8s-playbook

kubernetes cluster build on ubuntu 22.04
MIT License
1 stars 0 forks source link

Make kubernetes login available with oidc #10

Open go-zen-chu opened 3 months ago

go-zen-chu commented 3 months ago

Why

Proposal

Why not use client certificate?

What

  1. set oidc provider to kube-apiserver
  2. setup google oidc setting
  3. install https://github.com/int128/kubelogin
  4. open kube-apiserver to public
go-zen-chu commented 1 month ago

How can we set apiserver option in k3s?

kube-apiserver-arg:
- "oidc-issuer-url=https://accounts.google.com"
- "oidc-client-id=<YOUR_CLIENT_ID>"
- "oidc-username-claim=email"
- "authorization-mode=RBAC"