Questions tagged [k3s]
K3s is Rancher's lightweight Kubernetes distribution.
20
questions
0
votes
0
answers
23
views
Installing k3s: zsh: not enough directory stack entries
When I install k3s, I'm getting
zsh: not enough directory stack entries.
You can see this at the bottom of the log below,
$ curl -sfL https://get.k3s.io | sh -
# Check for Ready node, takes ~30 ...
0
votes
0
answers
85
views
K3s pull images from Docker Pro private repository
I'm attempting to use containers published to a private Docker Pro registry with K3s.
I've configured /etc/rancher/k3s/registries.yaml
mirrors:
docker.io:
endpoint:
- "...
0
votes
1
answer
1k
views
With kubectl, I'm getting Unable to connect to the server: x509: certificate signed by unknown authority
When I run something with k3s, like kubectl apply, I'm getting
Unable to connect to the server: x509: certificate signed by unknown authority
0
votes
2
answers
78
views
Persistent Volume with Kubernetes
I have an application which consists of 2 containers which are running on an on-premise system. The responsibility of the application is to accept data from other on-premise systems and upload it to ...
0
votes
1
answer
198
views
port forward ssh from traefik reverse proxy on docker to a k3s container
I'm running a k3s cluster (1 master + 2 workers) and a docker traefik container on the same host (master). The traefik docker container is actually doing the reverse proxy stuff for tls which is ...
1
vote
0
answers
126
views
Can't access default k3s metrics server from Prometheus-Adapter
I have installed Prometheus-adapter along with the default metrics-server that comes with k3s securely on port 4443.
Unfortunately, I get no resources when I query custom.metrics.k8s.io
$ kubectl get ...
0
votes
0
answers
101
views
nginx ingress LoadBalancer service exposes two additional ports to the outside
I can't wrap my head around this issue that I encountered. I have a k3 cluster (v1.24.4+k3s1), with multiple services running behind an nginx ingress (helm: ingress-nginx/ingress-nginx). It creates a ...
0
votes
1
answer
985
views
Newly installed k3s cluster on fresh OS install can not resolve external domains or connect to external resources?
I'm following the k3s tutorial for troubleshooting DNS, after step 2 "Add KUBECONFIG for user.", if run this command,
kubectl run -it --rm --restart=Never busybox --image=busybox:1.28 -- ...
0
votes
1
answer
411
views
Does /etc/rancher/k3s/registries.yaml affect `k3s ctr` and `k3s crictl`?
k3s ctr launches the contianerd CLI, and k3s crictl is the CRI cli. I'm told you configure k3s authentication to the image registries using /etc/rancher/k3s/registries.yaml. Does this yaml file ...
0
votes
1
answer
69
views
How can you validate that registries.yaml is set properly?
I've set up my /etc/rancher/k3s/registries.yaml, how can I confirm it works without doing
k3s kubectl run c1 --image docker.io/perl:5.30
k3s kubectl logs --follow=true c1
sleep 1
k3s kubectl delete ...
1
vote
1
answer
655
views
How do I get k3s to authenticate with Docker Hub?
In jornalctl -u k3s, I see a bunch of errors like this
429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and ...
0
votes
0
answers
232
views
K3s error, E0614 kubelet.go] "Error getting node"
When I boot k3s up, I'm getting this error:
host-10-2-68-228.openstack.build k3s[1390]: E0614 10:37:12.528678 1390 kubelet.go:2461] "Error getting node" err="node "host-10-2-68-...
-1
votes
1
answer
547
views
How can I get an installation of k3s working with KubeApps? [closed]
How can I get an install of KubeApps running on K3s? What are the minimal required steps?
0
votes
1
answer
174
views
KubeApps: Invalid GetAvailablePackageSummaries response from the plugin helm.packages: ... Unable to fetch chart categories
I followed the setup instructions for k3s, and kubectl in this answer. I'm getting this error when I boot into KubeApps
An error occurred while fetching the catalog: Invalid ...
0
votes
1
answer
157
views
Where can I find the default arguments supplied to the internal Kublet Service in k3s?
If I want to find the default-arguments to the internal Kublet service, where can I find these documented?
0
votes
0
answers
116
views
Where are the documented arguments for `kubectl-args` and `kube-proxy-arg` in k3s?
K3s does not have a dedicated kubelet manager. In the K3s distribution the kubelet is an embedded service. The arguments to k3s are merely described as,
--kubelet-arg value (agent/flags) ...
3
votes
1
answer
2k
views
Where does k3s store it's "/var/lib/kubelet/config.yaml" file?
Referencing another answer here, they suggest setting
evictionHard:
imagefs.available: 1%
memory.available: 100Mi
nodefs.available: 1%
nodefs.inodesFree: 1%
In the file /var/lib/kubelet/...
0
votes
1
answer
858
views
k3s: Eviction manager: attempting to reclaim" resourceName="ephemeral-storage
When I run kubectl get pods -w --namespace kubeapps I see all my pods are pending
NAME READY STATUS RESTARTS AGE
kubeapps-internal-...
6
votes
1
answer
12k
views
error: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denied
When I run commands under k3s kubectl, I get
$ k3s kubectl version
WARN[0000] Unable to read /etc/rancher/k3s/k3s.yaml, please start server with --write-kubeconfig-mode to modify kube config ...
2
votes
1
answer
5k
views
k3s: The connection to the server localhost:8080 was refused - did you specify the right host or port?
When I run any kubectl commands, I'm getting
The connection to the server localhost:8080 was refused - did you specify the right host or port?