This document explains how to create a Helm configuration for Spanner Omni on Kubernetes.
Overview
You configure Helm charts for Spanner Omni deployments on Kubernetes.
Review the available configuration options to customize your deployment. The
Helm template includes a global.platform property, which sets default values
for key settings like StorageClass and service annotations based on your
chosen platform.
Understand how the Helm chart applies platform-specific default values for Google Kubernetes Engine (GKE), Amazon Elastic Kubernetes Service (Amazon EKS), and Azure Kubernetes Service (AKS). These defaults cover configurations such as storage classes, data locations, and service annotations. Customize these settings to align with your specific deployment requirements for each platform.
Before you begin
If you haven't done so already, install Helm.
Prepare a Helm chart configuration
To create a Helm chart configuration, do the following:
Use the
helm show valuescommand to review the configuration options available for creating a deployment:helm show values oci://us-docker.pkg.dev/spanner-omni/charts/spanner-omni --version 2.0.0The documentation for creating a deployment uses the
--setflag to specify various options. You can also specify these options in a YAML file and use the-fflag in thehelmcommand. For ease of deployment, the Helm template includes theglobal.platformproperty, which determines the default values for theStorageClass, service annotations, and other settings based on the platform.The following table summarizes the platform-specific default values for GKE, Amazon EKS, and AKS:
| Property | Default | Platform | ||
|---|---|---|---|---|
| GKE | Amazon EKS | AKS | ||
createStorageClasses |
false |
false |
true |
true |
storageClasses |
- name: my_scprovisioner: kubernetes.io/no-provisionervolumeBindingMode: WaitForFirstConsumer |
- name: hyperdisk-balanced-rwoprovisioner: pd.csi.storage.gke.ioparameters: type: hyperdisk-balanced |
- name: aws-gp3provisioner: ebs.csi.aws.comparameters: type: gp3- name: aws-standardprovisioner: ebs.csi.aws.comparameters: type: standard |
- name: azure-premium-lrsprovisioner: disk.csi.azure.comparameters: skuName: Premium_LRS- name: azure-standard-lrsprovisioner: disk.csi.azure.comparameters: skuName: Standard_LRS |
locations |
- name: usnamespace: ""zones:- name: "us-a"shortName: "a"replicas: 1rootServers: 1singleServer: truereplicaType: "READ_WRITE"- name: "us-b"shortName: "b"- name: "us-c"shortName: "c" |
- name: us-east1zones:- name: us-east1-bshortName: a- name: us-east1-cshortName: b- name: us-east1-dshortName: c |
- name: us-east-1zones:- name: us-east-1ashortName: a- name: us-east-1cshortName: b- name: us-east-1dshortName: c |
- name: centraluszones:- name: centralus-1shortName: "a"- name: centralus-2shortName: "b"- name: centralus-3shortName: "c" |
dataStorageClass |
<default> |
premium-rwo |
aws-gp3 |
azure-premium-lrs |
logsStorageClass |
<default> |
standard-rwo |
aws-standard |
azure-standard-lrs |
serviceAnnotations |
{} |
networking.gke.io/load-balancer-type: "Internal"networking.gke.io/internal-load-balancer-allow-global-access: "true" |
service.beta.kubernetes.io/aws-load-balancer-internal: "true"service.beta.kubernetes.io/aws-load-balancer-type: "nlb"service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip"service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true" |
service.beta.kubernetes.io/azure-load-balancer-internal: "true"service.beta.kubernetes.io/azure-load-balancer-sku: "Standard" |
When you work with these platform-specific defaults, keep the following in mind:
When
createStorageClassesistrue, the Helm chart creates the cluster-scopedStorageClassobjects listed instorageClasses. On Amazon EKS and AKS, creating these objects requires permission to create cluster-scopedStorageClassobjects. To install a second release in a cluster that already has these storage classes, pass the--set createStorageClasses=falseflag.To override any of these properties, pass them at the top level—for example,
--set dataStorageClass=STORAGE_CLASS. Don't nest them underdefaults, even thoughhelm show valueslists them under thedefaultskey.When the
monitoring.enabledproperty istrue, the monitoring subchart applies its own platform default for themonitoring.defaultStorageClassproperty:premium-rwoon GKE,aws-gp3on Amazon EKS, andazure-premium-lrson AKS. This value doesn't follow a top-leveldataStorageClassoverride. If you overridedataStorageClass—for example, alongside the--set createStorageClasses=falseflag—also pass the--set monitoring.defaultStorageClass=STORAGE_CLASSflag.
The number of root servers per zone must be an odd number between one and nine, inclusive, to ensure quorum for consistency. If the number of servers is an even number, deployments might fail. When configuring your zones, designate servers as root servers. We recommend that you use one for development or testing and three for highly available production zones.
What's next
Learn how to use a Helm chart to create a multi-cluster deployment on Kubernetes for Spanner Omni.
Learn how to use a Helm chart to create a deployment on Kubernetes for Spanner Omni.