k8s-v1.30.3&&rancher-v2.9.1
2024年9月23日,1.30.3与rancher兼容性非常差,暂停使用
rancher-v2.9.1对应的版本是k8s-v1.30.3
# 官网下载
curl -LO "https://dl.k8s.io/release/v1.30.3/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/release/v1.30.3/bin/linux/amd64/kubeadm"
curl -LO "https://dl.k8s.io/release/v1.30.3/bin/linux/amd64/kubelet"
# 镜像加速下载
curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl
curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubeadm
curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubelet
# docker-compose
wget qq829.cn/uploads/software/k8s/docker-compose
# cri运行时
wget qq829.cn/uploads/software/k8s/v1.30.3/cri-dockerd-0.3.4-3.el7.x86_64.rpm
wget qq829.cn/uploads/software/k8s/v1.30.3/crictl-v1.28.0-linux-amd64.tar.gz
# 服务配置文件
wget qq829.cn/uploads/software/k8s/v1.30.3/10-kubeadm.conf
wget qq829.cn/uploads/software/k8s/v1.30.3/kubelet.service
# 网络组件
wget qq829.cn/uploads/software/k8s/v1.30.3/calico.yaml
# nginx-ingress
wget qq829.cn/uploads/software/k8s/v1.30.3/nginx-ingress.yaml
具体安装步骤与k8s-v1.28.0一致:https://qq829.cn/book/books/k8s/page/k8s-v1280
已知问题(不能开低于1024端口),其中nginx-ingress处理方法相同
# coredns提示 listen tcp :53: bind: permission denied
kubectl edit deploy coredns -n kube-system
allowPrivilegeEscalation: true
capabilities:
add:
- NET_BIND_SERVICE
drop:
- ALL
readOnlyRootFilesystem: true
已知问题,让pod在每一台机器执行,而不管节点是否有污点
# 加在与volumes同级
tolerations:
- effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
operator: Exists
culr下载文件技巧
# 手动指定保存的文件名
curl -o kubectl https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl
# 直接使用远程文件的名称来保存文件
curl -O https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl
# 自动重定向
curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl