更新token

This commit is contained in:
huanqing.shao
2019-07-27 07:54:38 +08:00
parent 0a4c80b0aa
commit 4e0a3fccbd
80 changed files with 261 additions and 147 deletions

View File

@ -0,0 +1 @@
# 创建 kube-dns Service

View File

@ -0,0 +1,60 @@
# 安装 Kuboard 失败时如何诊断
少数情况下,您可能会碰到安装 Kuboard 失败的情况,请按照如下步骤进行诊断
## 诊断步骤
**检查 Kuboard 容器组状态**
执行命令
```sh
kubectl get pods -n kube-system
```
输出结果如下所示:
```sh
NAME READY STATUS RESTARTS AGE
calico-kube-controllers-7c4d64d599-67hkh 1/1 Running 0 13h
calico-node-9sf77 1/1 Running 3 8d
calico-node-p8sxb 1/1 Running 2 8d
calico-node-w472g 1/1 Running 3 8d
coredns-5c98db65d4-9hwnj 1/1 Running 3 8d
coredns-5c98db65d4-dr86j 1/1 Running 3 8d
etcd-demo-master-a-1 1/1 Running 3 8d
kube-apiserver-demo-master-a-1 1/1 Running 3 8d
kube-controller-manager-demo-master-a-1 1/1 Running 3 8d
kube-proxy-4tfrx 1/1 Running 2 8d
kube-proxy-ps676 1/1 Running 2 8d
kube-proxy-x8v4p 1/1 Running 3 8d
kube-scheduler-demo-master-a-1 1/1 Running 3 8d
kuboard-7bb8d57995-nkqzw 1/1 Running 0 2d20h
```
::: tip
根据 Kubernetes 安装方式不同、节点数量不同,您得到的输出结果会与样例结果有差异
请对结果做如下检查:
* kuboard-xxxxxxxxxx-xxxxx 的 STATUS 是否为 Runnning
:::
**检查 Kuboard 容器组日志**
执行命令,请使用实际 kuboard 容器组的名称替换命令中的 kuboard-xxxxxxxxxx-xxxxx
```sh
kubectl logs -f kuboard-xxxxxxxxxx-xxxxx -n kube-system
```
如果您得到如下错误信息: host not found in resolver "kube-dns.kube-system.svc.cluster.local"
```
2019/07/26 23:09:33 [emerg] 1#1: host not found in resolver "kube-dns.kube-system.svc.cluster.local" in /etc/nginx/conf.d/nginx.80.conf:36
nginx: [emerg] host not found in resolver "kube-dns.kube-system.svc.cluster.local" in /etc/nginx/conf.d/nginx.80.conf:36
```
请 [创建 kube-dns Service](install-dashboard-diagonize-kube-dns)

View File

@ -9,8 +9,8 @@
如果没有 Kubernetes 集群,可以有如下选项:
* 参考 [安装 Kubernetes 单Master节点](install-k8s)
* 参考 [安装 Kubernetes 高可用](install-kubernetes)
* 初学者, 请参考 [安装 Kubernetes 单Master节点](install-k8s)
* 用于生产,请参考 [安装 Kubernetes 高可用](install-kubernetes)
## 兼容性

View File

@ -292,8 +292,7 @@ cp -i /etc/kubernetes/admin.conf /root/.kube/config
**安装 calico**
```bash
kubectl apply -f \
https://docs.projectcalico.org/v3.6/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.7/calico.yaml
kubectl apply -f https://docs.projectcalico.org/v3.6/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.7/calico.yaml
```
> 安装calico 请参考https://docs.projectcalico.org/v3.6/getting-started/kubernetes/