Questions tagged [flannel]

flannel (originally rudder) is an etcd backed network fabric for containers, an overlay network that gives a subnet to each machine for use with Kubernetes

253 questions
37
votes
5 answers

Kubernetes NodePort Custom Port

Is there way to specify a custom NodePort port in a kubernetes service YAML definition? I need to be able to define the port explicitly in my configuration file.
32
votes
10 answers

Failed create pod sandbox: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod network

Issue Redis POD creation on k8s(v1.10) cluster and POD creation stuck at "ContainerCreating" Type Reason Age From Message ---- ------ ---- ---- …
suboss87
  • 479
  • 2
  • 10
  • 14
15
votes
6 answers

Kube flannel in CrashLoopBackOff status

We just start to create our cluster on kubernetes. Now we try to deploy tiller but we have en error: NetworkPlugin cni failed to set up pod "tiller-deploy-64c9d747bd-br9j7_kube-system" network: open /run/flannel/subnet.env: no such file or…
Alexey Vashchenkov
  • 233
  • 1
  • 4
  • 12
15
votes
3 answers

configuring flannel to use a non default interface in kubernetes

Is there a way to define in which interface Flannel should be listening? According to his documentation adding FLANNEL_OPTIONS="--iface=enp0s8" in /etc/sysconfig/flanneld should work, but it isn't. My master node configuration is running in a…
clvx
  • 318
  • 1
  • 2
  • 8
15
votes
2 answers

Kubernetes cannot cleanup Flannel

First I start Kubernetes using Flannel with 10.244.0.0. Then I reset all and restart with 10.84.0.0. However, the interface flannel.1 still is 10.244.1.0 That's how I clean up: kubeadm reset systemctl stop kubelet systemctl stop docker rm -rf…
xren
  • 1,381
  • 5
  • 14
  • 29
13
votes
1 answer

Is there a way to assign pod-network-cidr in kubeadm after initialization?

I used kubeadm to initialize my K8 master. However, I missed the --pod-network-cidr=10.244.0.0/16 flag to be used with flannel. Is there a way (or a config file) I can modify to reflect this subnet without carrying out the re-init process again?
saruftw
  • 1,104
  • 2
  • 14
  • 37
13
votes
1 answer

Understanding kubeadm init command for flannel

To install kubernetes using flannel, one initially needs to run: kubeadm init --pod-network-cidr 10.244.0.0/16 Questions are: What is the purpose of "pod-network-cidr"? What's the meaning of such IP "10.244.0.0/16"? How flannel uses this…
testTester
  • 2,371
  • 3
  • 18
  • 22
12
votes
1 answer

KubeDNS error, server misbehaving

I have a problem trying exec'ing into a container: kubectl exec -it busybox-68654f944b-hj672 -- nslookup kubernetes Error from server: error dialing backend: dial tcp: lookup worker2 on 127.0.0.53:53: server misbehaving Or getting logs from a…
Richard87
  • 1,592
  • 3
  • 16
  • 29
12
votes
2 answers

kubernetes installation and kube-dns: open /run/flannel/subnet.env: no such file or directory

Overview kube-dns can't start (SetupNetworkError) after kubeadm init and network setup: Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-654381707-w4mpg_kube-system" with SetupNetworkError: "Failed to setup network for pod…
kolisko
  • 1,548
  • 3
  • 17
  • 22
10
votes
2 answers

NetworkPlugin cni failed to set up pod "xxxxx" network: failed to set bridge addr: "cni0" already has an IP address different from10.x.x.x - Error

I get this error after I start the worker node VMs(Kubernetes) from the AWS console. I am using PKS ( Pivotal Container Service) network for pod "xxxxx": NetworkPlugin cni failed to set up pod "xxxxx" network: failed to set bridge addr: "cni0"…
10
votes
3 answers

K8s NodePort service is “unreachable by IP” only on 2/4 slaves in the cluster

I created a K8s cluster of 5 VMs (1 master and 4 slaves running Ubuntu 16.04.3 LTS) using kubeadm. I used flannel to set up networking in the cluster. I was able to successfully deploy an application. I, then, exposed it via NodePort service. From…
Vivek Sethi
  • 894
  • 2
  • 13
  • 20
10
votes
6 answers

Kubernetes failed to setup network for pod after executed kubeadm reset

I initialized Kubernetes with kubeadm init, and after I used kubeadm reset to reset it I found --pod-network-cidr was wrong. After correcting it I tried to use kubeadm to init Kubernetes again like this: kubeadm init --use-kubernetes-version v1.5.1…
Robat.Michael
  • 261
  • 1
  • 2
  • 8
9
votes
1 answer

How to debug kubectl apply for kube-flannel.yml?

I'm trying to create a kubernetes cluster following the document at: https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ First I have installed kubeadm with docker image on Coreos (1520.9.0) inside VirtualBox with Vagrant: docker…
TlmaK0
  • 3,578
  • 2
  • 31
  • 51
8
votes
4 answers

Requests timing out when accesing a Kubernetes clusterIP service

I am looking for help to troubleshoot this basic scenario that isn't working OK: Three nodes installed with kubeadm on VirtualBox VMs running on a MacBook: sudo kubectl get nodes NAME STATUS ROLES AGE …
codependent
  • 23,193
  • 31
  • 166
  • 308
8
votes
1 answer

minikube : not able to connect a locally deployed nginx service

I have installed minikube on my ubuntu 16.04 machine and have started a cluster, with a message "Kubernetes is available at https://192.168.99.100:443" Next, I deployed nginx service with the following command > kubectl.sh run my-nginx…
soupybionics
  • 4,200
  • 6
  • 31
  • 43
1
2 3
16 17