K3D Master + K3S workers #5879
darktempla
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies wrong repo moving to K3D
If you happen to read and have some info please update here --> k3d-io/k3d#1104
Hi all,
Thanks in advance for any responses to my discussion.
What am I trying to do?
Spin up a k3d single node cluster (master only) and connect external k3s worker nodes to this cluster.
Why am I trying to do this?
I have found having a raspberry pi as a K3S master over time the CPU gets overworked and becomes un-realiable. So I am attempting to get some stability into my cluster without breaking the bank and use what I currently have.
I have an M1 Mac Mini that has plenty of grunt so my desire is to run the master there.
Some issues I had with other ideas:
Hence why K3D seemed like a great option as I have use it for a couple of years now for testing and it does run on Mac M1. Plus it is isolated as it runs in docker.
What have I tried?
1. Spin up a k3d master node using the following config file
Command used to spin up the cluster
k3d cluster create demo --config k3d-config.yaml2. Attempted to connect a K3S Client (no love)
From the K3S node I can curl the K3D master.
However if we look at the agent service it appears a CA cert issue from this output.
It says to use the "full" token but I am not sure how to go about that using K3D (details in logs below)
So this is where I get stuck.
journalctl -u k3s-agent.service --since "10 minutes ago"- extract to show what that the systemctl does not, setup of load balancersystemctl status k3s-agent.servicek3s-agent.service - Lightweight Kubernetes Loaded: loaded (/etc/systemd/system/k3s-agent.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2022-07-18 22:23:25 AEST; 13min ago Docs: https://k3s.io Process: 2010178 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited, status=0/SUCCESS) Process: 2010180 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS) Process: 2010181 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS) Main PID: 2010182 (k3s-agent) Tasks: 21 Memory: 245.3M CPU: 16.390s CGroup: /system.slice/k3s-agent.service ├─2010182 /usr/local/bin/k3s agent └─2010271 containerd -c /var/lib/rancher/k3s/agent/etc/containerd/config.toml -a /run/k3s/containerd/containerd.sock --state /run/k3s/containerd --root /var/lib/rancher/k3s/agent/containerd Jul 18 22:35:47 pi6-k3sn k3s[2010182]: time="2022-07-18T22:35:47+10:00" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: CA cert validation failed: Get \"https://127.0.0.1:6444/cacerts\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" Jul 18 22:36:07 pi6-k3sn k3s[2010182]: time="2022-07-18T22:36:07+10:00" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: CA cert validation failed: Get \"https://127.0.0.1:6444/cacerts\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" Jul 18 22:36:26 pi6-k3sn k3s[2010182]: W0718 22:36:26.353587 2010182 reflector.go:324] k8s.io/client-go@v1.23.8-k3s1/tools/cache/reflector.go:167: failed to list *v1.Endpoints: Get "https://127.0.0.1:6444/api/v1/namespaces/default/endpoints?fieldSelector=metadata.name%3Dkubernetes&limit=500&resourceVersion=0": net/http: TLS handshake timeout Jul 18 22:36:26 pi6-k3sn k3s[2010182]: I0718 22:36:26.353992 2010182 trace.go:205] Trace[768658237]: "Reflector ListAndWatch" name:k8s.io/client-go@v1.23.8-k3s1/tools/cache/reflector.go:167 (18-Jul-2022 22:36:16.351) (total time: 10002ms): Jul 18 22:36:26 pi6-k3sn k3s[2010182]: Trace[768658237]: ---"Objects listed" error:Get "https://127.0.0.1:6444/api/v1/namespaces/default/endpoints?fieldSelector=metadata.name%3Dkubernetes&limit=500&resourceVersion=0": net/http: TLS handshake timeout 10002ms (22:36:26.353) Jul 18 22:36:26 pi6-k3sn k3s[2010182]: Trace[768658237]: [10.002710004s] [10.002710004s] END Jul 18 22:36:26 pi6-k3sn k3s[2010182]: E0718 22:36:26.354080 2010182 reflector.go:138] k8s.io/client-go@v1.23.8-k3s1/tools/cache/reflector.go:167: Failed to watch *v1.Endpoints: failed to list *v1.Endpoints: Get "https://127.0.0.1:6444/api/v1/namespaces/default/endpoints?fieldSelector=metadata.name%3Dkubernetes&limit=500&resourceVersion=0": net/http: TLS handshake timeout Jul 18 22:36:27 pi6-k3sn k3s[2010182]: time="2022-07-18T22:36:27+10:00" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: CA cert validation failed: Get \"https://127.0.0.1:6444/cacerts\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" Jul 18 22:36:47 pi6-k3sn k3s[2010182]: time="2022-07-18T22:36:47+10:00" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: CA cert validation failed: Get \"https://127.0.0.1:6444/cacerts\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" Jul 18 22:37:07 pi6-k3sn k3s[2010182]: time="2022-07-18T22:37:07+10:00" level=info msg="Waiting to retrieve kube-proxy configuration; server is not ready: CA cert validation failed: Get \"https://127.0.0.1:6444/cacerts\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"Beta Was this translation helpful? Give feedback.
All reactions