Questions tagged [kind]

kind is a tool for running local Kubernetes clusters using Docker container “nodes”.

kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.

164 questions
28
votes
7 answers

How to use NodePort with kind?

I'm trying to use NodePort with kind but somehow it doesn't want to work. I've successfully deployed the following cluster: apiVersion: kind.x-k8s.io/v1alpha4 kind: Cluster nodes: - role: control-plane extraPortMappings: - containerPort: 80 …
Patryk
  • 22,602
  • 44
  • 128
  • 244
16
votes
1 answer

Unable to install CRDs in kubernetes kind

I am setting up a kind cluster Creating cluster "kind" ... ✓ Ensuring node image (kindest/node:v1.22.1) ✓ Preparing nodes ✓ Writing configuration ✓ Starting control-plane ️ ✓ Installing CNI ✓ Installing StorageClass ✓ Joining…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
13
votes
4 answers

How to reference a local volume in Kind (kubernetes in docker)

I'd like to set a Persistent Volume (pv and pvc), shared by pods in Kind cluster. But I need to keep the data persisted in my laptop (host server) as well, so the volume's path should be something in my laptop, which I can directly access it. If I…
Bill
  • 2,494
  • 5
  • 26
  • 61
8
votes
3 answers

Kubernetes worker node is NotReady due to CNI plugin not initialized

I'm using kind to run a test kubernetes cluster on my local Macbook. I found one of the nodes with status NotReady: $ kind get clusters …
jersey bean
  • 3,321
  • 4
  • 28
  • 43
4
votes
2 answers

accessing host machine from a pod running on a kind cluster

I'm running a kind cluster and from one of the pods I need to access the host machine. I know in minikube you can access it using 10.0.0.2 is there some way I can access it, the same way I could use host.docker.internal on Docker Desktop?
tmp dev
  • 8,043
  • 16
  • 53
  • 108
4
votes
2 answers

How to access an internal service on a loadbalancer

I am deploying a k8s cluster locally using Kind. The image gets deployed ok and when I view the list of services I see the following the service I'm trying to access is chatt-service and if you notice the EXTERNAL-IP is pending. I know minikube…
tmp dev
  • 8,043
  • 16
  • 53
  • 108
4
votes
2 answers

Kubernetes local using kind, can't reach service

I am following a very simple tutorial where it spawns a simple pod with an http endpoint and a service to expose that app using kubernetes. The setup is very simple: app-pod.yml apiVersion: v1 kind: Pod metadata: name: hello-pod labels: app:…
groo
  • 4,213
  • 6
  • 45
  • 69
4
votes
0 answers

using kind to pull images from a local registry

I'm using Kind to deploy a docker image from a local repository. I followed the article on https://medium.com/swlh/how-to-run-locally-built-docker-images-in-kubernetes-b28fbc32cc1d and setup the local repository. Once I try to deploy the k8s…
tmp dev
  • 8,043
  • 16
  • 53
  • 108
4
votes
2 answers

How to ssh into kind cluster nodes with containerd runtime?

I have created a Kind cluster with containerd runtime. Here is my node: root@dev-001:~# k get nodes -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION …
deepak
  • 1,081
  • 12
  • 18
4
votes
2 answers

Why is this kind configuration file broken and where do I get kind versions

I am trying to follow this tutorial to learn to use kind. The version I just installed using brew install is: kind version 0.11.1 The config file looks like this: kind: Cluster apiVersion: kind.sigs.k8s.io/v1alpha3 nodes: - role: control-plane …
Aaron
  • 3,249
  • 4
  • 35
  • 51
4
votes
2 answers

Creating "Kind" Cluster fails on wiriting nodes

I am trying to set up a kind cluster for my kubernetes cluster. Unfortunately, it fails after preparing the nodes when it is writing the nodes. I will attach you the output and some information. Thank you in advance for any help! Cheers The Error $…
Patrick
  • 101
  • 1
  • 2
  • 6
4
votes
1 answer

Using KinD to create a local cluster and the CPU maintains high usage

I'm using KinD to create a local cluster and noted that the CPU percentage usage stays relatively high, between 40-60 for docker.hyperkit on Mac OS Catalina 10.15.6. Within Docker for mac I limited the resources to CPUs: 4 and Memory:6.00 GB. My…
Wunderbread
  • 898
  • 2
  • 14
  • 34
4
votes
1 answer

Whitelisting sysctls for containers in Kubernetes Kind

I'm trying to deploy a container in a Kubernetes Kind cluster. The container I'm trying to deploy needs a couple of sysctls flags to be set. The deployment fails with forbidden sysctl: "kernel.msgmnb" not whitelisted UPDATE I have since added a…
Tudor Vintilescu
  • 1,450
  • 2
  • 16
  • 28
3
votes
0 answers

Go install failing while installing k8s 'Kind'

While trying to install Kind using these instructions, I am getting this error: can't load package: package sigs.k8s.io/kind@v0.20.0: cannot use path@version syntax in GOPATH mode I'm not sure what this means? I have installed go, and $GOPATH seems…
yen
  • 1,769
  • 2
  • 15
  • 43
3
votes
0 answers

Ingress nginx on Kind cluster on Windows 10 throws Unknown desc = failed to pull and unpack image

I run Kind on my windows machine and use the following configuration for my local nodes kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane kubeadmConfigPatches: - | kind: InitConfiguration …
Alexey Auslender
  • 402
  • 5
  • 18
1
2 3
10 11