186 questions
0
votes
1
answer
1k
views
What does - |- mean in yaml patch file
In this example (link), it creates kind cluster with config file, which patch containerd. What does the - |- under the line of containerdConfigPatches mean?
I found - | in yaml indicates this is a ...
0
votes
1
answer
1k
views
How can I find out which Ray version is installed on kuberay?
Running on kind, I've installed kuberay following the docs.
I brought up the dashboard:
k port-forward svc/raycluster-heterogeneous-head-svc 8265
But this doesn't show any version information
0
votes
1
answer
306
views
Create a cluster that uses Pod Security Admission
I try to configure the API server to consume this file during cluster creation.
My system is Ubuntu 22.04.2 LTS x86_64
kind version is v0.17.0 go1.19.2 linux/amd64
minikube version: v1.29.0
The config ...
0
votes
1
answer
602
views
kubernete cluster running on kind , setting up prometheus and grafana for monitoring
I have installed prometheus in namespace monitoring and grafana in default namespace.
can i copy or move any of this in either default namespace or monitoring namespace.
What can be the possible ...
1
vote
0
answers
1k
views
How to get container ID from within the container with cgroup v2 and containerd runtime?
I am struggling to derive container ID from within the container with cgroup v2 and containerd runtime on k8s. It looks it's not in "/sys/fs/cgroup/devices" "/proc/self/mountinfo" ...
0
votes
2
answers
2k
views
Cannot access load balancer external ip address assigned by metallb installed on kind cluster using docker desktop on mac m1 from browser
I have MAC M1 running Docker Desktop (v20.10.17). Kubernetes is NOT enabled, just the docker engine is running.
I installed Kind Cluster:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
# Can ...
3
votes
1
answer
2k
views
Are Gateway API CRDs supported in Minikube and Kind?
I'm trying to install Gateway into my Kind cluster using Gateway API CRD by following a tutorial from https://istio.io/latest/docs/examples/bookinfo/
I had no problem with this command curl https://...
0
votes
1
answer
826
views
How to use a secure docker registry within a kind kubernetes cluster
I am trying to create a secure docker registry to be used inside a development kind cluster. I am going to use a container for the registry and 3 other containers for kind workers. In order to be ...
1
vote
1
answer
1k
views
Volume Mount in SparkApplication resource not working
I am toying with the spark operator in kubernetes, and I am trying to create a Spark Application resource with the following manifest.
apiVersion: "sparkoperator.k8s.io/v1beta2"
kind: ...
0
votes
0
answers
407
views
During creating new app in ArgoCD, ArgoCD can't detect private git repository path
During creating new app in ArgoCD, ArgoCD can't detect in private git repository path( but can connect and show all branches )
Repository connection status is successfully connected.
Provided all ...
1
vote
1
answer
308
views
kubectl port-forward forwards to incorrect port (hashcorp/consul)
Following Hashicorp's Deploy Consul on Kubernetes on Ubuntu 22.04 Server/amd64.
Cloned the repo. Done.
Created the Kubernetes cluster using Kind. Done.
Deployed the datacenter using consul-k8s. Done.
...
2
votes
0
answers
4k
views
Cannot create redo log files because data files are corrupt or the database was not shut down cleanly after creating the data files
I am trying to deploy mysql on a multi-node cluster created by Kind on Ubuntu 22.04 machine.
This is my configmap.yaml file:
apiVersion: v1
kind: ConfigMap
metadata:
name: mysql
labels:
app: ...
0
votes
0
answers
616
views
line 6: field constraints not found in type v1alpha4.Node
I am trying kind create cluster --config kind-config.yaml to create a kind cluster using the following kind-config.yaml file:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-...
0
votes
1
answer
1k
views
What is the equivalent command of "minikube start --memory 5120 --cpus=4" for "Kind"?
Here in Cassandra deployment instruction, it says:
Caution:
Minikube defaults to 2048MB of memory and 2 CPU. Running Minikube with
the default resource configuration results in insufficient resource
...
0
votes
1
answer
821
views
Kubernetes in Docker KinD - Node notready
I'm following this article https://kubernetes.io/blog/2020/05/21/wsl-docker-kubernetes-on-the-windows-desktop/ but I'm facing and issue.
So Windows 10, WSL2 enabled with Ubuntu 22.04 and Docker ...
4
votes
0
answers
374
views
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:
-...
1
vote
2
answers
11k
views
How to evict pods in kubernetes?
I'm testing a trigger i set on my k8s cluster. What it does it that detects if a pod is evicted. So to test I ran
kubectl drain <NODENAME> --ignore-daemonsets --force
but the evicted pods are ...
0
votes
1
answer
1k
views
Running apt-get update in a ubuntu pod in kind kubernetes cluster gives Clearsigned file isn't valid, got 'NOSPLIT' error
I am running a kind cluster and deployed a ubuntu pod
kubectl run ubunt-test --rm -i --tty --image ubuntu -- bash
Then I tried to run apt-get update on the shell. The output is
Get:1 http://...
0
votes
1
answer
1k
views
Pass environment variable from makefile to YAML file
I am setting an environment variable inside a makefile.
makeflie:
...
export KINDPORT=30000
...
I want to pass it to the YAML file that I am using (for kind cluster configuration file):
...
...
1
vote
2
answers
796
views
Why is my service always routing to the same pod?
I have a simple Webserver that exposes the pod name on which it is located by using the OUT env var.
Deployment and service look like this:
apiVersion: v1
kind: Service
metadata:
name: simpleweb-...
0
votes
2
answers
777
views
How to deploy two ingress-nginx controllers on one kind kubernetes cluster
For testing purposes, I deploy two versions of my application on the same machine. On production, only one application instance runs in one cloud Kubernetes cluster and uses the ingress-nginx ...
2
votes
2
answers
3k
views
Unable to add Additional kind clusters in Argo CD
I am having two kind clusters in my local machine . One is named as dev-cluster and another one as kind.The Argo CD is deployed and running on dev-cluster.When i try to Add the second cluster to Argo ...
0
votes
1
answer
292
views
How to simulate k8s node notready
I have a project where I need to handle when a node becomes notready and when it becomes ready, but I only have one server and I know I can use the Kind to create a multi-node cluster, but I don't ...
0
votes
1
answer
16k
views
preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling
On Mac with kind, I created a single node cluster, and then try to install nginx ingress as instructed in https://kind.sigs.k8s.io/docs/user/ingress/
kind create cluster --name devops
kubectl apply --...
0
votes
0
answers
2k
views
Permission denied when accessing persistent volume
I have a kube cluster running using kind. Kind runs in a docker container. It has access to a volume by way of the following:
extraMounts:
- hostPath: /mnt/disk-1/shared
containerPath: /...
2
votes
1
answer
2k
views
Kubernetes networkpolicy applied is not taking effect
I was testing the Kubernetes network policy first before trying in a production requirement but unfortunately, I could not make it work yet and looking for a solution.
My test environment is a Kind k8 ...
5
votes
2
answers
15k
views
Unable to load local docker image in kind kubernetes cluster
I have an Apple Macbook Pro with an M1 chip, where I have a local kubernetes cluster running through Kind. The thing is I don't understand how Kind deals with docker images from different platforms/...
0
votes
1
answer
389
views
Resolve domain inside a pod using the host machine
We've got a dev environment setup in which a part of our services are inside Kubernetes (using kind) and a part of it is not. Inside the Kubernetes pod, a request is made to a certain host (localdev....
0
votes
0
answers
128
views
Docker desktop k8s config file similar to Kind conf
I am using kind kubernetes cluster on my Mac and I created it using a config file with mounts as shown here
The pain here is I have to load all images already on my machine pulled using docker pull ...
1
vote
0
answers
130
views
How to connect local kubernetes with local jenkins
My kubernetes environment is running on kind while my jenkins environment is running as a docker instance. I tried watching all of the youtube tutorial regarding this and have followed all of the ...
1
vote
0
answers
1k
views
Kubernetes Go client library make it ignore SSL issues
I am using Kind with docker-compose.
In my docker-compose file, I have the following line
extra_hosts:
- "host.docker.internal:host-gateway"
This allows me to connect to Kind, which is ...
0
votes
1
answer
455
views
CRDs of GKE for local development with minikube
I'm trying to running my project (that supposed to) deploy on GKE in my local environment with minikube (Docker-Engine) for sake of development and testing, however when I type helm install it tells ...
4
votes
0
answers
6k
views
failed to create cluster: failed to init node with kubeadm
I am fairly new to Kubernetes and I am trying to create a Kubernetes cluster on ec2 Ubuntu machine using kind but it gives me a docker error
0
votes
1
answer
954
views
Where can I find GKE CRDs?
Trying to run helm/chart-testing-action in a GitHub workflow using kind. For the charts I require some GKE CRDs though. Any place I can find them?
3
votes
1
answer
579
views
Exposing kubernetes ingress to host machine running KinD on Windows and WSL2
I'm using KinD on Windows via Docker Destop running on WSL2 and trying to set up the ingress to expose port on my host machine.
I followed the guide and installed the cluster with the config as shown ...
1
vote
2
answers
2k
views
Deploy Mongodb on kubernetes in replicaset Mode
I am trying depoly a replicaset of mongodb in my kind kubernetes.
Well, my first step is run thsi command:
helm upgrade --install mongodb bitnami/mongodb
--set mongodb.global.storageClass=standard
--...
0
votes
1
answer
198
views
Installing knative on existing kind cluster
I have an existing kind k8s cluster with a bunch of running services and nginx-ingress setup and I would like to add knative to it.
Is there a way of doing this with nginx-ingress, seems like ...
1
vote
1
answer
4k
views
Kind (Kubernetes) cluster throwing ImagePullBackOff error
I need to pull the image from public docker repository i.e hello-world:latest and run that image on kubernetes. I created cluster using Kind . I ran that image using the below command
kubectl run test-...
0
votes
1
answer
1k
views
crictl images --digest does not display digests in the Kind node
I upload the docker image using:
kind load docker-image k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.0
After that, I go to the Kind node:
docker exec -it kind-control-plane bash
And I execute:
...
1
vote
3
answers
4k
views
How to access kind control plane port from another docker container?
I'm creating a kind cluster with kind create cluster --name kind and I want to access it from another docker container but when I try to apply a Kubernetes file from a container (kubectl apply -f ...
1
vote
0
answers
382
views
How to deploy a KinD cluster in a docker swarm
I have deployed a docker swarm to Azure following the instructions in the quickstart guide. I also set up an ssh tunnel using the command from the quickstart:
ssh -L 2375:swarm-master-0:2375 -N ...
2
votes
1
answer
1k
views
Fail to run a .NET app in Kubernetes in Kind
I'm trying to deploy a simple .NET App in local kubernetes cluster (Kind) for testing purposes. When a deployment is applied, a pod doesn't start with an error. But the image is built well as a ...
1
vote
1
answer
906
views
Setting domain name for ingress in Kind cluster
I want to create a domain name for my ingress which is accessible from external application. I am trying Contour ingress following https://kind.sigs.k8s.io/docs/user/ingress/#using-ingress on my Kind ...
0
votes
1
answer
264
views
How to adjust the IP network segment of the k8s cluster deployed by kind
Deploy kubevela using the kind cluster, but the deployed pod network segments all start with 10.24. I want to switch to 172.16. How should I configure it, my friends?
my pods ip
1
vote
1
answer
734
views
How do I login to ArgoCD running on KIND?
The docs show argocd login <ARGOCD_SERVER> but they never say what ARGOCD_SERVER is. How can we login to ArgoCD on a kind cluster?
0
votes
1
answer
2k
views
Debugging NodeJs app running inside pod on Kind (Kubernetes in docker) cluster
I am running a kubernetes cluster with Kind configured as shown bellow:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind:...
0
votes
1
answer
324
views
Firebase Emulator Auth on Kubernetes pod not receiving request
I've deployed locally a k8s cluster with kind. The firebase emulator runs on a pod inside the cluster and has a ClusterIp Service assigned. When I'm sending a request to kind-firebase.yaml pod from ...
1
vote
0
answers
269
views
Accessing elastic search running on the host machine from a kind pod
I have elasticsearch running on my host machine on port 9200. Now I'm trying to access this from a pod running on a kind cluster. This is how I have defined my external elasticsearch service.
...
1
vote
2
answers
2k
views
Unable to reach registry-1.docker.io from Kind cluster node on WSL2
I am setting up and airflow k8s cluster using kind deployment on a WSL2 setup. When I execute standard helm install $RELEASE_NAME apache-airflow/airflow --namespace $NS it fails. Further investigation ...
0
votes
0
answers
1k
views
Accessing an external service from a pod
Does a pod need special permission to access an external service. I have an external service defined, and when I ssh into the pod and do a simple curl against the external service I get an error ...