kubeadm
https://d33wubrfki0l68.cloudfront.net/e4a8ddb49f07de8b2c2dbbfc7c9bedcfe0816701/600b1/images/kubeadm-stacked-color.png
「キューブエーディーエム」
「キューブアドミン」がしっくりくる気がする
Requirements
OS
CPU
...
Install
code: (bash)
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
EOF
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
## Install specific version
# sudo apt-get install -y kubelet=1.23.0-00 kubeadm=1.23.0-00 kubectl=1.23.0-00
sudo apt-mark hold kubelet kubeadm kubectl
Init
code: (bash)
kubeadm init --apiserver-advertise-address $(hostname -i) --apiserver-cert-extra-sans $(hostname) --pod-network-cidr 10.244.0.0/16
# 出力
Your Kubernetes control-plane has initialized successfully!
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Alternatively, if you are the root user, you can run:
export KUBECONFIG=/etc/kubernetes/admin.conf
You should now deploy a pod network to the cluster.
Run "kubectl apply -f podnetwork.yaml" with one of the options listed at: Then you can join any number of worker nodes by running the following on each as root:
kubeadm join 192.168.0.23:6443 --token ov68qv.2kgl0pfrvgavg38t \
--discovery-token-ca-cert-hash sha256:ad1e938c774fff6952160da32d09f13041fe55a0e0531ef8f0f7d32e4727ef27
# token 確認
kubeadm token list
Upgrade
control plane
kubeadm
drain
kubelet
data plane