devopstales / devopstales.github.io

7 stars 7 forks source link

https://devopstales.github.io/kubernetes/k3s-etcd-kube-vip/ #7

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Install K3S with k3sup and kube-vip - devopstales

https://devopstales.github.io/kubernetes/k3s-etcd-kube-vip/

cmonty14 commented 2 years ago

Hello, many thanks for this excellent documentation.

Unfortunately I fail with the following step: Test vip ping <vip-ip>

There was no error before.

I think after creating the manifest /var/lib/rancher/k3s/server/manifests/kube-vip.yaml there's one step missing.

(I think the content of this manifest is correct and complete.)

Can you please advise how to fix the issue?

THX

devopstales commented 2 years ago

Hi @cmonty14. There is no missing step. K3S has a function called autodeploy. Any file found in /var/lib/rancher/k3s/server/manifests will automatically be deployed to Kubernetes in a manner similar to kubectl apply. So check the logs of the k3s. If the kube-vip.yaml can be deployed by k3s check the logs of the kube-vip pod in the kube-system namespace.

cmonty14 commented 2 years ago

Hi @devopstales,

thanks for your reply.

When I was investigating this issue I found another deployment guide on YT.

Here there are some modifications to the manifest file. This is documented here.

Do you confirm that latest kube-vip can load balance services, too?

devopstales commented 2 years ago

@cmonty14 Yes it can be a loadbalancer too. If you carefully read my post it is under the Install kube-vip as network LoadBalancer chapter. When I write this post I used an older version of k3s for that. Whit the update of the k3s version you need to update the kube-vip version so I straggly advice to use the latest version of the kube-vip.

dleeha commented 2 years ago

Hi @devopstales, the latest version of kube-vip found on docker hub (as of this writing) is v0.4.2. Could you point us to where version 2.3.8 can be found?

Currently having some issues with the above setup. Observing retrywatcher.go:130] "Watch failed" err="unknown (get services) on the logs of kube-vip-cluster-xxx. Any clues?

Thanks.

devopstales commented 2 years ago

@dleeha not 2.3.8 it is 0.3.8. I didn't see this error before but I thin you shod ask for help at https://github.com/kube-vip/kube-vip instead of here. I am not the maintainer of this software.