-
Notifications
You must be signed in to change notification settings - Fork 0
How to configure k8s API Server in kind
Cesar Celis Hernandez edited this page Jun 6, 2024
·
1 revision
-
Create cluster
-
Open Command Line Interface in the Control Plane Node
-
apt update
-
apt upgrade
-
apt install vim
-
vim /etc/kubernetes/manifests/kube-apiserver.yaml
-
Add your flags, example:
spec:
containers:
- command:
- kube-apiserver
- --oidc-issuer-url=https://dev-xqm5ioqlmy7qyjvl.us.auth0.com <------------- Added this
- --oidc-client-id=rMVc40T7fwgbEez1svp8wmjBtSaoKIOJ <----------------------- Added this
- --advertise-address=172.18.0.4
-
Wait for pods to restart
-
reconnect
-
kube api server will now contain your configuration:
- Pod:
kube-apiserver-kind-control-plane
containers:
- name: kube-apiserver
image: registry.k8s.io/kube-apiserver:v1.29.2
command:
- kube-apiserver
- '--oidc-issuer-url=https://dev-xqm5ioqlmy7qyjvl.us.auth0.com' <------- Added
- '--oidc-client-id=rMVc40T7fwgbEez1svp8wmjBtSaoKIOJ' <----------------- Added
- '--advertise-address=172.18.0.4'
NOTE: Don't edit directly the pod, is not allowed, modify file from node instead.