this post was submitted on 29 Nov 2024
5 points (85.7% liked)
Ansible
240 readers
1 users here now
# TODO
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Could one maybe use multiple hosts in the ansible inventory that point to the same host?
Maybe k8s ist better suited for this.
Yes, you could setup multiple DNS aliases in your nameserver/router or in your
/etc/hosts
file that point to the same IP; DNS might round-robin through the IPs, but I've never tried this.EDIT: You're right, the DNS aliases go in the Ansible inventory, no need for DNS round-robin. Short brainfart, sry. EDIT END.
I have near-zero experience with k8s (apart from a little bit of Minikube, which I hated), so I can't say anything about that option, but my impression is that it's massive overkill for almost all use cases, aka "you're not Google".