1.16.2
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
---
|
||||
vssueId: 15
|
||||
# layout: StepLayout
|
||||
description: Kubernete安装文档_Kubernetes最新稳定版v1.16.1的快速安装文档_该文档由众多网友验证并在线提出修改意见_持续不断地更新和完善_并且通过QQ群提供免费在线答疑的服务
|
||||
description: Kubernete安装文档_Kubernetes最新稳定版v1.16.2的快速安装文档_该文档由众多网友验证并在线提出修改意见_持续不断地更新和完善_并且通过QQ群提供免费在线答疑的服务
|
||||
meta:
|
||||
- name: keywords
|
||||
content: Kubernetes安装,K8S安装,kubeadm,Kubernetes 安装,K8S 安装
|
||||
# storyBook:
|
||||
# title: '使用 kubeadm 安装 kubernetes v1.16.1(单Master节点)'
|
||||
# title: '使用 kubeadm 安装 kubernetes v1.16.2(单Master节点)'
|
||||
# initial: FullPage
|
||||
# pages:
|
||||
# - name: introduction
|
||||
@@ -27,7 +27,7 @@ meta:
|
||||
# title: 总结
|
||||
---
|
||||
|
||||
# 使用kubeadm安装kubernetes_v1.16.1
|
||||
# 使用kubeadm安装kubernetes_v1.16.2
|
||||
|
||||
<!-- <AdSenseTitle/> -->
|
||||
|
||||
@@ -49,8 +49,8 @@ meta:
|
||||
* 不断有网友对安装文档提出改进意见
|
||||
|
||||
* **持续更新和完善**
|
||||
* 始终有最新的 Kubernetes 稳定版安装文档,当前版本 v1.16.1
|
||||
* 当前已更新了 <font color="red"> 61 次 </font>, [查看更新历史](https://github.com/eip-work/kuboard-press/commits/master/install/install-k8s.md)
|
||||
* 始终有最新的 Kubernetes 稳定版安装文档,当前版本 v1.16.2
|
||||
* 当前已更新了 <font color="red"> 62 次 </font>, [查看更新历史](https://github.com/eip-work/kuboard-press/commits/master/install/install-k8s.md)
|
||||
|
||||
* **在线答疑**
|
||||
|
||||
@@ -92,12 +92,13 @@ meta:
|
||||
|
||||
**安装后的软件版本为**
|
||||
|
||||
* Kubernetes v1.16.1
|
||||
* Kubernetes v1.16.2
|
||||
* calico 3.9
|
||||
* nginx-ingress 1.5.5
|
||||
* Docker 18.09.7
|
||||
|
||||
> 如果要安装 Kubernetes 历史版本,请参考:
|
||||
> * [安装 Kubernetes v1.16.1 单Master节点](/install/history-k8s/install-k8s-1.16.1.html)
|
||||
> * [安装 Kubernetes v1.16.0 单Master节点](/install/history-k8s/install-k8s-1.16.0.html)
|
||||
> * [安装 Kubernetes v1.15.4 单Master节点](/install/history-k8s/install-k8s-1.15.4.html)
|
||||
> * [安装 Kubernetes v1.15.3 单Master节点](/install/history-k8s/install-k8s-1.15.3.html)
|
||||
@@ -203,7 +204,7 @@ echo "127.0.0.1 $(hostname)" >> /etc/hosts
|
||||
``` sh
|
||||
# 在 master 节点和 worker 节点都要执行
|
||||
|
||||
curl -sSL https://kuboard.cn/install-script/v1.16.1/install_kubelet.sh | sh
|
||||
curl -sSL https://kuboard.cn/install-script/v1.16.2/install_kubelet.sh | sh
|
||||
|
||||
```
|
||||
|
||||
@@ -212,7 +213,7 @@ curl -sSL https://kuboard.cn/install-script/v1.16.1/install_kubelet.sh | sh
|
||||
|
||||
手动执行以下代码,效果与快速安装完全相同。
|
||||
|
||||
<<< @/.vuepress/public/install-script/v1.16.1/install_kubelet.sh
|
||||
<<< @/.vuepress/public/install-script/v1.16.2/install_kubelet.sh
|
||||
|
||||
::: warning
|
||||
如果此时执行 `service status kubelet` 命令,将得到 kubelet 启动失败的错误提示,请忽略此错误,因为必须完成后续步骤中 kubeadm init 的操作,kubelet 才能正常启动
|
||||
@@ -252,7 +253,7 @@ export APISERVER_NAME=apiserver.demo
|
||||
# Kubernetes 容器组所在的网段,该网段安装完成后,由 kubernetes 创建,事先并不存在于您的物理网络中
|
||||
export POD_SUBNET=10.100.0.1/16
|
||||
echo "${MASTER_IP} ${APISERVER_NAME}" >> /etc/hosts
|
||||
curl -sSL https://kuboard.cn/install-script/v1.16.1/init_master.sh | sh
|
||||
curl -sSL https://kuboard.cn/install-script/v1.16.2/init_master.sh | sh
|
||||
```
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="手工初始化">
|
||||
@@ -269,7 +270,7 @@ export POD_SUBNET=10.100.0.1/16
|
||||
echo "${MASTER_IP} ${APISERVER_NAME}" >> /etc/hosts
|
||||
```
|
||||
|
||||
<<< @/.vuepress/public/install-script/v1.16.1/init_master.sh
|
||||
<<< @/.vuepress/public/install-script/v1.16.2/init_master.sh
|
||||
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
@@ -337,9 +338,9 @@ kubectl get nodes -o wide
|
||||
```sh
|
||||
[root@demo-master-a-1 ~]# kubectl get nodes
|
||||
NAME STATUS ROLES AGE VERSION
|
||||
demo-master-a-1 Ready master 5m3s v1.16.1
|
||||
demo-worker-a-1 Ready <none> 2m26s v1.16.1
|
||||
demo-worker-a-2 Ready <none> 3m56s v1.16.1
|
||||
demo-master-a-1 Ready master 5m3s v1.16.2
|
||||
demo-worker-a-1 Ready <none> 2m26s v1.16.2
|
||||
demo-worker-a-2 Ready <none> 3m56s v1.16.2
|
||||
```
|
||||
|
||||
|
||||
@@ -383,7 +384,7 @@ kubectl delete node demo-worker-x-x
|
||||
|
||||
``` sh
|
||||
# 只在 master 节点执行
|
||||
kubectl apply -f https://kuboard.cn/install-script/v1.16.1/nginx-ingress.yaml
|
||||
kubectl apply -f https://kuboard.cn/install-script/v1.16.2/nginx-ingress.yaml
|
||||
```
|
||||
|
||||
</el-tab-pane>
|
||||
@@ -395,13 +396,13 @@ kubectl apply -f https://kuboard.cn/install-script/v1.16.1/nginx-ingress.yaml
|
||||
|
||||
``` sh
|
||||
# 只在 master 节点执行
|
||||
kubectl delete -f https://kuboard.cn/install-script/v1.16.1/nginx-ingress.yaml
|
||||
kubectl delete -f https://kuboard.cn/install-script/v1.16.2/nginx-ingress.yaml
|
||||
```
|
||||
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="YAML文件">
|
||||
|
||||
<<< @/.vuepress/public/install-script/v1.16.1/nginx-ingress.yaml
|
||||
<<< @/.vuepress/public/install-script/v1.16.2/nginx-ingress.yaml
|
||||
|
||||
|
||||
</el-tab-pane>
|
||||
@@ -441,16 +442,13 @@ kubectl delete -f https://kuboard.cn/install-script/v1.16.1/nginx-ingress.yaml
|
||||
|
||||
您已经完成了 Kubernetes 集群的安装,下一步请:
|
||||
|
||||
[点击此处,给个 GitHub Star](https://github.com/eip-work/kuboard-press)
|
||||
<span v-on:click="$sendGaEvent('安装后求GitHub Star','安装后求GitHub Star','安装后求GitHub Star')"><a href="https://github.com/eip-work/kuboard-press" target="_blank">点击此处,给个GitHub Star</a></span>
|
||||
支持一下吧,<StarCount></StarCount>这么多人都 star 了呢,怎么能少得了您呢?
|
||||
|
||||
[安装 Kuboard - 微服务管理界面](/install/install-dashboard.html)
|
||||
|
||||
安装 Kuboard 之前先
|
||||
<a target="_blank" :href="`http://demo.kuboard.cn/#/dashboard?k8sToken=${$site.themeConfig.kuboardToken}`">
|
||||
在线体验 Kuboard
|
||||
</a>
|
||||
|
||||
::: tip
|
||||
* Kubernetes 初学者,[点击这里获取 Kubernetes 学习路径](/learning/)
|
||||
:::
|
||||
[获取 Kubernetes 免费教程](/learning/)
|
||||
|
||||
|
||||
<!-- </div>
|
||||
|
||||
Reference in New Issue
Block a user