Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
Configure Host Aliases and Pod DNS
On this page
Configure hostAliases and dnsConfig in the Master Aggregator (MA), child aggregator, and leaf node specifications of the sdb-cluster. file.
Use these fields to configure static hostname mappings or additional DNS settings for the Kubernetes pods that run the SingleStore engine.
Configure Host Aliases
The hostAliases field adds static hostname mappings to /etc/hosts in the Kubernetes pod that runs the corresponding SingleStore engine node.
spec:masterAggregatorSpec:hostAliases:- ip: 10.1.2.3hostnames:- broker-1.internal- broker-2.internal
Configure Pod DNS
The dnsConfig field configures DNS settings for the Kubernetes pods that run the corresponding type of SingleStore engine node.nameservers, searches, and options.
spec:leafSpec:dnsConfig:nameservers:- 1.1.1.1searches:- corp.exampleoptions:- name: ndotsvalue: "2"
For Kubernetes pods running SingleStore engine nodes, the Operator sets the DNS policy to ClusterFirst.dnsPolicy in the MemsqlCluster custom resource.dnsConfig; if you omit dnsConfig, it leaves the pod’s DNS configuration unchanged.
Configure Fields for Each Node Type
Configure hostAliases and dnsConfig under the corresponding node specification: masterAggregatorSpec, childAggregatorSpec, or leafSpec.
apiVersion: memsql.com/v1alpha1kind: MemsqlClustermetadata:name: sdb-clusterspec:masterAggregatorSpec:hostAliases:- ip: 10.1.2.3hostnames:- broker-1.internalchildAggregatorSpec:dnsConfig:searches:- aggregator.corp.exampleleafSpec:hostAliases:- ip: 10.1.2.4hostnames:- broker-2.internaldnsConfig:searches:- leaf.corp.example
Apply the updated object definition file:
kubectl apply -f sdb-cluster.yaml
Last modified: