Questions tagged [k3d]

k3d creates containerized k3s clusters. It allows spinning up multi-node clusters on a single machine with docker.

k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s

k3d creates containerized k3s clusters. This means, that you can spin up a multi-node k3s cluster on a single machine using docker.

44 questions
0
votes
1 answer

How do I know which pod a container is running in?

Sorry about a newbie question. I am trying to deploy an image into k3d (a dockerized version of k3s). k3d image import -c my-cluster registry.gitlab.com/aaa/bbb/ccc/hello123 Now I can see the image on a node: kubectl get node my-node -o json | grep…
Irina Rapoport
  • 1,404
  • 1
  • 20
  • 37
0
votes
1 answer

K3D Kubeconfig invalid credentials

My Kube is running since almost 6 month, and yet I get Invalid Credentials response while trying to connect to it. It runs on a K3D instance, has access to the root host, as well the 3 containers, LB, agent, server. How can I get this connection…
Jack
  • 184
  • 1
  • 11
0
votes
1 answer

Kubernetes K3D Ingress always error 404 not found

When doing for e.g. a call to my endpoint curl localhost:8081/ticketapi/ticket/get I'm receiving an error 404. I know that error 404 is that the routing cannot be found. But I've no clue on how can I debug my problem or if there is something off in…
Stan
  • 1
  • 2
0
votes
0 answers

Containerized multi-node Kubernetes Distro

I will be getting VMs at work for installing a Kubernetes cluster. It will be used by the development team; but we need to test the scaling too during development, so single node is not really an option. I won't have rights to create or re-spawn the…
Dojo
  • 5,374
  • 4
  • 49
  • 79
0
votes
1 answer

Kubectl commands only working with minikube

How come that when I use minikube, all my kubectl commands work properly e.g. kubectl get nodes. But the moment I stop minikube and try using k3d. Install k3d with choco install k3d Make a cluster in k3d Set the context to the created…
zhrgci
  • 584
  • 1
  • 6
  • 25
0
votes
0 answers

'$ kubectl create deployment ...' keeps on creating pods on the master node, not the worker nodes

Running the below commands... k3d cluster create challenge2 --agents 3 -p "8080:80@loadbalancer kubectl create deployment k3d-challenge2-agent-0 --image nginx:latest ... creates pods on the master node/control plane...: default …
LB-
  • 9
  • 3
0
votes
1 answer

Unable to connect to the server: dial tcp: lookup unix on 172.25.160.1:53: no such host

Guys I need some help =) I am trying to install docker/kubernetes/k3d/devspace on a wsl2 ubuntu machine... My docker seems to be running fine After creating a k3d cluster like this: k3d cluster create dev --port 8080:80@loadbalancer --port…
Emrys
  • 1
  • 1
  • 2
0
votes
1 answer

Skaffold image can't be pulled using k3d cluster and local registry

I have the following skaffold yaml file: apiVersion: skaffold/v1 kind: Config build: artifacts: - image: k3d-my-registry.localhost:12345/getting-started2 deploy: kubectl: manifests: - target/kubernetes/kubernetes.yml And the…
Carlos Gonzalez
  • 607
  • 1
  • 5
  • 13
0
votes
1 answer

Connection refused calling kubernetes ClusterIP service

I am trying to deploy two apps on a local k3d k8s cluster. Service-A exposes a REST endpoint that is consumed by Service-B. This is the configuration: Service-A --- apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/name:…
Carlos Gonzalez
  • 607
  • 1
  • 5
  • 13
0
votes
1 answer

How can I connect to k3d kubernetes running on my host to Jenkins docker container

I am running a Jenkins docker container, which I want to configure the Kubernetes plugin which requires passing kubeconfig file. How can I point the kubeconfig file in my local machine to the Jenkins running in the container? I am running the k3d…
DevOps_DS
  • 65
  • 3
  • 6
0
votes
1 answer

Failed to install Dgraph. Got "Error while dialing dial tcp: lookup dgraph-zero-0.dgraph-zero.hm.svc.cluster.local: no such host"

I am trying to install Dgraph. Here is what I did: I created a dev cluster by k3d by k3d cluster create dev --config=dev-cluster-config.yaml dev-cluster-config.yaml file: apiVersion: k3d.io/v1alpha2 kind: Simple kubeAPI: hostPort: "6440" network:…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
0
votes
1 answer

Bad Gateway in Rails app with Kubernetes setup

I try to setup a Rails app within a Kubernetes Cluster (which is created with k3d on my local machine. k3d cluster create --api-port 6550 -p "8081:80@loadbalancer" --agents 2 kubectl create deployment nginx --image=nginx kubectl create service…
Jan
  • 12,992
  • 9
  • 53
  • 89
0
votes
1 answer

How do I make an external REST API (running in .Net on my host computer) accessible within K8s from a Service or ExternalName?

I have a REST API running locally on my laptop at https://localhost:5001/something. I want that to be reachable inside the Kubernetes cluster from a K8s DNS name. For example, an application running inside a Pod could use some-service instead of…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
0
votes
1 answer

Enable/Configure audit-logs in k3s cluster (using k3d to set up cluster)

I am currently trying to enable and configure audit logs in a k3s cluster. Currently, I am using k3d to set up my k3s cluster. Is there a way how to configure the audit logging? I know you can parse k3s server args when creating a cluster with k3d.…
1 2
3