You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to learn and get more understanding on debugging and logging in k3s.
So rather that wipe our my installation and start from scratch, I would like to go deep in logging and revive my cluster that seems to be dead.
Hope anyone can point me some directions.
Description of my challenge:
I set up a k3s 3masters 3workers cluster on lxc instances, ha with two machine with haproxy and keepalived.
I installed metallb rather than servicelb. And a simple wordpress-mariadb deployment to understand configuration.
NAMESPACE NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
metallb-system daemonset.apps/speaker 3 3 0 3 0 kubernetes.io/os=linux 2d22h
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
thank you in advance for your help.
My Goal:
I would like to learn and get more understanding on debugging and logging in k3s.
So rather that wipe our my installation and start from scratch, I would like to go deep in logging and revive my cluster that seems to be dead.
Hope anyone can point me some directions.
Description of my challenge:
I set up a k3s 3masters 3workers cluster on lxc instances, ha with two machine with haproxy and keepalived.
I installed metallb rather than servicelb. And a simple wordpress-mariadb deployment to understand configuration.
LXD Instances:
I assigned fix ip addresses and I used these command to create the cluster:
Master 1:
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --cluster-init" --disable servicelb --node-ip x.x.x.30 -tls-san x.x.x.28 --tls-san x.x.x.136 --node-taint node-role.kubernetes.io/master=true:NoSchedule sh -s -
Master 2/3:
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --server https://x.x.x.30:6443 --disable servicelb --node-ip x.x.x.32 --tls-san x.x.x.28 --tls-san x.x.x.136 --node-taint node-role.kubernetes.io/master=true:NoSchedule" K3S_TOKEN=$token sh -s -
The cluster was working fine. However, this morning all pods have a status CreateContainerError and deployments are down, all nodes are ready:
Command: kubectl get all -A
Actions:
Log files:
logmaster1S.log
logmaster2S.log
logmaster3S.log
Questions
Thank you in advance for any answer.
Beta Was this translation helpful? Give feedback.
All reactions