Static IPs Convention #554
tandiljuan
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Hey @tandiljuan , thanks for starting this discussion. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody,
First of all, I want to thanks the team behind this project for all the work you did to make it. Great work!
In my projects, I'm used to work with host names. For this, and to make my life easier, I need to be sure that the VM's or container IPs are not going to change on every reboot... otherwise it would be tedious to update the
hosts
file every time.After creating a dummy cluster (
k3d cluster create --agents 3 --servers 5 --registry-create potato
) and restarting it, this is the list of assigned IPs for each container:Is it possible to define a convention where we could know/guess what's going to be the IP or at least that it won't change on any cluster restart? For example:
With this in mind, the IP could also be listed with the
k3d node list
command (or with the--output
argument). Of course it also could be get with docker (docker inspect k3d-potato-server-1 --format '{{$network := index .NetworkSettings.Networks "k3d-potato"}}{{$network.IPAddress}}'
).Thanks and regards!
Beta Was this translation helpful? Give feedback.
All reactions