Skip to content

amrom66/k8s-install

Repository files navigation

title tags date
k8s一键部署文档
kubernetes
2021-03-07

版本:k8s 1.20.3 组件:kubectl kubeadm kubelet kube-scheduler kube-proxy etcd containerd calico kube-nginx kube-apiserver kube-controllermanager

注意: hostname名称需要规范,不允许出现.,一般设置为小写字母,数字,-

使用手册:

  1. 配置environment.sh
  2. 运行脚本bash k8s-install.sh

部署coredns


source /opt/k8s/bin/environment.sh
./deploy.sh -i ${CLUSTER_DNS_SVC_IP} -d ${CLUSTER_DNS_DOMAIN} | kubectl apply -f -