https://rancher.com/ logo
Title
f

fierce-monkey-81592

08/15/2022, 10:58 PM
I’m trying to install Rancher on a single server just to make running some dev ops on a single box easier. I’ve followed the instructions here: https://rancher.com/docs/rancher/v2.5/en/installation/other-installation-methods/single-node-docker/ but it doesn’t seem to work. It looks like core-dns won’t deploy and I can’t seem to create any other deployments either… they all just sit in “pending”…. not sure where to begin troubleshoot to resolve this issue!
s

square-engine-61315

08/16/2022, 11:47 AM
Start here:
kubectl --namespace kube-system describe deploy/coredns
k

kind-nightfall-56861

08/16/2022, 12:09 PM
for me it usually works to execute this command to check the status of the kube-system pods;
kubectl get all -n kube-system
And if it turns out that one or more pods are being a pain in the *, then I'm pretty much forcing them to redeploying.
kubectl delete --all pods -n kube-system --force
Same way of work for any namespace tbh
s

square-engine-61315

08/16/2022, 12:12 PM
@kind-nightfall-56861 that works sometimes. But instead of deleting pods, you could restart the deployment that controls the pods:
kubectl rollout restart -n kube-system deployment coredns
But you might want to find out why the deployment is failing before you do that. That's what I suggest:
kubectl --namespace kube-system describe deploy/coredns
k

kind-nightfall-56861

08/16/2022, 12:19 PM
Tbh, when I try do restart through the Rancher interface, restarting almost never works, but idk if that restart translates to that console line. I'm finding that my method works 100% of the time, but I might be mistaken.
s

square-engine-61315

08/16/2022, 12:54 PM
Deleting the pod is almost like restarting a deployment that has
.spec.strategy.type==Recreate
. I think the default is
.spec.strategy.type==RollingUpdate
. The latter will try to start new pod before stopping the old one, which is nice for high availability, but does not work with all applications or pods.
👍 1