Create a Helm chart configuration for Spanner Omni

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:

  1. Use the helm show values command 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.0
    

    The documentation for creating a deployment uses the --set flag to specify various options. You can also specify these options in a YAML file and use the -f flag in the helm command. For ease of deployment, the Helm template includes the global.platform property, which determines the default values for the StorageClass, service annotations, and other settings based on the platform.

  2. 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_sc
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
- name: hyperdisk-balanced-rwo
provisioner: pd.csi.storage.gke.io
parameters:
  type: hyperdisk-balanced
- name: aws-gp3
provisioner: ebs.csi.aws.com
parameters:
  type: gp3
- name: aws-standard
provisioner: ebs.csi.aws.com
parameters:
  type: standard
- name: azure-premium-lrs
provisioner: disk.csi.azure.com
parameters:
  skuName: Premium_LRS
- name: azure-standard-lrs
provisioner: disk.csi.azure.com
parameters:
  skuName: Standard_LRS
locations - name: us
namespace: ""
zones:
- name: "us-a"
shortName: "a"
replicas: 1
rootServers: 1
singleServer: true
replicaType: "READ_WRITE"
- name: "us-b"
shortName: "b"
- name: "us-c"
shortName: "c"
- name: us-east1
zones:
- name: us-east1-b
shortName: a
- name: us-east1-c
shortName: b
- name: us-east1-d
shortName: c
- name: us-east-1
zones:
- name: us-east-1a
shortName: a
- name: us-east-1c
shortName: b
- name: us-east-1d
shortName: c
- name: centralus
zones:
- name: centralus-1
shortName: "a"
- name: centralus-2
shortName: "b"
- name: centralus-3
shortName: "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 createStorageClasses is true, the Helm chart creates the cluster-scoped StorageClass objects listed in storageClasses. On Amazon EKS and AKS, creating these objects requires permission to create cluster-scoped StorageClass objects. To install a second release in a cluster that already has these storage classes, pass the --set createStorageClasses=false flag.

  • To override any of these properties, pass them at the top level—for example, --set dataStorageClass=STORAGE_CLASS. Don't nest them under defaults, even though helm show values lists them under the defaults key.

  • When the monitoring.enabled property is true, the monitoring subchart applies its own platform default for the monitoring.defaultStorageClass property: premium-rwo on GKE, aws-gp3 on Amazon EKS, and azure-premium-lrs on AKS. This value doesn't follow a top-level dataStorageClass override. If you override dataStorageClass—for example, alongside the --set createStorageClasses=false flag—also pass the --set monitoring.defaultStorageClass=STORAGE_CLASS flag.

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