Kubernetes cni config uninitializedKubernetes stuck on ContainerCreatingExposing service in KubernetesKubernetes DNS Missing [MissingClusterDNS]kubectl: The connection to the server XXX.XXX.XXXXXX was refusedKubernetes cgroup driver misconfigurationnginx-ingress controller crashes every few daysEncrypted config kubernetes on Google CloudTrigger defined kubernetes jobCan you run a kubernetes cluster inside a kubernetes cluster?Change serviceSubnet in Kubernetes
shebang or not shebang
The unknown and unexplained in science fiction
Picking a theme as a discovery writer
Why did Dr. Strange keep looking into the future after the snap?
Did Ham the Chimp follow commands, or did he just randomly push levers?
Test whether a string is in a list with variable
What is the Ancient One's mistake?
Assuming a normal distribution: what is the sd for a given mean?
How is it believable that Euron could so easily pull off this ambush?
While drilling into kitchen wall, hit a wire - any advice?
Drug Testing and Prescribed Medications
Are modes in jazz primarily a melody thing?
Why doesn't Remus Lupin turn into a werewolf in the scene where Harry looks for Peter Pettigrew on the Marauder's Map?
why it is 2>&1 and not 2>>&1 to append to a log file
Why doesn't a particle exert force on itself?
Concatenate all values of the same XML element using XPath/XQuery
How can I test a shell script in a "safe environment" to avoid harm to my computer?
Why is there a cap on 401k contributions?
What happens when the drag force exceeds the weight of an object falling into earth?
What's weird about Proto-Indo-European Stops?
Employee is self-centered and affects the team negatively
My large rocket is still flipping over
If an attacker targets a creature with the Sanctuary spell cast on them, but fails the Wisdom save, can they choose not to attack anyone else?
Inverse of Element in Field
Kubernetes cni config uninitialized
Kubernetes stuck on ContainerCreatingExposing service in KubernetesKubernetes DNS Missing [MissingClusterDNS]kubectl: The connection to the server XXX.XXX.XXXXXX was refusedKubernetes cgroup driver misconfigurationnginx-ingress controller crashes every few daysEncrypted config kubernetes on Google CloudTrigger defined kubernetes jobCan you run a kubernetes cluster inside a kubernetes cluster?Change serviceSubnet in Kubernetes
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox
, so with yum i installed kubeadm, kubelet
and docker
.
Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32
i run into the following error :
Unable to update cni config: No networks found in /etc/cni/net.d
Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
So i checked, no cni
folder in /etc
even that kubernetes-cni-0.6.0-0.x86_64
is installed. I Tried commenting KUBELET_NETWORK_ARGS
in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
but it didn't work.
PS:
I'm installing behind proxy.
I have multiple network adapters:
NAT : 10.0.2.15/24 for Internet
Host Only : 192.168.56.33/32
And docker interface : 172.17.0.1/16
Docker version: 17.12.1-ce
kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"
Centos 7
kubernetes
add a comment |
I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox
, so with yum i installed kubeadm, kubelet
and docker
.
Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32
i run into the following error :
Unable to update cni config: No networks found in /etc/cni/net.d
Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
So i checked, no cni
folder in /etc
even that kubernetes-cni-0.6.0-0.x86_64
is installed. I Tried commenting KUBELET_NETWORK_ARGS
in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
but it didn't work.
PS:
I'm installing behind proxy.
I have multiple network adapters:
NAT : 10.0.2.15/24 for Internet
Host Only : 192.168.56.33/32
And docker interface : 172.17.0.1/16
Docker version: 17.12.1-ce
kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"
Centos 7
kubernetes
1
sorry, but the pod network is an overlay network and need to be different from your host only network
– c4f4t0r
Mar 6 '18 at 10:36
runingkubeadm init
with no arguments return the same error
– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47
I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon
– c4f4t0r
Mar 7 '18 at 9:20
add a comment |
I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox
, so with yum i installed kubeadm, kubelet
and docker
.
Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32
i run into the following error :
Unable to update cni config: No networks found in /etc/cni/net.d
Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
So i checked, no cni
folder in /etc
even that kubernetes-cni-0.6.0-0.x86_64
is installed. I Tried commenting KUBELET_NETWORK_ARGS
in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
but it didn't work.
PS:
I'm installing behind proxy.
I have multiple network adapters:
NAT : 10.0.2.15/24 for Internet
Host Only : 192.168.56.33/32
And docker interface : 172.17.0.1/16
Docker version: 17.12.1-ce
kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"
Centos 7
kubernetes
I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox
, so with yum i installed kubeadm, kubelet
and docker
.
Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32
i run into the following error :
Unable to update cni config: No networks found in /etc/cni/net.d
Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
So i checked, no cni
folder in /etc
even that kubernetes-cni-0.6.0-0.x86_64
is installed. I Tried commenting KUBELET_NETWORK_ARGS
in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
but it didn't work.
PS:
I'm installing behind proxy.
I have multiple network adapters:
NAT : 10.0.2.15/24 for Internet
Host Only : 192.168.56.33/32
And docker interface : 172.17.0.1/16
Docker version: 17.12.1-ce
kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"
Centos 7
kubernetes
kubernetes
edited Oct 26 '18 at 11:08
bodgit
3,7991025
3,7991025
asked Mar 6 '18 at 10:27
BOUKANDOURA MhamedBOUKANDOURA Mhamed
1613
1613
1
sorry, but the pod network is an overlay network and need to be different from your host only network
– c4f4t0r
Mar 6 '18 at 10:36
runingkubeadm init
with no arguments return the same error
– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47
I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon
– c4f4t0r
Mar 7 '18 at 9:20
add a comment |
1
sorry, but the pod network is an overlay network and need to be different from your host only network
– c4f4t0r
Mar 6 '18 at 10:36
runingkubeadm init
with no arguments return the same error
– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47
I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon
– c4f4t0r
Mar 7 '18 at 9:20
1
1
sorry, but the pod network is an overlay network and need to be different from your host only network
– c4f4t0r
Mar 6 '18 at 10:36
sorry, but the pod network is an overlay network and need to be different from your host only network
– c4f4t0r
Mar 6 '18 at 10:36
runing
kubeadm init
with no arguments return the same error– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47
runing
kubeadm init
with no arguments return the same error– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47
I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon
– c4f4t0r
Mar 7 '18 at 9:20
I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon
– c4f4t0r
Mar 7 '18 at 9:20
add a comment |
3 Answers
3
active
oldest
votes
It was a proxy error as mentionned in Github
https://github.com/kubernetes/kubernetes/issues/34695
They suggested to use kubeadm init --use-kubernetes-version v1.4.1
but i change my network entirely (no proxy) and i manage to setup my cluster.
And as @Radek mentionned before, seting up pod network with kubectl apply -f ....
came after the initialization of cluster.
add a comment |
reason:NetworkPluginNotReady
- you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.
Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes
I'm having this errorThe connection to the server localhost:8080 was refused - did you specify the right host or port?
In every execution ofkubectl
. Trying to install pod network (weave) withkubectl apply -f ...
didn't work.
– BOUKANDOURA Mhamed
Mar 6 '18 at 12:47
the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)
– Radek 'Goblin' Pieczonka
Mar 7 '18 at 8:11
add a comment |
seems a docker image is missing.
check if the images have been downloaded into your machines(VM)
docker image list
or kubeadm config images list
expected image: quay.io/coreos/flannel v0.10.0-amd64
.
pls refer to offical doc for more images required
if the image is missing, pls download it manually.
docker pull quay.io/coreos/flannel:v0.10.0-amd64
for more images: kubeadm config images pull
Then, restart
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f900223%2fkubernetes-cni-config-uninitialized%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
It was a proxy error as mentionned in Github
https://github.com/kubernetes/kubernetes/issues/34695
They suggested to use kubeadm init --use-kubernetes-version v1.4.1
but i change my network entirely (no proxy) and i manage to setup my cluster.
And as @Radek mentionned before, seting up pod network with kubectl apply -f ....
came after the initialization of cluster.
add a comment |
It was a proxy error as mentionned in Github
https://github.com/kubernetes/kubernetes/issues/34695
They suggested to use kubeadm init --use-kubernetes-version v1.4.1
but i change my network entirely (no proxy) and i manage to setup my cluster.
And as @Radek mentionned before, seting up pod network with kubectl apply -f ....
came after the initialization of cluster.
add a comment |
It was a proxy error as mentionned in Github
https://github.com/kubernetes/kubernetes/issues/34695
They suggested to use kubeadm init --use-kubernetes-version v1.4.1
but i change my network entirely (no proxy) and i manage to setup my cluster.
And as @Radek mentionned before, seting up pod network with kubectl apply -f ....
came after the initialization of cluster.
It was a proxy error as mentionned in Github
https://github.com/kubernetes/kubernetes/issues/34695
They suggested to use kubeadm init --use-kubernetes-version v1.4.1
but i change my network entirely (no proxy) and i manage to setup my cluster.
And as @Radek mentionned before, seting up pod network with kubectl apply -f ....
came after the initialization of cluster.
answered Mar 6 '18 at 14:55
BOUKANDOURA MhamedBOUKANDOURA Mhamed
1613
1613
add a comment |
add a comment |
reason:NetworkPluginNotReady
- you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.
Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes
I'm having this errorThe connection to the server localhost:8080 was refused - did you specify the right host or port?
In every execution ofkubectl
. Trying to install pod network (weave) withkubectl apply -f ...
didn't work.
– BOUKANDOURA Mhamed
Mar 6 '18 at 12:47
the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)
– Radek 'Goblin' Pieczonka
Mar 7 '18 at 8:11
add a comment |
reason:NetworkPluginNotReady
- you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.
Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes
I'm having this errorThe connection to the server localhost:8080 was refused - did you specify the right host or port?
In every execution ofkubectl
. Trying to install pod network (weave) withkubectl apply -f ...
didn't work.
– BOUKANDOURA Mhamed
Mar 6 '18 at 12:47
the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)
– Radek 'Goblin' Pieczonka
Mar 7 '18 at 8:11
add a comment |
reason:NetworkPluginNotReady
- you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.
Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes
reason:NetworkPluginNotReady
- you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.
Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes
edited Mar 7 '18 at 10:24
Drakonoved
6031618
6031618
answered Mar 6 '18 at 11:17
Radek 'Goblin' PieczonkaRadek 'Goblin' Pieczonka
30616
30616
I'm having this errorThe connection to the server localhost:8080 was refused - did you specify the right host or port?
In every execution ofkubectl
. Trying to install pod network (weave) withkubectl apply -f ...
didn't work.
– BOUKANDOURA Mhamed
Mar 6 '18 at 12:47
the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)
– Radek 'Goblin' Pieczonka
Mar 7 '18 at 8:11
add a comment |
I'm having this errorThe connection to the server localhost:8080 was refused - did you specify the right host or port?
In every execution ofkubectl
. Trying to install pod network (weave) withkubectl apply -f ...
didn't work.
– BOUKANDOURA Mhamed
Mar 6 '18 at 12:47
the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)
– Radek 'Goblin' Pieczonka
Mar 7 '18 at 8:11
I'm having this error
The connection to the server localhost:8080 was refused - did you specify the right host or port?
In every execution of kubectl
. Trying to install pod network (weave) with kubectl apply -f ...
didn't work.– BOUKANDOURA Mhamed
Mar 6 '18 at 12:47
I'm having this error
The connection to the server localhost:8080 was refused - did you specify the right host or port?
In every execution of kubectl
. Trying to install pod network (weave) with kubectl apply -f ...
didn't work.– BOUKANDOURA Mhamed
Mar 6 '18 at 12:47
the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)
– Radek 'Goblin' Pieczonka
Mar 7 '18 at 8:11
the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)
– Radek 'Goblin' Pieczonka
Mar 7 '18 at 8:11
add a comment |
seems a docker image is missing.
check if the images have been downloaded into your machines(VM)
docker image list
or kubeadm config images list
expected image: quay.io/coreos/flannel v0.10.0-amd64
.
pls refer to offical doc for more images required
if the image is missing, pls download it manually.
docker pull quay.io/coreos/flannel:v0.10.0-amd64
for more images: kubeadm config images pull
Then, restart
add a comment |
seems a docker image is missing.
check if the images have been downloaded into your machines(VM)
docker image list
or kubeadm config images list
expected image: quay.io/coreos/flannel v0.10.0-amd64
.
pls refer to offical doc for more images required
if the image is missing, pls download it manually.
docker pull quay.io/coreos/flannel:v0.10.0-amd64
for more images: kubeadm config images pull
Then, restart
add a comment |
seems a docker image is missing.
check if the images have been downloaded into your machines(VM)
docker image list
or kubeadm config images list
expected image: quay.io/coreos/flannel v0.10.0-amd64
.
pls refer to offical doc for more images required
if the image is missing, pls download it manually.
docker pull quay.io/coreos/flannel:v0.10.0-amd64
for more images: kubeadm config images pull
Then, restart
seems a docker image is missing.
check if the images have been downloaded into your machines(VM)
docker image list
or kubeadm config images list
expected image: quay.io/coreos/flannel v0.10.0-amd64
.
pls refer to offical doc for more images required
if the image is missing, pls download it manually.
docker pull quay.io/coreos/flannel:v0.10.0-amd64
for more images: kubeadm config images pull
Then, restart
edited Jul 24 '18 at 13:32
Thomas Berger
1,5051121
1,5051121
answered Jul 24 '18 at 8:04
Alex WangAlex Wang
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f900223%2fkubernetes-cni-config-uninitialized%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
sorry, but the pod network is an overlay network and need to be different from your host only network
– c4f4t0r
Mar 6 '18 at 10:36
runing
kubeadm init
with no arguments return the same error– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47
I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon
– c4f4t0r
Mar 7 '18 at 9:20