Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is ansible var {{ kubevip_interface }} declared? #185

Closed
ahgraber opened this issue Jan 10, 2022 · 3 comments
Closed

Where is ansible var {{ kubevip_interface }} declared? #185

ahgraber opened this issue Jan 10, 2022 · 3 comments

Comments

@ahgraber
Copy link
Contributor

ahgraber commented Jan 10, 2022

I'm trying to follow along with the ansible provisioning of the cluster. I can see that k3s_registration_address is being brought in group_vars/kubernetes/k3s.yaml file, but I don't see kubevip_interface declared anywhere.

I can see we declare it as BOOTSTRAP_ANSIBLE_KUBE_VIP_INTERFACE in config.env, and that is picked up in global kube-vip template, but I can't trace the lineage into the ansible template file

Am I missing something?

https://github.com/k8s-at-home/template-cluster-k3s/blob/088c1d9bcf622ce6e522958d106a02b3b15de95d/provision/ansible/playbooks/templates/kube-vip-daemonset.yaml.j2#L41

@onedr0p
Copy link
Owner

onedr0p commented Jan 10, 2022

That is used in this file https://github.com/k8s-at-home/template-cluster-k3s/blob/main/tmpl/cluster/kube-vip-daemonset.yaml which gets copied into the right place when you run the configure script.

@ahgraber
Copy link
Contributor Author

Why have two template files for kube-vip? Is one for k3s init and the other used once flux is installed or something?

@onedr0p
Copy link
Owner

onedr0p commented Jan 10, 2022

Yes, I was just writing that

Basically kube vip is installed with k3s at cluster init and then managed by flux afterwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants