Questions tagged [kubeadm]

OFF-TOPIC most likely. Kubeadm is a tool built to provide kubeadm init and kubeadm join as best-practice “fast paths” for creating Kubernetes clusters. Questions about installing or configuring Kubernetes clusters are generally not on-topic for Stack Overflow and should be asked on another site.

kubeadm is a tool to create Kubernetes clusters.

Questions about creating Kubernetes clusters are most likely off-topic for Stack Overflow and should be asked on another site:

If a developer needs to create their own Kubernetes cluster, they will typically use a higher-level tool such as , , or , rather than directly invoking kubeadm.

606 questions
17
votes
3 answers

Unable to bring up kubernetes API server

Actual Issue: Unable to start kubernetes API, due to which, unable to intite kube services like: kubectl version kubect get nodes /home/ubuntu# kubectl version Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0",…
Siva Malla
  • 255
  • 1
  • 2
  • 10
17
votes
7 answers

Coredns in pending state in Kubernetes cluster

I am trying to configure a 2 node Kubernetes cluster. First I am trying to configure the master node of the cluster on a CentOS VM. I have initialized the cluster using 'kubeadm init --apiserver-advertise-address=172.16.100.6…
Aditya Datta
  • 567
  • 2
  • 7
  • 17
16
votes
2 answers

kubectl not able to pull the image from private repository

I am running kubeadm alpha version to set up my kubernates cluster. From kubernates , I am trying to pull docker images which is hosted in nexus repository. When ever I am trying to create a pods , It is giving "ImagePullBackOff" every time. Can…
sitakant
  • 1,766
  • 2
  • 18
  • 38
15
votes
4 answers

kubectl get nodes shows NotReady

I have installed two nodes kubernetes 1.12.1 in cloud VMs, both behind internet proxy. Each VMs have floating IPs associated to connect over SSH, kube-01 is a master and kube-02 is a node. Executed…
Sandeep Nag
  • 167
  • 2
  • 2
  • 11
14
votes
1 answer

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container

We are trying to create POD but the Pod's status struck at ContainerCreating for long time. This is the output we got after running the command: kubectl describe pod Name: demo-6c59fb8f77-9x6sr Namespace: default Priority: …
Giridharan M
  • 139
  • 1
  • 1
  • 4
14
votes
3 answers

kubeadm fails to initialize when kubeadm init is called

I am new to kubernetes and trying to configure kubernetes master node, I have installed kubeadm, kubectl and kubelet following https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ but when I try to start kubeadm by typing kubeadm…
abhishek
  • 163
  • 1
  • 1
  • 7
14
votes
1 answer

kubernetes set service cidr and pod cidr the same

When we use kubeadm to set up a k8s cluster, there are two options to config: --pod-network-cidr --service-cidr (default ‘10.96.0.0/12’) Question is: If I use 10.244.0.0./12 for pod-network-cidr, do I need to save that IP range for Kubernetes? What…
xren
  • 1,381
  • 5
  • 14
  • 29
14
votes
7 answers

How to use kubeadm to create kubernetes cluster?

I init k8s cluster master with kubeadm, but I felt very confused. The version of kubeadm: # ./kubeadm version kubeadm version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.1", GitCommit:"82450d03cb057bab0950214ef122b67c83fb11df",…
sope
  • 1,619
  • 5
  • 19
  • 37
14
votes
2 answers

Restart Kubernetes API server with different options

I'm pretty new to Kubernetes and clusters so this might be very simple. I set up a Kubernetes cluster with 5 nodes using kubeadm following this guide. I got some issues but it all worked in the end. So now I want to install the Web UI (Dashboard).…
Ravenix
  • 1,010
  • 4
  • 15
  • 40
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
6 answers

Joining cluster takes forever

I have set up my master node and I am trying to join a worker node as follows: kubeadm join 192.168.30.1:6443 --token 3czfua.os565d6l3ggpagw7 --discovery-token-ca-cert-hash…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
13
votes
6 answers

How to change the cluster.local default domain on kubernetes 1.9 deployed with kubeadm?

I would like to resolve the kube-dns names from outside of the Kubernetes cluster by adding a stub zone to my DNS servers. This requires changing the cluster.local domain to something that fits into my DNS namespace. The cluster DNS is working fine…
Marcus
  • 159
  • 1
  • 1
  • 7
13
votes
7 answers

Horizontal pod autoscaling not working: `unable to get metrics for resource cpu: no metrics returned from heapster`

I'm trying to create an horizontal pod autoscaling after installing Kubernetes with kubeadm. The main symptom is that kubectl get hpa returns the CPU metric in the column TARGETS as "undefined": $ kubectl get hpa NAME REFERENCE …
Oghma
  • 131
  • 1
  • 1
  • 8
12
votes
3 answers

Worker start to fail CSINodeIfo: error updating CSINode annotation

I created a kubernetes cluster 1 master and 2 worker nodes 2 months ago, today one worker node started to fail and I don't know why. I think nothing unusual happened to my worker. I used flannel and kubeadm to create the cluster and it was working…
Tommy
  • 121
  • 1
  • 1
  • 4
12
votes
20 answers

The connection to the server x.x.x.:6443 was refused - did you specify the right host or port? Kubernetes

I've installed, Docker, Kubectl and kubeAdm. I want to create my device model and device CRDs (I'm following this guide. So, when I run the command : kubectl create -f devices_v1alpha1_devicemodel.yaml as a user I get the following out: The…
Warok
  • 383
  • 1
  • 7
  • 20
1
2
3
40 41