Skip to content

Commit

Permalink
fix 1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
devopstales committed Mar 26, 2022
1 parent 7c71f1a commit a6b715a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions go-client/dist/krew/openid-connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,27 @@ spec:
After authentication, it writes the token to the kubeconfig and you can access the cluster.
caveats: |
1) You need to install the openid-connect server component by helm:
helm repo add devopstales https://devopstales.github.io/helm-charts
helm repo update
kubectl create ns kubeauth
kubens kubeauth
helm upgrade --install kubelogin devopstales/kube-openid-connect -f values.yaml
2) You need to setup the OIDC provider at Kubernetes API server.
nano /etc/kubernetes/manifests/kube-apiserver.yaml
...
command:
- /hyperkube
- apiserver
...
- --oidc-issuer-url={{ oidcServerURL }}
- --oidc-client-id={{ oidcClientID }}
- --oidc-username-claim=email
- --oidc-groups-claim=groups
# for self sign cert or custom ca
#- --oidc-ca-file=/etc/kubernetes/pki/rootca.pem
systemctl restart kubelet
3) You need to setup role binding for users or groupe.
platforms:
- bin: kubectl-login
Expand Down

0 comments on commit a6b715a

Please sign in to comment.