Closed Gentoli closed 1 day ago
yes, this is expected behavior - in general, not the best idea to re-use kubeconfig
from other Talos static pods, as things might change in the future.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Bug Report
Description
If a user provided static pod mounts
/system/secrets/kubernetes/kube-controller-manager/kubeconfig
with out explicittype
, control plane pods does not gets created due toI think is caused by the user provided static pods being supplied to kubelet before the control plane pods.
So the steps goes like this:
/system/secrets/kubernetes/kube-controller-manager/kubeconfig
/system/secrets/kubernetes/kube-controller-manager/kubeconfig
exists as a folder, pods does not get generatedTo protect the control plane startup, either
RenderSecretsStaticPodController
.The workaround is to use
type=Directory
on the parent so the file is not created (also thekubeconfig
is not visible to kubelet).Logs
machined
failed to write kubeconfigendpoint with no pods
Environment
talosctl version --nodes <problematic nodes>
]kubectl version --short
] N/A (kube-apiservier not running)