Kubeadm 安装

 version 1.7.0


已解决:

 

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

posted @ 2017-07-26 14:01  圆旭  阅读(6719)  评论(0编辑  收藏  举报