更改网络配置
vi /etc/netplan/00-installer-config.yaml
network:
ethernets:
enp0s3:
dhcp4: true
enp0s8:
dhcp4: no
addresses:
- 192.168.107.128/24
version: 2
netplan apply
Set no password for sudo
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
SSH to your virtual machine. and follow below instructure.
If you are not using Macbook, prepare a Linux OS and follow below instructure.
Install kubernetes by kubeadm
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
Installing runtime
https://docs.docker.com/engine/install/ubuntu/
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
$ sudo apt-get update
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent
该博客详细介绍了如何在Ubuntu 20.04上安装Kubernetes,包括设置sudo无密码、安装Docker、通过kubeadm安装k8s、初始化集群、加入节点、安装cilium和calico CNI插件,以及解决k8s安装过程中遇到的问题,如k8s与containerd的兼容性问题。
最低0.47元/天 解锁文章
547

被折叠的 条评论
为什么被折叠?



