install(ubuntu 20) install command # 查看cpu是否支持虚拟化,大于0即为支持 grep -Eoc '(vmx|svm)' /proc/cpuinfo sudo apt update && sudo apt install cpu-checker -y kvm-ok sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager sudo systemctl is-active libvirtd # 按需调整addresses,nam
vim /etc/netplan/00-installer-config.yaml network: renderer: NetworkManager wifis: wlp2s0: dhcp4: no dhcp6: no addresses: - 192.168.1.60/24 gateway4: 192.168.1.1 nameservers: addresses: - 223.5.5.5 - 223.6.6.6 access-points: "yoogo5g": password: "123" 安装插件 sudo apt-get install wpasupplicant network-manager 应用 netplan generate netplan apply
helm 本身 install # 不推荐,慢如蜗牛 curl https://helm.baltorepo.com/organization/signing.asc | sudo apt-key add - sudo apt-get install apt-transport-https --yes echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list sudo apt-get update sudo apt-get install helm # 快如闪电 sudo snap install helm --classic helm repo add apphub https://apphub.aliyuncs.com 获取charts渲染后的ym
requirment k8s dns组件 helm 持久化存储 Ingress Controller(nginx-ingress/traefik) Gitlab 代码管理仓库
删除节点 # 主机执行 kubectl delete node k8s-worker-x # node机执行 sudo kubeadm reset 常用查看命令 kubectl get nodes kubectl describe node xxx 好用的配置 # 永久保存该上下文中所有后续 kubectl 命令使用的命名空间 kubectl config set-context --current
base: 在主机、和节点需要执行(保证虚拟机/物理机内网地址稳定) sudo vim /etc/hostname # k8s-xx,目的:看起来好看 sudo vim /etc/hosts # x.x.x.x k8s-xx,目的:爽 sudo vim /etc/fstab # 将s
StopWatch 计时器