Questions tagged [kubeadm]

117 questions
1
vote
1 answer

HA kubernetes cluster: Accidental kubeadm reset on 1 master node, connection refused when rejoining the cluster

I have setup a kubernetes cluster with 2 master nodes (cp01 192.168.1.42, cp02 192.168.1.46) and 4 worker nodes, implemented with haproxy and keepalived running as static pods in the cluster, internal etcd cluster. For some silly reasons, I…
Cecil
  • 11
  • 2
1
vote
1 answer

KubeADM cluster: how to configure DNS properly

I have the following project that I use to create my own Kubernetes cluster on the local machine (macOS) via KubeAdm: https://github.com/sasadangelo/k8s-cluster Basically, I started from this project and did the following update: Configure the…
1
vote
1 answer

How to check if a node in k8s cluster got rebooted

k8s master checks for kubelet status at frequent intervals. Maybe we can change that time and that makes the node not-ready. But that doesn't always mean that the node got rebooted. How to change kubelet status check frequency? If I don't want to…
user762025
  • 11
  • 2
1
vote
0 answers

Kubernetes in RasPi 4B does not detect RAM

I'm trying to set up a Kubernetes cluster on a bunch of Raspberry Pi 4B nodes. I adopted the setup I use for my v-kube-cluster (Kubernetes in virtual boxed using vagrant). See https://github.com/sebastian9486/v-kube-cluster (but not essential to my…
1
vote
1 answer

Kubernetes : kube-dns service not accessible via ClusterIP

Following an upgrade to v1.19.7 with kubeadm, my pods are unable to request the kube-dns service via the service's ClusterIP. When using the kube-dns pod IP address instead, DNS resolution works. kube-dns pods are up and running: $ kubectl get pods…
sqw
  • 11
  • 1
  • 3
1
vote
1 answer

How to disable kubectl insecure approval towards the kube apiserver

I am trying to make my Master Server-API more secure in order to avoid allowing non https requests to go through. Sample of config: $ kubectl config view apiVersion: v1 clusters: - cluster: server: https://ip:6443 name: kubernetes contexts: -…
Thanos
  • 523
  • 1
  • 7
  • 12
1
vote
1 answer

docker won't run k8s containers (including control plane): "unable to find user 0: invalid argument"

I have had a k8s cluster running for a while without issues. A few days ago, it wouldn't start and when the kubelet starts it creates a number of control-plane containers (in an apparent infinite loop) all marked as Created with the following error…
1
vote
2 answers

Kubernetes services timing out on accessing pods on different workers

I'm trying to stand up a pair of kubernetes workers on EC2 instances, and running into a problem where the service does not appear to "see" all of the pods that it should be able to see. My exact environment is a pair of AWS Snowballs, Red and Blue,…
1
vote
1 answer

kubeadm init fails when I use --apiserver-advertise-address

I am Installing a standalone Kubernetes cluster (kubeadm version is 1.14) on RHEL 7.7 Operating System. I have a Load Balancer (Private LB with a private IP address) configured for my Kubernetes master node. When I issued the command kubeadm init…
ILearn
  • 11
  • 1
  • 3
1
vote
1 answer

Online Kubernetes (kubeadm) control plane certificate renewal

kubeadm creates certificates for the Kubernetes control plane that are valid for one year. They will be renewed on every Kubernetes upgrade. Since it is definitely a good idea to update a Kubernetes cluster at least once per year, this should lead…
Stephan
  • 275
  • 2
  • 7
0
votes
1 answer

kubeapi server as kubernetes pod

My apologies if this is not the correct place to ask this. I'm a bit baffled by the cluster that some kubernetes deployment scripts generate (like kubeadm). It seems that kube-api server itself runs as a pod inside the Kubernetes cluster itself.…
Jeroen Jacobs
  • 1,386
  • 3
  • 16
  • 25
0
votes
0 answers

Unable to Install Kubelet, Kubeadm Because It Requires Later Version of Cri-Tools

-1 I am taking a Coursera class for CKA Prep and as part of that we are provisioning an instance of a node on Amazon EC2, installing the container runtime (which is containerd in this case) and now I am at the step where I need to install kubeadmn…
Rasputin
  • 1
  • 1
0
votes
0 answers

Error retrieving resource lock kube-system/kube-controller-manager: Connection Refused - Kube Controller Manager

LOGS Kube controller Manager Fetching last 1000 lines of logs from kube-controller-manager-raspberrypi pod in kube-system namespace: I0809…
Mohsin A
  • 1
  • 1
0
votes
0 answers

Custer does not start. etcd and kube-apiserver do not start. Kubelet starts

After a blackout, the cluster does not start. 3 workers + 2 Control Planes. Installed with kubeadm. Version 1.27.1 containerd 1.6.22 Ubuntu 22.04.3 LTS It has been running fine for more than one year, and the last kube* upgrade was 2-3 months…
0
votes
0 answers

extraPortMappings for kubeadm

I am be able map my NodePort service to localhost using a configuration file like this: kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane extraPortMappings: - containerPort: 32000 hostPort: 3000 protocol:…
atg
  • 1
  • 2