How to modify kube-apiserver in KIND environment?

Shi
CI/CD/DevOps
Published in
Aug 12, 2023

Method 1:

— login to the KIND container

# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d8da3dc84264 kindest/node:v1.27.3 "/usr/local/bin/entr…" 8 days ago Up 31 minutes 127.0.0.1:37829->6443/tcp c1-control-plane

# docker exec -it d8da3dc84264 bash

// inside the pod

# vim /etc/kubernetes/manifests/kube-apiserver.yaml

Method 2:

— via the system pod running the apiserver

# k get pod -n kube-system | grep apiserver
kube-apiserver-c1-control-plane 1/1 Running 2 (41m ago) 8d

# kubectl -n kube-system edit pod kube-apiserver-c1-control-plane

--

--

Shi
CI/CD/DevOps

I am a coder/engineer/application security specialist. I like to play around with language and tools; I have strong interest in efficiency improvement.