# K3s communication

**URL:** https://forums.suse.com/t/k3s-communication/45047
**Category:** General
**Created:** [January 28, 2025, 10:08pm UTC](https://forums.suse.com/t/k3s-communication/45047 "2025-01-28T22:08:24Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:08pm UTC](https://forums.suse.com/t/k3s-communication/45047/1 "2025-01-28T22:08:24Z")

</div>

Rocky 9.5 host and I get the following running the command? Aside from physical failure which I highly doubt. What should I be looking at. I need a deep dive rather than high level try this command and see. we’ve ran commands and it has to be some sort of config setting somewhere on bootup. Please excuse my ignorance as I am thrown into the fire here with Rancher and K3s.

Thank you in advance.

kubectl get pods -A  
E0128 19:51:21.921560 1380560 memcache.go:265] “Unhandled Error” err=“couldn’t get current server API group list: Get "[https://127.0.0.1:7443/api?timeout=32s\](https://127.0.0.1:7443/api?timeout=32s%5C)”: dial tcp 127.0.0.1:7443: connect: connection refused"  
E0128 19:51:21.925291 1380560 memcache.go:265] “Unhandled Error” err=“couldn’t get current server API group list: Get : dial tcp 127.0.0.1:7443: connect: connection refused”  
E0128 19:51:21.928657 1380560 memcache.go:265] “Unhandled Error” err=“couldn’t get current server API group list: Get : dial tcp 127.0.0.1:7443: connect: connection refused”  
E0128 19:51:21.932073 1380560 memcache.go:265] “Unhandled Error” err=“couldn’t get current server API group list: Get : dial tcp 127.0.0.1:7443: connect: connection refused”

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 10:19pm UTC](https://forums.suse.com/t/k3s-communication/45047/2 "2025-01-28T22:19:59Z")

</div>

@polpmpn1 Hi and welcome to the Forum 😄  
So is k3s running on the system? Is your KUBECONFIG pointing to the correct file etc?

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:25pm UTC](https://forums.suse.com/t/k3s-communication/45047/3 "2025-01-28T22:25:27Z")

</div>

@malcolmlewis  
systemctl status k3s  
● k3s.service - Lightweight Kubernetes  
Loaded: loaded (/etc/systemd/system/k3s.service; enabled; preset: disabled)  
Drop-In: /usr/lib/systemd/system/service.d  
└─10-timeout-abort.conf  
Active: activating (auto-restart) (Result: exit-code) since Tue 2025-01-28\>  
Docs: [https://k3s.io](https://k3s.io)  
Process: 1423954 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled →   
Process: 1423956 ExecStartPre=/sbin/modprobe br\_netfilter (code=exited, sta\>  
Process: 1423958 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0\>  
Process: 1423960 ExecStart=/opt/k3s/default/bin/k3s $MODE $ARGS (code=exite\>  
Main PID: 1423960 (code=exited, status=1/FAILURE)  
Tasks: 74  
Memory: 889.0M (peak: 1.5G swap: 220.0K swap peak: 692.0K)  
CPU: 220ms  
CGroup: /system.slice/k3s.service  
├─3731 /var/lib/rancher/k3s/data/c3b3bbf39f70985bb27180c065eb5928b\>  
├─3732 /var/lib/rancher/k3s/data/c3b3bbf39f70985bb27180c065eb5928b\>  
├─3762 /var/lib/rancher/k3s/data/c3b3bbf39f70985bb27180c065eb5928b\>  
├─3850 /var/lib/rancher/k3s/data/c3b3bbf39f70985bb27180c065eb5928b\>  
└─3893 /var/lib/rancher/k3s/data/c3b3bbf39f70985bb27180c065eb5928b\>

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 10:25pm UTC](https://forums.suse.com/t/k3s-communication/45047/4 "2025-01-28T22:25:57Z")

</div>

@polpmpn1 for example;

```bash
kubectl get pods -A

E0128 16:23:20.138058 25397 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": dial tcp 127.0.0.1:6443: connect: connection refused"
....
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

export KUBECONFIG=$(pwd)/k3s.yaml

kubectl get pods -A

NAMESPACE NAME READY STATUS RESTARTS AGE
cattle-fleet-system fleet-agent-7f9ccfb8b-cntdr 1/1 Running 7 (2m7s ago) 324d
....

```

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:30pm UTC](https://forums.suse.com/t/k3s-communication/45047/5 "2025-01-28T22:30:03Z")

</div>

systemctl status k3s  
● k3s.service - Lightweight Kubernetes  
Loaded: loaded (/etc/systemd/system/k3s.service; enabled; preset: disabled)  
Drop-In: /usr/lib/systemd/system/service.d  
└─10-timeout-abort.conf  
Active: activating (auto-restart) (Result: exit-code) since Tue 2025-01-28\>  
Docs: [https://k3s.io](https://k3s.io)

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 10:33pm UTC](https://forums.suse.com/t/k3s-communication/45047/6 "2025-01-28T22:33:45Z")

</div>

@polpmpn1 So not running…

```bash
systemctl status k3s
● k3s.service - Lightweight Kubernetes
     Loaded: loaded (/etc/systemd/system/k3s.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2025-01-28 16:22:00 CST; 10min ago

```

Is the k3s.service modified?

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:36pm UTC](https://forums.suse.com/t/k3s-communication/45047/7 "2025-01-28T22:36:18Z")

</div>

Most likely and if you could describe what you mean? What should I check? Like I said I am thrown into this fire so I assume things have been modified but I dont know what I dont know.

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 10:38pm UTC](https://forums.suse.com/t/k3s-communication/45047/8 "2025-01-28T22:38:17Z")

</div>

> [@malcolmlewis](#):
>
> `/etc/systemd/system/k3s.service`

@polpmpn1 check if `/etc/systemd/system/k3s.service` exists, how was k3s installed (check history command).

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:39pm UTC](https://forums.suse.com/t/k3s-communication/45047/9 "2025-01-28T22:39:47Z")

</div>

My background is sysadmin in datacenters from a windows\linux virtualization perspective heavy focus on VMware. There is no VMware here. Just straight hardware with Rocky 9.5. Now if this makes sense, my host is "'salted with configurations why I assume modifications…

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:44pm UTC](https://forums.suse.com/t/k3s-communication/45047/10 "2025-01-28T22:44:50Z")

</div>

Yes it is there.

hybrid-sleep.target  
k3s.service  
multi-user.target.wants  
network-online.target.wants  
nginx.service.d  
remote-fs.target.wants  
salt-master.service.d  
salt-minion.service.d  
sleep.target  
sockets.target.wants  
suspend.target  
suspend-then-hibernate.target  
sysinit.target.wants  
systemd-homed.service.wants  
systemd-journald.service.wants  
SyxsenseResponder.service  
timers.target.wants  
user@.service.wants  
vmtoolsd.service.requires

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 10:45pm UTC](https://forums.suse.com/t/k3s-communication/45047/11 "2025-01-28T22:45:09Z")

</div>

@polpmpn1 really need to see how k3s was installed on the system, I see in your output a systemd override. Note I only run openSUSE and SLE…

There should be a `/etc/rancher/k3s/k3s.yaml` with a `server:` entry?

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:47pm UTC](https://forums.suse.com/t/k3s-communication/45047/12 "2025-01-28T22:47:20Z")

</div>

dir  
config.yaml config.yaml.d k3s.env k3s.yaml

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 10:50pm UTC](https://forums.suse.com/t/k3s-communication/45047/13 "2025-01-28T22:50:00Z")

</div>

@polpmpn1

This file… k3s.yaml, but also inspect the `/etc/systemd/system/k3s.service` file. You need to look at the contents of both. But seems to me if k3s isn’t running…

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 10:54pm UTC](https://forums.suse.com/t/k3s-communication/45047/14 "2025-01-28T22:54:16Z")

</div>

k3s.yaml server: [https://127.0.0.1:7443](https://127.0.0.1:7443)

k3s.service

cat k3s.service  
[Unit]  
Description=Lightweight Kubernetes  
Documentation=[https://k3s.io](https://k3s.io)  
Wants=network-online.target  
After=network-online.target

[Install]  
WantedBy=multi-user.target

[Service]  
Type=notify  
EnvironmentFile=-/etc/default/%N  
EnvironmentFile=-/etc/sysconfig/%N  
EnvironmentFile=-/etc/systemd/system/k3s.service.env  
EnvironmentFile=-/etc/rancher/k3s/k3s.env  
KillMode=process  
Delegate=yes

# Having non-zero Limit\*s causes performance problems due to accounting overhead

# in the kernel. We recommend using cgroups to do container-local accounting.

LimitNOFILE=1048576  
LimitNPROC=infinity  
LimitCORE=infinity  
TasksMax=infinity  
TimeoutStartSec=0  
Restart=always  
RestartSec=5s  
ExecStartPre=/bin/sh -xc ‘! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service 2\>/dev/null’  
ExecStartPre=-/sbin/modprobe br\_netfilter  
ExecStartPre=-/sbin/modprobe overlay  
ExecStart=/opt/k3s/default/bin/k3s $MODE $ARGS

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 10:59pm UTC](https://forums.suse.com/t/k3s-communication/45047/15 "2025-01-28T22:59:59Z")

</div>

@polpmpn1 those two lines  
Having non-zero… and in the kernel… are commented out correct with `#`

What are the $MODE $ARGS variables set to?

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 11:32pm UTC](https://forums.suse.com/t/k3s-communication/45047/16 "2025-01-28T23:32:27Z")

</div>

How do I check those variables? Again please excuse my ignorance

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 11:35pm UTC](https://forums.suse.com/t/k3s-communication/45047/17 "2025-01-28T23:35:57Z")

</div>

Yes they are commented out sorry

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 11:42pm UTC](https://forums.suse.com/t/k3s-communication/45047/18 "2025-01-28T23:42:55Z")

</div>

@polpmpn1 maybe those values are set via the salt config? Or some config file that is sourced (a Rocky linux thing perhaps…).

---

<div class="post-metadata">

### Author: ![polpmpn1](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@polpmpn1](https://forums.suse.com/u/polpmpn1)
#### Post date: [January 28, 2025, 11:46pm UTC](https://forums.suse.com/t/k3s-communication/45047/19 "2025-01-28T23:46:33Z")

</div>

You are correct. Ok. That answers that. So then im setup fine with my node, this is a salt issue then correct? im geographically disparate from the Salt server and dont know the who what where on that. Is salt part of Rancher, K3s?

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [January 28, 2025, 11:59pm UTC](https://forums.suse.com/t/k3s-communication/45047/20 "2025-01-28T23:59:19Z")

</div>

@polpmpn1 I’m assuming that $MODE is server, then $ARGS for the cluster, ip address and the plethora of options for k3s that can be configured. I suspect it’s not populating hence the k3s service is not starting?

Salt is a separate tool for configuration, management of a system.

[Next page](https://forums.suse.com/t/k3s-communication/45047.md?page=2)
