Ports
Appears in
.Values.service.$name.ports
Target Selector
targetSelector(string): Define the container to link the porttargetSelector(empty): Assign the service to the primary container
$port-name
Define the port dict
| Key | service.$name.ports.$port-name |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
service: service-name: ports: port-name: {}port
Define the port that will be exposed by the service
| Key | service.$name.ports.$port-name.port |
| Type | int |
| Required | ✅ |
Helm tpl | ✅ |
| Default | unset |
Example
service: service-name: ports: port-name: port: 80targetPort
Define the target port (No named ports)
| Key | service.$name.ports.$port-name.targetPort |
| Type | int |
| Required | ❌ |
Helm tpl | ✅ |
| Default | (Defaults to port if not set) |
Example
service: service-name: ports: port-name: targetPort: 80protocol
Define the port protocol Used by the container ports and probes, http and https are converted to tcp where needed
| Key | service.$name.ports.$port-name.protocol |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | See default here |
Valid Values:
tcpudphttphttps
Example
service: service-name: ports: port-name: protocol: tcphostPort
Define the hostPort, should be avoided, unless ABSOLUTELY necessary
| Key | service.$name.ports.$port-name.hostPort |
| Type | int |
| Required | ❌ |
Helm tpl | ✅ |
| Default | unset |
Example
service: service-name: ports: port-name: hostPort: 30000targetSelector
Define the container to link this port (Must be on under the pod linked above)
| Key | service.$name.ports.$port-name.targetSelector |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | unset |
Example
service: service-name: ports: port-name: targetSelector: some-containerFull Examples
Full examples can be found under each service type