# k8s-toolkit **Repository Path**: mirrors_cofyc/k8s-toolkit ## Basic Information - **Project Name**: k8s-toolkit - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # k8s ## Generate kube config files for all kubelets ``` SERVER=https://... ./hack/gen-node-kubeconfig.sh $SERVER $(kubectl get nodes -ojsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}') ./hack/copy-and-restart-kubelet.sh ``` ## Generate master files ``` SERVER=https://... ./hack/gen-master-files.sh $SERVER ``` ## Copy master files to other master ``` ./hack/copy-master-files.sh ``` ## Restart kube-apiserver/kube-controller-manager/kube-scheduler on each master ``` ./hack/restart-master-components.sh ``` check: ``` kubectl -n kube-system get pods -l tier=control-plane -o wide ``` ## SSH into a node via kubectl See https://github.com/luksa/kubectl-plugins#kubectl-ssh-node