kk 安装的日志在什么地方? 我现在是 all in one
我用 ./kk create cluster –with-kubernetes v1.18.6 –with-kubesphere v3.0.0
到cni 网络 插件 那里 停了, 出错退出了,
1,到哪里去找日志,
2,我可以自己选择网络 插件吗?
我的意思是说 发现
Oct 14 23:16:53 kubesphere kubelet: E1014 23:16:53.449296 7619 kubelet.go:2188] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
Oct 14 23:16:56 kubesphere kubelet: W1014 23:16:56.268561 7619 cni.go:237] Unable to update cni config: no networks found in /etc/cni/net.d
Oct 14 23:16:56 kubesphere kernel: net_ratelimit: 20 callbacks suppressed
Oct 14 23:16:56 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:56 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:57 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:57 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:57 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:57 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:57 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:57 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:58 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:58 kubesphere kernel: IPVS: rr: UDP 10.233.0.3:53 - no destination available
Oct 14 23:16:58 kubesphere kubelet: E1014 23:16:58.462925 7619 kubelet.go:2188] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
Oct 14 23:17:01 kubesphere kubelet: W1014 23:17:01.269061 7619 cni.go:237] Unable to update cni config: no networks found in /etc/cni/net.d

这个 应该 不难,我可以 自己 去 配置一下flannel,但后面 怎么选择继续 安装kubesphere3.0

3,弄完插件后怎么继续装 kubsphere3.0

第一个问题,我安装的时候日志直接打印在stdout,终端上有显示,或者在执行这条命令时加上 –debug,再个你进入到ks-installe这个容器中看看有没有log,第二个问题没有弄过,第三个问题你可以把ks-installer这个容器重启,他会自动重新安装

kk没啥日志,主要还得根据出错阶段 看doker日志,kubelet日志,/var/log/message日志 ,还有已经启动的各种容器pod日志

装完 /var/log/messages 里还有这个warning, 有问题吗

legate":{"isDefaultGateway":true},"name":"cbr0","type":"flannel"}]}: [plugin flannel does not support config version ""]
Oct 15 14:18:07 kubesphere kubelet: W1015 14:18:07.482554    1110 cni.go:202] Error validating CNI config list {"cniVersion":"","name":"cbr0","plugins":[{"delegate":{"isDefaultGateway":true},"name":"cbr0","type":"flannel"}]}: [plugin flannel does not support config version ""]
Oct 15 14:18:08 kubesphere kubelet: E1015 14:18:08.860719    1110 secret.go:195] Couldn't get secret kube-system/flannel-token-clln6: secret "flannel-token-clln6" not found
Oct 15 14:18:08 kubesphere kubelet: E1015 14:18:08.860792    1110 nestedpendingoperations.go:301] Operation for "{volumeName:kubernetes.io/secret/224d6e6a-ce32-4471-87b4-bff2039f2067-flannel-token-clln6 podName:224d6e6a-ce32-4471-87b4-bff2039f2067 nodeName:}" failed. No retries permitted until 2020-10-15 14:20:10.860776234 +0800 CST m=+32235.970714397 (durationBeforeRetry 2m2s). Error: "MountVolume.SetUp failed for volume \"flannel-token-clln6\" (UniqueName: \"kubernetes.io/secret/224d6e6a-ce32-4471-87b4-bff2039f2067-flannel-token-clln6\") pod \"kube-flannel-ds-pzswd\" (UID: \"224d6e6a-ce32-4471-87b4-bff2039f2067\") : secret \"flannel-token-clln6\" not found"
Oct 15 14:18:12 kubesphere kubelet: W1015 14:18:12.493687    1110 cni.go:202] Error validating CNI config list {"cniVersion":"","name":"cbr0","plugins":[{"delegate":{"isDefaultGateway":true},"name":"cbr0","type":"flannel"}]}: [plugin flannel does not support config version ""]
Oct 15 14:18:17 kubesphere kubelet: W1015 14:18:17.500943    1110 cni.go:202] Error validating CNI config list {"cniVersion":"","name":"cbr0","plugins":[{"delegate":{"isDefaultGateway":true},"name":"cbr0","type":"flannel"}]}: [plugin flannel does not support config version ""]
Oct 15 14:18:22 kubesphere kubelet: W1015 14:18:22.509898    1110 cni.go:202] Error validating CNI config list {"cniVersion":"","name":"cbr0","plugins":[{"delegate":{"isDefaultGateway":true},"name":"cbr0","type":"flannel"}]}: [plugin flannel does
not support config version ""]
Oct 15 14:18:27 kubesphere kubelet: W1015 14:18:27.516268    1110 cni.go:202] Error validating CNI config list {"cniVersion":"","name":"cbr0","plugins":[{"delegate":{"isDefaultGateway":true},"name":"cbr0","type":"flannel"}]}: [plugin flannel does not support config version ""]

    tscswcn
    看起来是有问题的 ,集群状态正常不?kubectl get node kubectl get pods -A 看下

    目前还不支持自定义网络插件,可以配置为calico或者flannel。

    好的,我要用 KK 安装,到网络插件那些推出了,怎么能看下问为什么吗,没找到日志在后面地方,没有什么日志吗

      [root@kubesphere ~]# kubectl get node
      NAME STATUS ROLES AGE VERSION
      kubesphere.localdomain Ready master,worker 3d18h v1.18.6
      worker1.localdomain Ready <none> 3d6h v1.18.6
      [root@kubesphere ~]# kubectl get pods -A
      NAMESPACE NAME READY STATUS RESTARTS AGE
      kube-system coredns-6b55b6764d-4dkqz 1/1 Running 0 3d18h
      kube-system coredns-6b55b6764d-hwxj7 1/1 Running 0 3d18h
      kube-system kube-apiserver-kubesphere.localdomain 1/1 Running 0 3d18h
      kube-system kube-controller-manager-kubesphere.localdomain 1/1 Running 3 3d18h
      kube-system kube-flannel-ds-6vsm7 1/1 Running 0 3d6h
      kube-system kube-flannel-ds-pzswd 1/1 Running 0 3d9h
      kube-system kube-proxy-24b5l 1/1 Running 1 3d6h
      kube-system kube-proxy-sgr9t 1/1 Running 0 3d18h
      kube-system kube-scheduler-kubesphere.localdomain 1/1 Running 3 3d18h
      kube-system nodelocaldns-4lzlx 1/1 Running 0 3d6h
      kube-system nodelocaldns-r4dc9 1/1 Running 0 3d18h
      kube-system snapshot-controller-0 1/1 Running 0 3d9h
      kubesphere-controls-system default-http-backend-857d7b6856-t56zr 1/1 Running 0 3d9h
      kubesphere-controls-system kubectl-admin-58f985d8f6-zrq9h 1/1 Running 0 3d9h
      kubesphere-monitoring-system alertmanager-main-0 2/2 Running 0 3d9h
      kubesphere-monitoring-system kube-state-metrics-95c974544-w55zj 3/3 Running 0 3d9h
      kubesphere-monitoring-system node-exporter-bgwgp 2/2 Running 0 3d6h
      kubesphere-monitoring-system node-exporter-gz7j6 2/2 Running 0 3d9h
      kubesphere-monitoring-system notification-manager-deployment-7c8df68d94-97248 1/1 Running 0 3d9h
      kubesphere-monitoring-system notification-manager-operator-6958786cd6-hfxjh 2/2 Running 3 3d9h
      kubesphere-monitoring-system prometheus-k8s-0 3/3 Running 1 3d9h
      kubesphere-monitoring-system prometheus-operator-84d58bf775-gkvjv 2/2 Running 0 3d9h
      kubesphere-system ks-apiserver-6d6dd5b74-84z99 1/1 Running 0 3d9h
      kubesphere-system ks-console-b4df86d6f-7r985 1/1 Running 0 3d9h
      kubesphere-system ks-controller-manager-6fb8d7f56c-9b2hb 1/1 Running 0 3d9h
      kubesphere-system ks-installer-7cb866bd-fxhrz 1/1 Running 0 3d9h
      kubesphere-system openldap-0 1/1 Running 0 3d9h
      kubesphere-system redis-644bc597b9-95qw2 1/1 Running 0 3d9h
      openebs maya-apiserver-697d7997f7-hx7xg 1/1 Running 5 3d9h
      openebs openebs-admission-server-68c6d59d59-5qtc4 1/1 Running 0 3d9h
      openebs openebs-localpv-provisioner-7cc676c8dd-n9kr2 1/1 Running 3 3d9h
      openebs openebs-ndm-bkrdv 1/1 Running 0 3d6h
      openebs openebs-ndm-fgkmm 1/1 Running 0 3d9h
      openebs openebs-ndm-operator-5ccd4fbf77-x89mf 1/1 Running 0 3d9h
      openebs openebs-provisioner-7b88df9585-vj8w7 1/1 Running 4 3d9h
      openebs openebs-snapshot-operator-f96f7486b-x49rv 2/2 Running 2 3d9h
      Oct 18 09:31:13 kubesphere kubelet: E1018 09:31:13.636538 1110 pod_workers.go:191] Error syncing pod 224d6e6a-ce32-4471-87b4-bff2039f2067 (“kube-flannel-ds-pzswd_kube-system(224d6e6a-ce32-4471-87b4-bff2039f2067)”), skipping: unmounted volumes=[flannel-token-clln6], unattached volumes=[run cni flannel-cfg flannel-token-clln6]: timed out waiting for the condition
      Oct 18 09:31:14 kubesphere kubelet: W1018 09:31:14.217588 1110 cni.go:202] Error validating CNI config list {“cniVersion”:"",“name”:“cbr0”,“plugins”:[{“delegate”:{“isDefaultGateway”:true},“name”:“cbr0”,“type”:“flannel”}]}: [plugin flannel does not support config version ""]
      Oct 18 09:31:15 kubesphere kubelet: W1018 09:31:15.601600 1110 volume_linux.go:49] Setting volume ownership for /var/lib/kubelet/pods/9e254d06-01c3-493f-bd84-3afec10b1bcf/volumes/kubernetes.iosecret/tls-assets and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699
      Oct 18 09:31:15 kubesphere kubelet: W1018 09:31:15.601776 1110 volume_linux.go:49] Setting volume ownership for /var/lib/kubelet/pods/9e254d06-01c3-493f-bd84-3afec10b1bcf/volumes/kubernetes.iosecret/config and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699
      Oct 18 09:31:15 kubesphere kubelet: W1018 09:31:15.602043 1110 volume_linux.go:49] Setting volume ownership for /var/lib/kubelet/pods/9e254d06-01c3-493f-bd84-3afec10b1bcf/volumes/kubernetes.iosecret/prometheus-k8s-token-wjzq4 and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699
      Oct 18 09:31:15 kubesphere kubelet: W1018 09:31:15.602588 1110 volume_linux.go:49] Setting volume ownership for /var/lib/kubelet/pods/9e254d06-01c3-493f-bd84-3afec10b1bcf/volumes/kubernetes.ioconfigmap/prometheus-k8s-rulefiles-0 and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699
      Oct 18 09:31:19 kubesphere kubelet: W1018 09:31:19.226261 1110 cni.go:202] Error validating CNI config list {“cniVersion”:"",“name”:“cbr0”,“plugins”:[{“delegate”:{“isDefaultGateway”:true},“name”:“cbr0”,“type”:“flannel”}]}: [plugin flannel does not support config version ""]
      Oct 18 09:31:24 kubesphere kubelet: W1018 09:31:24.234291 1110 cni.go:202] Error validating CNI config list {“cniVersion”:"",“name”:“cbr0”,“plugins”:[{“delegate”:{“isDefaultGateway”:true},“name”:“cbr0”,“type”:“flannel”}]}: [plugin flannel does not support config version ""]
      Oct 18 09:31:29 kubesphere kubelet: W1018 09:31:29.242255 1110 cni.go:202] Error validating CNI config list {“cniVersion”:"",“name”:“cbr0”,“plugins”:[{“delegate”:{“isDefaultGateway”:true},“name”:“cbr0”,“type”:“flannel”}]}: [plugin flannel does not support config version ""]
      Oct 18 09:31:34 kubesphere kubelet: W1018 09:31:34.250068 1110 cni.go:202] Error validating CNI config list {“cniVersion”:"",“name”:“cbr0”,“plugins”:[{“delegate”:{“isDefaultGateway”:true},“name”:“cbr0”,“type”:“flannel”}]}: [plugin flannel does not support config version ""]