kubectl2 kube API server and kubernetes python client Although I briefly covered this in the previous post, I would like to think again about how to access the kube API server and Kubernetes, and briefly record how to interact with the Kubernetes cluster using python. 1. kube API server As described in the k8s official documentation, the core of the various components of the control plane that makes up Kubernetes is the kube API server. It is a com.. 2023. 8. 13. pod으로 클러스터 제어 pod으로 클러스터 제어 k8s 생성한 포드가 k8s 클러스터를 제어할 수 있도록 설정 # kubectl 바이너리 설치 kubectl exec -it -n -- bash curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl # 권한 부여 ## 방법1. kubeconfig 파일을 해당 포드 /root/.kube 디렉토리로 복사 mkdir ~/.kube .. 2023. 3. 7. 이전 1 다음