-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-sb3k4': the server does not allow access to the requested resource^C #671
Comments
@hustljl What kubernetes version are you using? What flannel version are you using? Which manifest(s) did you use? Did you try the RBAC one? |
Am having same issue. I am using flannel. My first issue was /run/flannel/subnet.env not found which is reported in other issue. This stopped dns pods from coming up. I manually created one like following from older 1.5 working environment - root@2kub-0:/tmp# kubectl logs kube-flannel-ds-gc73b -c kube-flannel --namespace kube-system --tail=20 |
And yes I did specify necessary inputs on my kubeadm init like this - |
I had the same problem~ Solution: |
please point out the correct namespace |
same issue here. See @igortin 's solution |
Are you using RBAC? If RBAC enabled:
If not exeist 1,2,3 |
@igortin , the link to yml files should change to https://raw.githubusercontent.com/... |
Hi, {"log":"E0822 14:22:39.379922 1 config.go:265] Expected to load root CA config from /var/run/secrets/kubernetes.io/serviceaccount/ca.crt, but got err: open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directory\n","stream":"stderr","time":"2017-08-22T14:22:39.380327935Z"} thanks, |
This link is not available : https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml |
https://github.com/coreos/flannel/blob/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
Отправлено с iPhone
… 27 окт. 2017 г., в 19:08, Sanda ***@***.***> написал(а):
This link is not available : https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I have a similaire problem: get pods --all-namespaces kube-system kube-flannel-ds-bdcxj 0/1 CrashLoopBackOff 6 10m kubectl exec kube-apiserver-master.domain.local -c kube-apiserver -n kube-system ps kubectl get sa flannel -n kube-system when i try : kubectl create -f https://github.com/coreos/flannel/blob/master/Documentation/k8s-manifests/kube-flannel-rbac.yml and my kubectl logs: Error adding network: open /run/flannel/subnet.env: no such file or directory |
@zakiournani please use thr "raw" link instead of github link in kubectl create command |
Solved my issue, it was related to a mistake in interface name when configuring flannel. |
I have encountered this problem at present, the version of kubernetes cluster is unified to v1.19.0 |
I have a similar problema and was solved editing the file kube-flannel.yml and adding the two enviroment variables: like:
|
Worked for me with kube-flannel-ds-windows being in CrashLoopBackOff state with the same error that is in the topic |
Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-sb3k4': the server does not allow access to the requested resource
The text was updated successfully, but these errors were encountered: