metal3d / katenary

Convert docker and podamn compose to a configurable helm chart
MIT License
154 stars 11 forks source link

Be able to ignore ports to expose in a katenary.io/ports list #16

Closed adrian-salas closed 2 years ago

adrian-salas commented 2 years ago

Sometimes when declaring multiple ports with the katenary.io/ports label, all of the list might not need to be exposed.

eg We declare the following ports katenary.io/ports: 80,443,8080,9000

In a PHP-Nginx configuration, the 9000 port shouldn't b exposed as it is only used internally.

We could ave a second label that is used to "declare" the internal ports, so it is not exposed

metal3d commented 2 years ago

I wonder how we can declare this. At this time we declare ports to be in "containerPort" in pods and "port" in services. I propose:

katenary.io/ports: N
katenary.io/containerPorts: M

Right ?