Skip to content

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 service
  • targetSelector (empty): Assign the service to the primary pod

service

Define service objects

Keyservice
Typemap
Required
Helm tpl
Default{}

Example

service: {}

$name

Define service

Keyservice.$name
Typemap
Required
Helm tpl
Default{}

Example

service:
service-name: {}

enabled

Enables or Disables the service

Keyservice.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

service:
service-name:
enabled: true

namespace

Define the namespace for this object

Keyservice.$name.namespace
Typestring
Required
Helm tpl✅ (On value only)`
Default""

Example

service:
service-name:
namespace: some-namespace

labels

Additional labels for service

Keyservice.$name.labels
Typemap
Required
Helm tpl✅ (On value only)`
Default{}

Example

service:
service-name:
labels:
some-label: some-value

annotations

Additional annotations for service

Keyservice.$name.annotations
Typemap
Required
Helm tpl✅ (On value only)`
Default{}

Example

service:
service-name:
annotations:
some-annotation: some-value

type

Define the service type

Keyservice.$name.type
Typestring
Required
Helm tpl
DefaultSee default here

Valid Values:

Example

service:
service-name:
type: ClusterIP

expandObjectName

Whether to expand the object name (based on the naming scheme) or not

Keyservice.$name.expandObjectName
Typebool
Required
Helm tpl
Defaulttrue

Example

service:
service-name:
expandObjectName: false

clusterIP

Configure Cluster IP type

Keyservice.$name.clusterIP
Typestring
Required
Helm tpl
Default""

Example

service:
some-service:
clusterIP: 172.16.0.123

ipFamilyPolicy

Define the ipFamilyPolicy

Does not apply to type of ExternalName or ExternalIP

Keyservice.$name.ipFamilyPolicy
Typestring
Required
Helm tpl
Default""

Valid Values:

  • SingleStack
  • PreferDualStack
  • RequireDualStack

Example

service:
some-service:
ipFamilyPolicy: SingleStack

ipFamilies

Define the ipFamilies

Does not apply to type of ExternalName or ExternalIP

Keyservice.$name.ipFamilies
Typelist of string
Required
Helm tpl✅ (On entries only)
Default[]

Example

service:
some-service:
ipFamilies:
- IPv4

sessionAffinity

Define the session affinity (ClientIP, None)

Keyservice.$name.sessionAffinity
Typestring
Required
Helm tpl
Default""

Valid Values:

  • ClientIP
  • None

Example

service:
some-service:
sessionAffinity: ClientIP

sessionAffinityConfig.clientIP.timeoutSeconds

Define the timeout for ClientIP session affinity (0-86400)

Keyservice.$name.sessionAffinityConfig.clientIP.timeoutSeconds
Typeint
Required
Helm tpl
Default""

Valid Values:

  • 0 - 86400

Example

service:
some-service:
sessionAffinityConfig:
clientIP:
timeoutSeconds: 86400

externalIPs

Define externalIPs

Keyservice.$name.externalIPs
Typelist of string
Required
Helm tpl✅ (On entries only)
Default[]

Example

service:
some-service:
externalIPs:
- 1.2.3.4
- 5.6.7.8

externalTrafficPolicy

Define the external traffic policy (Cluster, Local)

Does not apply to type of ClusterIP

Keyservice.$name.externalTrafficPolicy
Typestring
Required
Helm tpl
Default""

Valid Values:

  • Cluster
  • Local

Example

service:
some-service:
externalTrafficPolicy: Cluster

publishNotReadyAddresses

Define whether to publishNotReadyAddresses or not

Keyservice.$name.publishNotReadyAddresses
Typebool
Required
Helm tpl
Defaultfalse

Example

service:
service-name:
publishNotReadyAddresses: true

targetSelector

Define the pod to link the service, by default will use the primary pod

Keyservice.$name.targetSelector
Typestring
Required
Helm tpl
Default""

Example

service:
service-name:
targetSelector: some-pod

ports

Define the ports of the service

See Ports

Keyservice.$name.ports
Typemap
Required
Helm tpl
Default{}

Example

service:
service-name:
ports: {}

Full Examples

Full examples can be found under each service type