https://rancher.com/ logo
#k3s
Title
# k3s
a

adamant-kite-43734

12/25/2022, 8:09 PM
This message was deleted.
c

creamy-pencil-82913

12/26/2022, 2:19 AM
have you tried --kubelet-arg or --kube-apiserver-arg or whatever component you want to pass those args to?
g

gray-river-53365

12/26/2022, 12:50 PM
Thanks, got it now. Extending
Copy code
ExecStart=/usr/local/bin/k3s server
in
/etc/systemd/system/k3s.service
did the trick. For everyone who’s following that, my HA config in
k3s.service
is now:
Copy code
...
ExecStart=/usr/local/bin/k3s \
    server \
        '--cluster-init' \
        '--kubelet-arg' \
        'node-status-update-frequency=4s' \
        '--kube-controller-manager-arg' \
        'node-monitor-period=4s' \
        '--kube-controller-manager-arg' \
        'node-monitor-grace-period=16s' \
        '--kube-controller-manager-arg' \
        'pod-eviction-timeout=20s' \
        '--kube-apiserver-arg' \
        'default-not-ready-toleration-seconds=20' \
        '--kube-apiserver-arg' \
        'default-unreachable-toleration-seconds=20' \
269 Views