JamesTurland / JimsGarage

Homelab Goodies
2.18k stars 485 forks source link

Error from server (NotFound): services "name=rancher-lb" not found #21

Open SamB-GB opened 1 year ago

SamB-GB commented 1 year ago

Hi,

On line 231 of the rke2.sh script

kubectl get svc name=rancher-lb -n cattle-system

This command returns an error

debian@rke3-prod-admin:~$ kubectl get svc name="rancher-lb" -n cattle-system
Error from server (NotFound): services "name=rancher-lb" not found

I think the command should be

kubectl get svc --name=rancher-lb -n cattle-system