k8s(二)—dashboard安装

kubeadm init --image-repository=registry.aliyuncs.com/google_containers --pod-network-cidr=10.244.0.0/16
# 参数说明
# --apiserver-advertise-address=192.168.181.131    这个参数就是master主机的IP地址,例如我的Master主机的IP是:192.168.181.131
# --image-repository=registry.aliyuncs.com/google_containers  这个是镜像地址,由于国外地址无法访问,故使用的阿里云仓库地址:registry.aliyuncs.com/google_containers
# --kubernetes-version=v1.17.4   这个参数是下载的k8s软件版本号
# --service-cidr=10.96.0.0/12       这个参数后的IP地址直接就套用10.96.0.0/12 ,以后安装时也套用即可,不要更改
# --pod-network-cidr=10.244.0.0/16       k8s内部的pod节点之间网络可以使用的IP段,不能和service-cidr写一样,如果不知道怎么配,就先用这个10.244.0.0/16
[root@master ~]# docker ps
rancher/mirrored-flannelcni-flannel                               v0.18.0   744246d629cf   12 days ago    62.3MB
registry.aliyuncs.com/google_containers/kube-apiserver            v1.23.7   03c169f383d9   2 weeks ago    135MB
registry.aliyuncs.com/google_containers/kube-controller-manager   v1.23.7   e34d4a6252ed   2 weeks ago    125MB
registry.aliyuncs.com/google_containers/kube-proxy                v1.23.7   b1aa05aa5100   2 weeks ago    112MB
registry.aliyuncs.com/google_containers/kube-scheduler            v1.23.7   ed0ccfa052ab   2 weeks ago    53.5MB
rancher/mirrored-flannelcni-flannel-cni-plugin                    v1.1.0    fcecffc7ad4a   2 weeks ago    8.09MB
registry.aliyuncs.com/google_containers/etcd                      3.5.1-0   25f8c7f3da61   7 months ago   293MB
registry.aliyuncs.com/google_containers/coredns                   v1.8.6    a4ca41631cc7   8 months ago   46.8MB
registry.aliyuncs.com/google_containers/pause                     3.6       6270bb605e12   9 months ago   683kB

netstat -tanlp|grep 8888

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐