Kubeadm 安装

Posted 嗡嘛呢巴美吽舍

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kubeadm 安装相关的知识,希望对你有一定的参考价值。

 


已解决:

 

echo "1" > /proc/sys/net/bridge/bridge-nf-call-iptables

 

 

error: failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"

https://github.com/kubernetes/kubernetes/issues/43805

https://github.com/kubernetes/kubernetes/issues/43815

 

 

Kubeadm init —skip-preflight-checks

 

 

The connection to the server localhost:8080 was refused - did you specify the right host or port?

https://github.com/kubernetes/kubernetes/issues/44665

 

 

$ kubectl get pods --all-namespaces

kube-flannel-ds-6sqld             1/2       CrashLoopBackOff

https://github.com/kubernetes/kubernetes/issues/44029

 

 

FailedScheduling No nodes are available that match all of the following predicates:: PodToleratesNodeTaints (1).

https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#limitations

Note that the Sock Shop demo only works on amd64.

 

Dashboard  <h3>Unauthorized</h3>

https://github.com/kubernetes/dashboard/issues/692

kubectl proxy --address=‘0.0.0.0‘ --port=8001 --accept-hosts=‘^*$‘

 

 

Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

https://github.com/kubernetes/kubernetes/issues/48378

 

 

Dns 总是CrashLoopBackOff

http://blog.frognew.com/2017/07/kubeadm-install-kubernetes-1.7.html#2安装kubeadmkubelet

接下来安装flannel network add-on

mkdir -p ~/k8s/

wget https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml

wget https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

kubectl create -f kube-flannel-rbac.yml

kubectl apply -f  kube-flannel.yml

serviceaccount "flannel" created

configmap "kube-flannel-cfg" created

daemonset "kube-flannel-ds" created

 

 

重启host后需要重新init

以上是关于Kubeadm 安装的主要内容,如果未能解决你的问题,请参考以下文章

kubernetes— 记一次用kubeadm搭建kubernetes v1.9.0集群

centos7 kubeadm部署单机k8s

kubeadm 安装指定版本的 k8s 集群

kubeadm1.13安装

如何使用 kubeadm 安装 Kubernetes?

kubeadm