able-oil-52301
07/25/2022, 6:20 PMerror: yaml: line 9: mapping values are not allowed in this context
I tried to stop (k3s-killall.sh) and uninstall (k3s-uninstall.sh) and delete directories:
/etc/rancher
/var/lib/rancher
~/.kube
I probably forgot something else because new installation:
curl -sfL <https://get.k3s.io> | sh -
ends with same result.
Can any of you give me some advice?white-battery-15789
07/26/2022, 2:18 PMls /var/lib/rancher/k3s/server/manifests
ccm.yaml local-storage.yaml rolebindings.yaml traefik.yaml.skip
coredns.yaml traefik.yaml
you can flag --disable traefik
https://rancher.com/docs/k3s/latest/en/installation/disable-flags/
--disable value (components) Do not deploy packaged components and delete any deployed components (valid items: coredns, servicelb, traefik, local-storage, metrics-server)
https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/able-oil-52301
07/26/2022, 4:36 PMmm@archer:~$ kubectl get node -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
cellar Ready control-plane,master 19h v1.24.3+k3s1 192.168.0.8 <none> Ubuntu 20.04.4 LTS 5.4.0-122-generic <containerd://1.6.6-k3s1>
but from same PC, where is k3s server installed still:
#(any kubectl command)
error: yaml: line 9: mapping values are not allowed in this context
From this, I conclude that the k3s server is completely fine and the problem will be in the client side that queries the server.
(i don't use kubectl symlink k3s)white-battery-15789
07/26/2022, 4:48 PMable-oil-52301
07/26/2022, 4:54 PMwhite-battery-15789
07/26/2022, 6:27 PMable-oil-52301
07/26/2022, 6:31 PMdavid@sklep:~$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: <http://version.Info|version.Info>{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:30:46Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
error: unable to parse the server version: invalid character '<' looking for beginning of value
white-battery-15789
07/26/2022, 6:35 PMable-oil-52301
07/26/2022, 6:39 PM/etc/rancher/k3s/k3s.yaml
to ~/.kube/config
Thank you for your help.