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 # ... configurationExamples
Section titled “Examples”service: main: controller: main ports: http: port: 80Instance Properties
Section titled “Instance Properties”Available properties:
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
allocateLoadBalancerNodePorts | boolean | No | - | |
annotations | object / null | No | - | Annotations to set on the item. |
clusterIP | string | No | - | |
controller | string | No | - | Controller this Service should target. |
enabled | boolean | No | true | Set to false to disable the Service. |
externalIPs | array | No | - | |
externalName | string | No | - | |
externalTrafficPolicy | string | No | - | externalTrafficPolicy for the Service. Supported values: … |
extraSelectorLabels | any | No | - | Additional match labels for the Service selector. |
forceRename | string | No | - | Override the default resource name. Mutually exclusive wi… |
internalTrafficPolicy | string | No | - | internalTrafficPolicy for the Service. Supported values: … |
ipFamilies | array | No | - | IP families for the Service. Supported values: IPv4, IPv6. |
ipFamilyPolicy | string | No | - | ipFamilyPolicy for the Service. Supported values: SingleS… |
labels | object / null | No | - | Labels to set on the item. |
loadBalancerClass | string | No | - | |
loadBalancerIP | string | No | - | |
loadBalancerSourceRanges | array | No | - | |
ports | object | No | - | Service port(s) configuration. |
prefix | string | No | “ | Prefix to prepend to the resource name. Mutually exclusiv… |
primary | boolean | No | false | Set to true to make this the primary Service for the cont… |
publishNotReadyAddresses | boolean | No | - | |
sessionAffinity | string | No | - | (None, ClientIP) |
sessionAffinityConfig | object | No | - | |
suffix | string | No | - | Suffix to append to the resource name. Defaults to the re… |
trafficDistribution | string | No | - | trafficDistribution for the Service. Supported values: Pr… |
type | string | No | - | Service type. Supported values: ClusterIP, NodePort, Load… |
Property Details
Section titled “Property Details”externalTrafficPolicy
Section titled “externalTrafficPolicy”externalTrafficPolicy for the Service. Supported values: Cluster, Local. See https://kubernetes.io/docs/tutorials/services/source-ip/
Allowed values: Cluster, Local
forceRename
Section titled “forceRename”Override the default resource name. Mutually exclusive with prefix and suffix.
internalTrafficPolicy
Section titled “internalTrafficPolicy”internalTrafficPolicy for the Service. Supported values: Cluster, Local. See https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
Allowed values: Cluster, Local
ipFamilyPolicy
Section titled “ipFamilyPolicy”ipFamilyPolicy for the Service. Supported values: SingleStack, PreferDualStack, RequireDualStack.
Allowed values: SingleStack, PreferDualStack, RequireDualStack
prefix
Section titled “prefix”Prefix to prepend to the resource name. Mutually exclusive with forceRename.
primary
Section titled “primary”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
Section titled “suffix”Suffix to append to the resource name. Defaults to the resource identifier if there are multiple items, otherwise empty. Mutually exclusive with forceRename.
trafficDistribution
Section titled “trafficDistribution”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