Advanced Service Configuration
The serviceSpec
section is an optional section that provides advanced configuration controls over the services that are allocated to handle DDL and DML queries.
In addition to objectMetaOverrides
, you can specify the following options in this section:
-
type
determines how the service is exposed.Valid options are ClusterIP
,NodePort
, orLoadBalancer
.Default is LoadBalancer
. -
loadBalancerIP
is the IP address of the load balancer if you need to manage it. -
loadBalancerSourceRanges
specifies the list of CIDR blocks to add to the load balancer. -
externalTrafficPolicy
specifies if the service routes external network traffic to either node-local or cluster-wide endpoints.Valid options are Local
orCluster
.Default is Cluster
. -
headless
specifies whether the service is a headless service or not.A headless service keeps track of its selected pods, but otherwise does not enable any network functionality.
If you need to specify these values, add the following section to the sdb-cluster.
file as shown below.
serviceSpec:type: "LoadBalancer"loadBalancerIP: "1.2.3.4"loadBalancerSourceRanges: [ "0.0.0.0/0" ]externalTrafficPolicy: "Cluster"headless: falseobjectMetaOverrides:labels:custom: labelannotations:custom: annotations
Refer to the Kubernetes documentation for more information about these attributes.
By default, the nodes are assigned public IPs.
As of Operator 1.disableDDLAndDMLService
field to true in serviceSpec
.serviceSpec
, will not create new services, and will delete those services that were already created.
serviceSpec:disableDDLAndDMLService: true
Last modified: February 21, 2023