Repository navigation
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
|
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 |
Actually, i had try to deploy redis for static pod on redis-svc.yaml redis.yaml |
|
Static pods have to be... Pods? Not services or statefulsets. Just pods. |
Thanks for correct the wrong content. now i just use pods.
and still not runing. Install k3s by default. Update: |
|
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. |
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/k3sis my k3s data-dir). A few seconds later, I can see the pod on my server node: