Configuration to automatically restart API servers like K8s? #12052
-
Is there a configuration or simple code change to automatically restart K3s API servers, i.e., Currently, we need to do this manually, which requires a pod with host access to make a restart call via chroot or D-bus, which requires elevated permissions for the pod, especially if AppArmor is present. To minimize the security privileges of my pod, I am trying to figure out if there is some simple code or configuration that I can make so that my K3s control plane nodes will automatically restart its API servers or k3s.service just like when rotating the service account signing key by modifying |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
The k3s apiserver is embedded in the main k3s process, along with all the other Kubernetes components. In order to restart it, you'll need to restart the k3s service itself. |
Beta Was this translation helpful? Give feedback.
No. If you want that, don't use K3s. The entire point of K3s is that everything all runs together in one process.