kubeadm join 192.168.0.141:6443 --token fttqdm.9ohvqi7suyogle69 --discovery-token-ca-cert-hash e7d19167f02c297ae649ae3fd9e4fe6e8e131efe2c89d5a687bd99ab027d62ff --node-name=slave-1
确保所有机器都安装了
Install Docker Engine on Ubuntu | Docker Docs
docker proxy setting
Configure the daemon with systemd | Docker Docs
Release v1.4.1: Merge pull request #991 from containernetworking/dependabot/docker/do… · containernetworking/plugins · GitHub
sudo tar Cxzvf /opt/cni/bin cni-plugins-linux-amd64-v1.4.1.tgz
Installing kubeadm | Kubernetes
master's ip: 192.168.0.141
error execution phase addon/coredns: unable to create a new DNS service: rpc error: code = Unknown desc = malformed header: missing HTTP content-type · Issue #2792 · kubernetes/kubeadm · GitHub
Installing Kubernetes with the Flannel Network Plugin on CentOS 7 · GitHub
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
...
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
kubectl get pods --all-namespaces
kubectl describe pod coredns-76f75df574-sjb9n -n kube-system
默认初始化时是继承 host 的环境
sudo vim /etc/kubernetes/manifests/kube-apiserver.yaml
确保已经安装 cni
[ERROR CRI]: container runtime is not running: output · Issue #8139 · containerd/containerd · GitHub
sudo rm /etc/containerd/config.toml
systemctl restart containerd
选确认下 k8s 的状态是否都正常
使用 internal_ip:port 访问 http://192.168.0.142:32719/
Helm