Comment on Question on SSL traffic between podman containers and clients (should I run k3s?)

<- View Parent
vegetaaaaaaa@lemmy.world ⁨10⁩ ⁨months⁩ ago

how do I programmatically programmatically utilise sockets for containers to communicate amongst each other?

Sockets are filesystem objects, similar to a file. So for 2 containers to access the same socket, the container exposing the socket must export it to the host filesystem via a bind mount/volume, and the container that needs read/write on this socket must be able to access it, also via a bind mount. The user ID or groups of the user accessing the socket must be allowed to access the socket via traditional unix permissions.

Again, I personally do not bother with this, install the reverse proxy directly on the host, and configure it to forward traffic over HTTP on the loopback interface to your containers.

how I can automate the deployment of such proxies along with the pods

That’s a separate question. I use ansible for all deployment/automation needs - when it comes to podman I use the podman_container and podman_generate_systemd modules to automate deployment of containers as systemd services. The ansible also configures my reverse proxy to forward traffic to the container (simply copy files in /etc/apache2/sites-available/…; a2enconf; systemctl reload apache2). I have not used pods yet, but there is a podman_pod module. A simple bash script should also do the trick in a first time.

source
Sort:hotnewtop