k8s最新版
作者:互联网
前言
k8s最新版学习环境
提示:长期支持更新,宿主机环境基于VMware® Workstation 16 Pro虚拟机。
注意
宿主机开机后需等待5~10分钟,ns.kube-system.pod.STATUS都是Running才可使用。
k8s-v1.21.2
宿主机ip地址
192.168.163.5 k8s-master01192.168.163.5 k8s-master-lb
192.168.163.6 k8s-node01
192.168.163.7 k8s-node02
集群ip地址规划
宿主机:192.168.163.0/24svc:10.0.0.0/12
pod:172.16.0.0/12
Dashboard登录地址
https://192.168.163.5:30243/#/login
Dashboard登录token获取
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')
集群镜像
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.21.2 registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.21.2 registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.21.2 registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.21.2 registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.4.1 registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.4.13-0 registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:v1.8.0ingress
ingress-nginx-v3.6.0etcd
etcd状态信息查看
k8s-master01上执行
etcdctl --endpoints="192.168.163.5:2379" --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key endpoint status --write-out=table
标签:aliyuncs,最新版,192.168,hangzhou,google,k8s,com 来源: https://blog.csdn.net/wobuaichilajiao/article/details/118247479