-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ks-account pod in CrashLoopBackOff after fresh install of kubesphere v2.1.1 #1925
Comments
Can you paste yaml of kube-apiserver ? We suspect it's related to root certificate. |
what do you mean by |
no, k8s component
please paste content you got above |
There is no pod with a name like kube-apiserver...
|
Here is the beginning of the logs of the container kube-apiserver on the first master docker logs kube-apiserver |
From master1:
|
KubeSphere uses csr to issue kubeconfig to each user, that needs extra configuration on kube-apiserver, refer to https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/#a-note-to-cluster-administrators. A standard Kubernetes cluster is enabled by default, but didn't see this on a rke cluster per your comment. So you need to add this manually. |
Thanks for the diagnostic. I have found a post on how to activate the CSR signing feature in rke |
@titou10titou10 Good suggestion, it's necessary to mention it for the on-premise Kubernetes like RKE, we will add the CSR signing in prerequisite. Please let us know if you install KubeSphere on RKE successfully. Regards, |
It Works!
As said before, the doc must be updated to include the activation of the CSR feature in kube-apiserver as a prerequisite |
@titou10titou10 Awesome! Welcome to join KubeSphere slack channel for more communication. |
@titou10titou10 BTW, did you use a default minimal installation, or started with a complete setup? |
I started with a minimal installation as stated in the doc, then activated the DevOps and OpenPitrix features by editing the configmap There is one thing that does not seem to work. When I try to use the
UPDATE |
@titou10titou10 @wansir Could you pls help to look at the issue of web kubecl as above? |
it appears websocket proxy is not enabled in your nginx, suggest check proxy settings of your nginx. |
@zryfish you were right, fixing the nginx lb configuration for wss solved the problem |
closing this as the original problem is fixed and opening a new issue for documentation |
hello |
root@node2 ~]# kubectl logs -n kubesphere-system ks-controller-manager-6ccdbbb476-2tl89 I reported an error like this, please help to solve it |
Describe the Bug
I install kubesphere v2.1.1 on a fresh install of rke v1.0.4.
Everything seems OK except the
"ks-account"
pod that is in"CrashLoopBackOff"
mode.The pod fail with
"create client certificate failed: <nil>"
I can display the console login page but can't login, it fails with
"unable to access backend services"
I did the procedure twice after resetting the nodes..and the rke cluster is healthy and fully operational
Versions Used
KubeSphere: 2.1.1
Kubernetes: rancher/rke v1.0.4 fresh install
Environment
3 masters 8G + 3 workers 8G, all with centos 7.7 fully updated, selinux and firewalld disabled
How To Reproduce
Steps to reproduce the behavior:
Expected behavior
all pods in the kubesphere-system up and running, then be able to login to the console
Logs
The text was updated successfully, but these errors were encountered: