https://rancher.com/ logo
Title
g

gray-river-53365

12/25/2022, 8:09 PM
Hello, is there a way to edit HA stuff like ‘pod-eviction-timeout‘ or ‘node-monitor-grace-period‘ ?
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
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:
...
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' \