Skip to content

ports

Service port(s) configuration.

object

Keys are identifiers for ports instances.

ports:
main:
enabled: true
# ... configuration
secondary:
enabled: true
# ... configuration

Available properties:

PropertyTypeRequiredDefaultDescription
appProtocolstringNo-appProtocol value for the port. See https://kubernetes.io
enabledbooleanNotrueSet to false to disable the port.
nodePortstring / integerNo-nodePort value for LoadBalancer and NodePort Service type…
portstring / integerYes-Port name / number.
portRangeobjectNo-A range of ports to include in the Service.
primarybooleanNofalseSet to true to make this the primary port (used in probes…
protocolstringNo-Port protocol. Supported values: HTTP, HTTPS, TCP, UDP. H…
targetPortstring / integerNo-Set the targetPort if you want the Service port to differ…

appProtocol value for the port. See https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol

nodePort value for LoadBalancer and NodePort Service types. See https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport

Set to true to make this the primary port (used in probes, notes, etc). Only one port can be marked as primary.

Port protocol. Supported values: HTTP, HTTPS, TCP, UDP. HTTP and HTTPS spawn a TCP service and are used for internal URL and name generation.

Allowed values: HTTP, HTTPS, TCP, UDP

Set the targetPort if you want the Service port to differ from the application port. If set, this value is used in the container definition instead of ‘port’. Named ports are not supported for this field.