Service
Appears in
.Values.service
Naming scheme
- Primary:
$FullName
(release-name-chart-name) - Non-Primary:
$FullName-$ServiceName
(release-name-chart-name-ServiceName)
Target Selector
targetSelector
(string): Define the pod to link the servicetargetSelector
(empty): Assign the service to the primary pod
service
Define service objects
Key | service |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
$name
Define service
Key | service.$name |
Type | map |
Required | ✅ |
Helm tpl | ❌ |
Default | {} |
Example
enabled
Enables or Disables the service
Key | service.$name.enabled |
Type | bool |
Required | ✅ |
Helm tpl | ✅ |
Default | false |
Example
namespace
Define the namespace for this object
Key | service.$name.namespace |
Type | string |
Required | ❌ |
Helm tpl | ✅ (On value only)` |
Default | "" |
Example
labels
Additional labels for service
Key | service.$name.labels |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only)` |
Default | {} |
Example
annotations
Additional annotations for service
Key | service.$name.annotations |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only)` |
Default | {} |
Example
type
Define the service type
Key | service.$name.type |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | See default here |
Valid Values:
Example
expandObjectName
Whether to expand the object name (based on the naming scheme) or not
Key | service.$name.expandObjectName |
Type | bool |
Required | ❌ |
Helm tpl | ✅ |
Default | true |
Example
clusterIP
Configure Cluster IP type
Key | service.$name.clusterIP |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
ipFamilyPolicy
Define the ipFamilyPolicy
Does not apply to type
of ExternalName
or ExternalIP
Key | service.$name.ipFamilyPolicy |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Valid Values:
SingleStack
PreferDualStack
RequireDualStack
Example
ipFamilies
Define the ipFamilies
Does not apply to type
of ExternalName
or ExternalIP
Key | service.$name.ipFamilies |
Type | list of string |
Required | ❌ |
Helm tpl | ✅ (On entries only) |
Default | [] |
Example
sessionAffinity
Define the session affinity (ClientIP, None)
Key | service.$name.sessionAffinity |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Valid Values:
ClientIP
None
Example
sessionAffinityConfig.clientIP.timeoutSeconds
Define the timeout for ClientIP session affinity (0-86400)
Key | service.$name.sessionAffinityConfig.clientIP.timeoutSeconds |
Type | int |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Valid Values:
0
-86400
Example
externalIPs
Define externalIPs
Key | service.$name.externalIPs |
Type | list of string |
Required | ❌ |
Helm tpl | ✅ (On entries only) |
Default | [] |
Example
externalTrafficPolicy
Define the external traffic policy (Cluster, Local)
Does not apply to type
of ClusterIP
Key | service.$name.externalTrafficPolicy |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Valid Values:
Cluster
Local
Example
publishNotReadyAddresses
Define whether to publishNotReadyAddresses or not
Key | service.$name.publishNotReadyAddresses |
Type | bool |
Required | ❌ |
Helm tpl | ❌ |
Default | false |
Example
targetSelector
Define the pod to link the service, by default will use the primary pod
Key | service.$name.targetSelector |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | "" |
Example
ports
Define the ports of the service
See Ports
Key | service.$name.ports |
Type | map |
Required | ✅ |
Helm tpl | ❌ |
Default | {} |
Example
Full Examples
Full examples can be found under each service type