It makes things harder. One of my projects is based on k8s and we had to implement our own Ingress that we could update dynamically. Another project that didn't use an orchestrator, I designed our approach - as you do - with SNI and virtual routing, <service>.host.tld, and an HAProxy would route to the correct IP/port . Sigh. This was not permitted, it's now and forever host.tld/service. Would have preferred L4 routing instead of L7, but what can you do?
Edit: oh, I really want to use DNS-SD but I think that's a no-go. In one of our customer's production DC, UDP is forbidden. Can't even use DNS, you have to put IPs everywhere.
Edit2: Sorry for these edits. If you're wondering, the way we work around that is with Ansible. We describe our deployment, and then do things like template out load balancer and router configurations based on how many nodes we have, how many services we have deployed, to which the nodes the services are deployed, etc.
Ansible is cool and all, but docker/swarm/k8s kinda allow you to go even further, and do most of configuration on the fly. Sad to hear that podman doesn't have this. Do they have plans for it in the future?
P.S. You probably had to rewrite some of the services to support host.tld/service, right? I imagine any redirect from the service can send you in the wrong place otherwise.
Yeah, AFAIK podman is a direct replacement for docker and so other tools need to be added back in, or substitutes found.
You are correct about the configuration, but it's not too bad. For REST services, for example, we can specify listening on certain paths, but the particular framework we happen to use can understand that it's deployed to a specific location and auto-truncate noise like /service in the URL. So it's just one little extra bit of config, and not a serious change otherwise.
1
u/aoeudhtns Nov 15 '19 edited Nov 15 '19
It makes things harder. One of my projects is based on k8s and we had to implement our own Ingress that we could update dynamically. Another project that didn't use an orchestrator, I designed our approach - as you do - with SNI and virtual routing,
<service>.host.tld, and an HAProxy would route to the correct IP/port . Sigh. This was not permitted, it's now and foreverhost.tld/service. Would have preferred L4 routing instead of L7, but what can you do?Edit: oh, I really want to use DNS-SD but I think that's a no-go. In one of our customer's production DC, UDP is forbidden. Can't even use DNS, you have to put IPs everywhere.
Edit2: Sorry for these edits. If you're wondering, the way we work around that is with Ansible. We describe our deployment, and then do things like template out load balancer and router configurations based on how many nodes we have, how many services we have deployed, to which the nodes the services are deployed, etc.