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
6
votes
3 answers

How to expose traefik v2 dashboard in k3d/k3s via configuration?

*Cross-posted to k3d github discussions, to a thread in Rancher forums, and to traefik's community discussion board Tutorials from 2020 refer to editing the traefik configmap. Where did it go? The traefik installation instructions refer to a couple…
Eric Swanson
  • 820
  • 1
  • 9
  • 19
4
votes
2 answers

kubernetes - k3d how to use local directory as a Persistent volume

I am using k3d to run local kubernetes I have created a cluster using k3d. Now I want to mount a local directory as a persistent volume. How can i do this while using k3d. I know in minikube $ minikube start…
Santhosh
  • 9,965
  • 20
  • 103
  • 243
4
votes
2 answers

JcaPEMKeyConverter is provided by BouncyCastle, an optional dependency. To use support for EC Keys you must explicitly add dependency to classpath

I have a simple Flink streaming app. It runs well in a cluster created by start-cluster.sh command. Now based on the Flink tutorial, I hope to deploy it in application mode natively in a Kubernetes cluster created by k3d on macOS. First, I created a…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
3
votes
1 answer

K3D (Kubernetes) Registry Fails with No Such Host

It appears the default K3D registry commands are broken. k3d registry create test-registry.localhost --port 23456 k3d cluster create test-cluster --registry-use k3d-test-registry.localhost:23456 docker tag nginx:latest…
user3162553
  • 2,699
  • 3
  • 37
  • 61
2
votes
0 answers

Can't create k3d cluster

This must be a newbie question. Going through a k3d tutorial. Trying to do $ k3d cluster create mycluster --api-port 127.0.0.1:6445 --servers 3 --agents 2 --volume '/home/me/mycode:/code@agent[*]' --port '8080:80@loadbalancer' FATA[0000] failed to…
Irina Rapoport
  • 1,404
  • 1
  • 20
  • 37
2
votes
1 answer

k3d tries to pull Docker image instead of using the local one

Just study the core of K8S on local machine (Linux Mint 20.2). Created one node cluster locally with: k3d cluster create mycluster And now I want to run spring boot application in a container. I build local image: library:0.1.0 And here is…
catch23
  • 17,519
  • 42
  • 144
  • 217
2
votes
1 answer

Unable to deploy cluster(k3d->k3s) on ARM64, fails to spin up serverlb node

I am trying to setup a k3s cluster with k3d for use together with portainer. I am running the latest archlinux-arm on the rockpro64 with the latest docker version, along with a current version of kubectl and k3d, all compatible with ARM64, and I…
jaaq
  • 1,188
  • 11
  • 29
2
votes
0 answers

How can I create an Ubutnu-based image for k3d?

I'm trying to create an Ubuntu-based image for k3d and running into some problems. Please help Dockerfile ARG K3S_VERSION=v1.22.6-k3s1 FROM rancher/k3s:${K3S_VERSION} AS k3s FROM ubuntu:20.04 COPY --from=k3s / / RUN mkdir -p /etc \ && echo…
MrSimonEmms
  • 1,321
  • 2
  • 16
  • 32
2
votes
1 answer

K3d DNS issue with pod

With k3d, I am receiving a DNS error when the pod tries to access a URL over the internet. ERROR: getaddrinfo EAI_AGAIN DNS could not be resolved How can I get past this error?
2
votes
1 answer

Specify custom docker socket address when using k3d?

I have just started using k3d for local testing of ephemeral clusters. Locally it works great - I use pretty much default docker settings with no problems. I would like to add automated tests like this using GitLab CI. On GitLab workers, the docker…
hauron
  • 4,550
  • 5
  • 35
  • 52
2
votes
1 answer

how to create a multi-host k8s cluster using k3d

I have two mac mini computers and I'm trying to create a K8s cluster using k3d. I can create a cluster on a single host very easily. However, I'm having trouble finding any guidance on creating a cluster that has multiple hosts (machines). Any…
LukeW
  • 43
  • 8
2
votes
1 answer

Run a K3S server in a docker container, and connect a K3S agent in another docker container

I know k3d can do this magically via k3d cluster create myname --token MYTOKEN --agents 1, but I am trying to figure out how to do the most simple version of that 'manually'. I want to create a server something like: docker run -e K3S_TOKEN=MYTOKEN…
ricky116
  • 744
  • 8
  • 21
2
votes
1 answer

How do I find and call the kube-apiserver in k3s / k3d (with Calico and without it)?

I want to use the kube-apiserver to enable/disable admission controllers (e.g. kube-apiserver --enable-admission-plugins=NamespaceLifecycle), but I cannot find it anywhere. When I run the following, I don't see it anywhere: # Running this: kubectl…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
1
vote
1 answer

How to increase allocated memory in a k3d cluster

I am on a learning curve with Kubernetes and recently started working with K3D. I am trying to deploy my project on a local K3D cluster. When I created a pod to run an application, I saw it hang in the pending state for some time, and below is the…
Sathya
  • 105
  • 2
  • 15
1
vote
0 answers

Issue pulling docker image from k3d managed local registry

I am creating a registry: k3d registry create registry.localhost --port 8087 a registry.yaml file: mirrors: 'localhost:8087': endpoint: - http://k3d-registry.localhost:8087 and a cluster: k3d cluster create dev -p…
mlz7
  • 2,067
  • 3
  • 27
  • 51
1
2 3