Static pod for k3s-agent #3800
-
Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered Additional context Backporting
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
To deploy static pods, just follow the official documentation: https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/
Edit: You don't even have to configure the kubelet. In K3s, the default pod manifest path is |
Beta Was this translation helpful? Give feedback.
-
Actually, i had try to deploy redis for static pod on redis-svc.yaml
redis.yaml
|
Beta Was this translation helpful? Give feedback.
-
Static pods have to be... Pods? Not services or statefulsets. Just pods. |
Beta Was this translation helpful? Give feedback.
-
Thanks for correct the wrong content. now i just use pods.
and still not runing.
Install k3s by default. Update:
|
Beta Was this translation helpful? Give feedback.
-
Try to fix your indentation of
I've just tried it on one of my agents. I can confirm that it does work! On one of my agents I've created this file as
The feature is working fine. Maybe you have some typo or bad indentation inside your YAML file. |
Beta Was this translation helpful? Give feedback.
Try to fix your indentation of
spec.containers
:I've just tried it on one of my agents. I can confirm that it does work!
On one of my agents I've created this file as
/ssd/k3s/agent/pod-manifests/redis.yaml
(/ssd/k3s
is my k3s data-dir). A few seconds later, I can see the pod on my server node: