Skip to content

service

Kubernetes Service objects to be generated by the chart. Each key is a service identifier.

object

Keys are identifiers for service instances.

service:
main:
enabled: true
# ... configuration
secondary:
enabled: true
# ... configuration
service:
main:
controller: main
ports:
http:
port: 80

Available properties:

PropertyTypeRequiredDefaultDescription
allocateLoadBalancerNodePortsbooleanNo-
annotationsobject / nullNo-Annotations to set on the item.
clusterIPstringNo-
controllerstringNo-Controller this Service should target.
enabledbooleanNotrueSet to false to disable the Service.
externalIPsarrayNo-
externalNamestringNo-
externalTrafficPolicystringNo-externalTrafficPolicy for the Service. Supported values: …
extraSelectorLabelsanyNo-Additional match labels for the Service selector.
forceRenamestringNo-Override the default resource name. Mutually exclusive wi…
internalTrafficPolicystringNo-internalTrafficPolicy for the Service. Supported values: …
ipFamiliesarrayNo-IP families for the Service. Supported values: IPv4, IPv6.
ipFamilyPolicystringNo-ipFamilyPolicy for the Service. Supported values: SingleS…
labelsobject / nullNo-Labels to set on the item.
loadBalancerClassstringNo-
loadBalancerIPstringNo-
loadBalancerSourceRangesarrayNo-
portsobjectNo-Service port(s) configuration.
prefixstringNoPrefix to prepend to the resource name. Mutually exclusiv…
primarybooleanNofalseSet to true to make this the primary Service for the cont…
publishNotReadyAddressesbooleanNo-
sessionAffinitystringNo-(None, ClientIP)
sessionAffinityConfigobjectNo-
suffixstringNo-Suffix to append to the resource name. Defaults to the re…
trafficDistributionstringNo-trafficDistribution for the Service. Supported values: Pr…
typestringNo-Service type. Supported values: ClusterIP, NodePort, Load…

externalTrafficPolicy for the Service. Supported values: Cluster, Local. See https://kubernetes.io/docs/tutorials/services/source-ip/

Allowed values: Cluster, Local

Override the default resource name. Mutually exclusive with prefix and suffix.

internalTrafficPolicy for the Service. Supported values: Cluster, Local. See https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/

Allowed values: Cluster, Local

ipFamilyPolicy for the Service. Supported values: SingleStack, PreferDualStack, RequireDualStack.

Allowed values: SingleStack, PreferDualStack, RequireDualStack

Prefix to prepend to the resource name. Mutually exclusive with forceRename.

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

Suffix to append to the resource name. Defaults to the resource identifier if there are multiple items, otherwise empty. Mutually exclusive with forceRename.

trafficDistribution for the Service. Supported values: PreferClose, PreferSameZone, PreferSameNode.

Allowed values: PreferClose, PreferSameZone, PreferSameNode

Service type. Supported values: ClusterIP, NodePort, LoadBalancer, ExternalName.

Allowed values: ClusterIP, NodePort, LoadBalancer, ExternalName