HELP! Traefik pod is failling in one of the kubernetes node #362
-
Hello Team, Need support in solving issue in production. I see one of the production is node not selected I went through the pods there is see Traefik job is falling continuously. I tried to add another node to the cluster even then it is the same issue. traefik pod is not running on the new node. attached the log file. please help me to resolve the issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@Manikanta-Reddy-Pasala Most probably traefik not running on a few nodes is normal, it just depends on the default deployment setup, as it is not a daemonset (which would run on every node). You can definitely configure that, please see the traefik helm values here and copy the portion you need (in your case):
Change the kind to DaemontSet, it will give you the behavior you desire, without worrying about the number of replicas. And those helm values, you need to apply them via a HelmChartConfig definition. Luckily, the cluster already has one. Just pull it via Now about the upgrade, it is failing, because somehow it needs to reinstall, and this we do not allow without user intervention, as it could change the value of the LB IP. So we have in the HelmChartConfig this param set And apply this manifest with Then you should no longer have helm jobs failing and you will, if you have chosen a deployment kind of DaemonSet in the HelmChartConfig, see traefik running on all nodes! Basically, this last manifest contains the new upgraded HelmChart definition, and your HelmChartConfig holds all the needed custom values. See more on the dance between HelmChart and HelmChartConfig definitions here https://docs.k3s.io/helm (if you are curious). Good luck, and if somehow this does not work, just paste your HelmChartConfig in here. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply.. I tried to update the deployment yaml. but it didn't work. finally, I have deleted and recreated the cluster once again.. |
Beta Was this translation helpful? Give feedback.
@Manikanta-Reddy-Pasala Most probably traefik not running on a few nodes is normal, it just depends on the default deployment setup, as it is not a daemonset (which would run on every node). You can definitely configure that, please see the traefik helm values here and copy the portion you need (in your case):
Change the kind to DaemontSet, it will give you the behavior you desire, without worrying about the number of replicas.
And those helm values, you need to apply them via a HelmChartConfig definition. Luckily, the cluster already has one. Just pull it via
kubectl get helmchartconfig -n kube-syst…