虚拟机 Centos7.0 2核 4G
按照官网文档进行的在线安装,版本是KubeKey默认版本。
在这个步骤出现:

日志如下:
TASK [ks-core/prepare : KubeSphere | Getting controls-system file] *************
changed: [localhost] => (item={'name': 'kubesphere-controls-system', 'file': 'kubesphere-controls-system.yaml'})
TASK [ks-core/prepare : KubeSphere | Installing controls-system] ***************
n.k8s.io/v1/clusterrolebindings/system:nginx-ingress-clusterrole-nisa-binding: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"rbac.authorization.k8s.io/v1, Resource=rolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=RoleBinding\"\nName: \"nginx-ingress-role-nisa-binding\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/namespaces/kubesphere-controls-system/rolebindings/nginx-ingress-role-nisa-binding: dial tcp 10.233.0.1:443: i/o timeout\nerror when retrieving current configuration of:\nResource: \"apps/v1, Resource=deployments\", GroupVersionKind: \"apps/v1, Kind=Deployment\"\nName: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/apps/v1/namespaces/kubesphere-controls-system/deployments/default-http-backend: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"/v1, Resource=services\", GroupVersionKind: \"/v1, Kind=Service\"\nName: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/services/default-http-backend: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"/v1, Resource=serviceaccounts\", GroupVersionKind: \"/v1, Kind=ServiceAccount\"\nName: \"kubesphere-cluster-admin\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/serviceaccounts/kubesphere-cluster-admin: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"rbac.authorization.k8s.io/v1, Resource=clusterrolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding\"\nName: \"system:kubesphere-cluster-admin\", Namespace: \"\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/system:kubesphere-cluster-admin: net/http: TLS handshake timeout", "stderr_lines": ["error when creating \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Post https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterroles: http2: client connection lost", "error when retrieving current configuration of:", "Resource: \"rbac.authorization.k8s.io/v1, Resource=roles\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=Role\"", "Name: \"system:kubesphere-router-role\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/namespaces/kubesphere-controls-system/roles/system:kubesphere-router-role: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"/v1, Resource=serviceaccounts\", GroupVersionKind: \"/v1, Kind=ServiceAccount\"", "Name: \"kubesphere-router-serviceaccount\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/serviceaccounts/kubesphere-router-serviceaccount: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"rbac.authorization.k8s.io/v1, Resource=clusterrolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding\"", "Name: \"system:nginx-ingress-clusterrole-nisa-binding\", Namespace: \"\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/system:nginx-ingress-clusterrole-nisa-binding: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"rbac.authorization.k8s.io/v1, Resource=rolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=RoleBinding\"", "Name: \"nginx-ingress-role-nisa-binding\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/namespaces/kubesphere-controls-system/rolebindings/nginx-ingress-role-nisa-binding: dial tcp 10.233.0.1:443: i/o timeout", "error when retrieving current configuration of:", "Resource: \"apps/v1, Resource=deployments\", GroupVersionKind: \"apps/v1, Kind=Deployment\"", "Name: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/apps/v1/namespaces/kubesphere-controls-system/deployments/default-http-backend: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"/v1, Resource=services\", GroupVersionKind: \"/v1, Kind=Service\"", "Name: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/services/default-http-backend: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"/v1, Resource=serviceaccounts\", GroupVersionKind: \"/v1, Kind=ServiceAccount\"", "Name: \"kubesphere-cluster-admin\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/serviceaccounts/kubesphere-cluster-admin: net/http: TLS handshake timeout", "efatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/usr/local/bin/kubectl", "apply", "-f", "/kubesphere/kubesphere/kubesphere-controls-system.yaml", "-n", "kubesphere-controls-system"], "delta": "0:02:28.658195", "end": "2021-07-02 08:02:52.458215", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2021-07-02 08:00:23.800020", "stderr": "error when creating \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Post https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterroles: http2: client connection lost\nerror when retrieving current configuration of:\nResource: \"rbac.authorization.k8s.io/v1, Resource=roles\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=Role\"\nName: \"system:kubesphere-router-role\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/namespaces/kubesphere-controls-system/roles/system:kubesphere-router-role: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"/v1, Resource=serviceaccounts\", GroupVersionKind: \"/v1, Kind=ServiceAccount\"\nName: \"kubesphere-router-serviceaccount\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/serviceaccounts/kubesphere-router-serviceaccount: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"rbac.authorization.k8s.io/v1, Resource=clusterrolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding\"\nName: \"system:nginx-ingress-clusterrole-nisa-binding\", Namespace: \"\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/system:nginx-ingress-clusterrole-nisa-binding: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"rbac.authorization.k8s.io/v1, Resource=rolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=RoleBinding\"\nName: \"nginx-ingress-role-nisa-binding\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/namespaces/kubesphere-controls-system/rolebindings/nginx-ingress-role-nisa-binding: dial tcp 10.233.0.1:443: i/o timeout\nerror when retrieving current configuration of:\nResource: \"apps/v1, Resource=deployments\", GroupVersionKind: \"apps/v1, Kind=Deployment\"\nName: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/apps/v1/namespaces/kubesphere-controls-system/deployments/default-http-backend: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"/v1, Resource=services\", GroupVersionKind: \"/v1, Kind=Service\"\nName: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/services/default-http-backend: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"/v1, Resource=serviceaccounts\", GroupVersionKind: \"/v1, Kind=ServiceAccount\"\nName: \"kubesphere-cluster-admin\", Namespace: \"kubesphere-controls-system\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/serviceaccounts/kubesphere-cluster-admin: net/http: TLS handshake timeout\nerror when retrieving current configuration of:\nResource: \"rbac.authorization.k8s.io/v1, Resource=clusterrolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding\"\nName: \"system:kubesphere-cluster-admin\", Namespace: \"\"\nfrom server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/system:kubesphere-cluster-admin: net/http: TLS handshake timeout", "stderr_lines": ["error when creating \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Post https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterroles: http2: client connection lost", "error when retrieving current configuration of:", "Resource: \"rbac.authorization.k8s.io/v1, Resource=roles\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=Role\"", "Name: \"system:kubesphere-router-role\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/namespaces/kubesphere-controls-system/roles/system:kubesphere-router-role: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"/v1, Resource=serviceaccounts\", GroupVersionKind: \"/v1, Kind=ServiceAccount\"", "Name: \"kubesphere-router-serviceaccount\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/serviceaccounts/kubesphere-router-serviceaccount: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"rbac.authorization.k8s.io/v1, Resource=clusterrolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding\"", "Name: \"system:nginx-ingress-clusterrole-nisa-binding\", Namespace: \"\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/system:nginx-ingress-clusterrole-nisa-binding: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"rbac.authorization.k8s.io/v1, Resource=rolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=RoleBinding\"", "Name: \"nginx-ingress-role-nisa-binding\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/namespaces/kubesphere-controls-system/rolebindings/nginx-ingress-role-nisa-binding: dial tcp 10.233.0.1:443: i/o timeout", "error when retrieving current configuration of:", "Resource: \"apps/v1, Resource=deployments\", GroupVersionKind: \"apps/v1, Kind=Deployment\"", "Name: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/apps/v1/namespaces/kubesphere-controls-system/deployments/default-http-backend: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"/v1, Resource=services\", GroupVersionKind: \"/v1, Kind=Service\"", "Name: \"default-http-backend\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/services/default-http-backend: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"/v1, Resource=serviceaccounts\", GroupVersionKind: \"/v1, Kind=ServiceAccount\"", "Name: \"kubesphere-cluster-admin\", Namespace: \"kubesphere-controls-system\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/api/v1/namespaces/kubesphere-controls-system/serviceaccounts/kubesphere-cluster-admin: net/http: TLS handshake timeout", "error when retrieving current configuration of:", "Resource: \"rbac.authorization.k8s.io/v1, Resource=clusterrolebindings\", GroupVersionKind: \"rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding\"", "Name: \"system:kubesphere-cluster-admin\", Namespace: \"\"", "from server for: \"/kubesphere/kubesphere/kubesphere-controls-system.yaml\": Get https://10.233.0.1:443/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/system:kubesphere-cluster-admin: net/http: TLS handshake timeout"], "stdout": "", "stdout_lines": []}
