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

kubectl apply -f kube-flannel.yml fails #1031

Open
SyCode7 opened this Issue Aug 23, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@SyCode7

SyCode7 commented Aug 23, 2018

I am installing a single node of kubernetes on Ubuntu 16. I continuously encounter the error : unable to recognize "https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml": yaml: line 10: mapping values are not allowed in this context

whenever I pass the command:

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-legacy.yml

I have tried several online yaml formatting and there seems to be no problem with the yaml file (kube-flannel.yml).

I am not sure how to proceed to configure flannel for the kubernetes networking.

@atooki

This comment has been minimized.

atooki commented Sep 26, 2018

@SyCode7 are you logged in as root or a regular user? You will get that problem if logged in as root. (Well I did anyway)

@tejp1002

This comment has been minimized.

tejp1002 commented Oct 30, 2018

I am trying to set up a single node Kubernetes Cluster from https://ninetaillabs.com/setting-up-a-single-node-kubernetes-cluster/ and getting error dial tcp 127.0.0.1:6443: connect: connection refused
when kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml is executed.
I have tried different yml files
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
but every time it is dial tcp 127.0.0.1:6443: connect: connection refused.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment