{"action":"created","issue":{"url":"https://api.github.com/repos/gjmzj/kubeasz/issues/153","repository_url":"https://api.github.com/repos/gjmzj/kubeasz","labels_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/153/comments","events_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/153/events","html_url":"https://github.com/gjmzj/kubeasz/issues/153","id":312403415,"number":153,"title":"flanneld网络无法启动成功","user":{"login":"weilinqwe","id":11835705,"avatar_url":"https://avatars0.githubusercontent.com/u/11835705?v=4","gravatar_id":"","url":"https://api.github.com/users/weilinqwe","html_url":"https://github.com/weilinqwe","followers_url":"https://api.github.com/users/weilinqwe/followers","following_url":"https://api.github.com/users/weilinqwe/following{/other_user}","gists_url":"https://api.github.com/users/weilinqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/weilinqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilinqwe/subscriptions","organizations_url":"https://api.github.com/users/weilinqwe/orgs","repos_url":"https://api.github.com/users/weilinqwe/repos","events_url":"https://api.github.com/users/weilinqwe/events{/privacy}","received_events_url":"https://api.github.com/users/weilinqwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-09T05:58:35Z","updated_at":"2018-04-10T11:52:57Z","closed_at":null,"author_association":"NONE","body":"环境： 6台centOS7.3 虚拟机，双master节点部署，1.9.4版本\r\n[deploy]\r\n192.168.11.91\r\n[etcd]\r\n192.168.11.91 NODE_NAME=etcd1 NODE_IP=\"192.168.11.91\"\r\n192.168.11.92 NODE_NAME=etcd2 NODE_IP=\"192.168.11.92\"\r\n192.168.11.93 NODE_NAME=etcd3 NODE_IP=\"192.168.11.93\"\r\n[kube-master]\r\n192.168.11.92 NODE_IP=\"192.168.11.92\"\r\n192.168.11.93 NODE_IP=\"192.168.11.93\"\r\n[lb]\r\n192.168.11.92 LB_IF=\"ens33\" LB_ROLE=backup\r\n192.168.11.93 LB_IF=\"ens33\" LB_ROLE=master\r\n[lb:vars]\r\nmaster1=\"192.168.11.92:6443\"\r\nmaster2=\"192.168.11.93:6443\"\r\nROUTER_ID=57\r\nMASTER_PORT=\"8443\"\r\n[kube-node]\r\n192.168.11.94 NODE_IP=\"192.168.11.94\"\r\n192.168.11.95 NODE_IP=\"192.168.11.95\"\r\n192.168.11.96 NODE_IP=\"192.168.11.96\"\r\n\r\nansible-playbook 06.network.yml后两台master节点启动成功，三台node节点无法启动\r\n[root@cloudhost5 ~]# kubectl get pod --all-namespaces\r\nNAMESPACE     NAME                    READY     STATUS             RESTARTS   AGE\r\nkube-system   kube-flannel-ds-dz6hs   0/1       CrashLoopBackOff   38         3h\r\nkube-system   kube-flannel-ds-gpd2v   1/1       Running            0          3h\r\nkube-system   kube-flannel-ds-kb86v   1/1       Running            3          3h\r\nkube-system   kube-flannel-ds-sdwjg   0/1       CrashLoopBackOff   38         3h\r\nkube-system   kube-flannel-ds-ws9gk   0/1       CrashLoopBackOff   39         3h\r\n\r\n发现一台node节点已启动，还有两台CrashLoopBackOff.\r\n[root@cloudhost5 ~]# kubectl logs kube-flannel-ds-ws9gk -n kube-system\r\nE0409 05:51:09.717479       1 main.go:232] Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-ws9gk': Get https://10.68.0.1:443/api/v1/namespaces/kube-system/pods/kube-flannel-ds-ws9gk: dial tcp 10.68.0.1:443: getsockopt: no route to host\r\n\r\n是能看到这个clusterip的\r\n[root@cloudhost5 ~]# kubectl get svc\r\nNAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE\r\nkubernetes   ClusterIP   10.68.0.1    <none>        443/TCP   5d\r\n\r\n防火墙看起来master节点和node节点也一样"},"comment":{"url":"https://api.github.com/repos/gjmzj/kubeasz/issues/comments/380071608","html_url":"https://github.com/gjmzj/kubeasz/issues/153#issuecomment-380071608","issue_url":"https://api.github.com/repos/gjmzj/kubeasz/issues/153","id":380071608,"user":{"login":"weilinqwe","id":11835705,"avatar_url":"https://avatars0.githubusercontent.com/u/11835705?v=4","gravatar_id":"","url":"https://api.github.com/users/weilinqwe","html_url":"https://github.com/weilinqwe","followers_url":"https://api.github.com/users/weilinqwe/followers","following_url":"https://api.github.com/users/weilinqwe/following{/other_user}","gists_url":"https://api.github.com/users/weilinqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/weilinqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weilinqwe/subscriptions","organizations_url":"https://api.github.com/users/weilinqwe/orgs","repos_url":"https://api.github.com/users/weilinqwe/repos","events_url":"https://api.github.com/users/weilinqwe/events{/privacy}","received_events_url":"https://api.github.com/users/weilinqwe/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T11:52:57Z","updated_at":"2018-04-10T11:52:57Z","author_association":"NONE","body":"这个我没动过\r\n`---\r\nkind: ClusterRole\r\napiVersion: rbac.authorization.k8s.io/v1\r\nmetadata:\r\n  name: flannel\r\nrules:\r\n  - apiGroups:\r\n      - \"\"\r\n    resources:\r\n      - pods\r\n    verbs:\r\n      - get\r\n  - apiGroups:\r\n      - \"\"\r\n    resources:\r\n      - nodes\r\n    verbs:\r\n      - list\r\n      - watch\r\n  - apiGroups:\r\n      - \"\"\r\n    resources:\r\n      - nodes/status\r\n    verbs:\r\n      - patch\r\n---\r\nkind: ClusterRoleBinding\r\napiVersion: rbac.authorization.k8s.io/v1\r\nmetadata:\r\n  name: flannel\r\nroleRef:\r\n  apiGroup: rbac.authorization.k8s.io\r\n  kind: ClusterRole\r\n  name: flannel\r\nsubjects:\r\n- kind: ServiceAccount\r\n  name: flannel\r\n  namespace: kube-system\r\n---\r\napiVersion: v1\r\nkind: ServiceAccount\r\nmetadata:\r\n  name: flannel\r\n  namespace: kube-system`"}}
{"actor":{"display_login":"weilinqwe"}}