Installing YugabyteDB on GKE with Helm 31. © 2020 All Rights Reserved
Jimmy Guerrero
VP Marketing & Community
Getting Started with
YugabyteDB on GKE
with Helm 3
2. © 2020 All Rights Reserved
What is YugabyteDB?
Open source, high-performance distributed SQL database built on a scalable
and fault-tolerant design inspired by Google Spanner.
PostgreSQL wire compatible.
Support for advanced RDBMS features like triggers, stored procedures, UDFs,
and more.
3. © 2020 All Rights Reserved
● Prerequisites
● Add the yugabytedb charts repository
● Fetch updates
● Validate the chart version
● Create the yb-demo namespace
● Install yugabytedb
● Check cluster status
● Explore the YSQL shell
● Connect external clients
Demonstration
3
4. © 2020 All Rights Reserved
Prerequisites
● Cluster running on GKE
● Configuration: N1 (4vCPU), 3 nodes, auto scaling 1 to 24, HTTPS enabled
5. © 2020 All Rights Reserved
Check Helm version
$ helm version
6. © 2020 All Rights Reserved
Add the yugabytedb charts
repository
$ helm repo add yugabytedb https://charts.yugabyte.com
7. © 2020 All Rights Reserved
Fetch updates
$ helm repo update
8. © 2020 All Rights Reserved
Validate the chart version
$ helm search repo yugabytedb/yugabyte
9. © 2020 All Rights Reserved
Create namespace
$ kubectl create namespace yb-demo
10. © 2020 All Rights Reserved
Install YugabyteDB
$ helm install yb-demo yugabytedb/yugabyte --namespace yb-demo --wait
For resource constrained environments...
$ helm install yb-demo yugabytedb/yugabyte
--set resource.master.requests.cpu=1,resource.master.requests.memory=1Gi,
resource.tserver.requests.cpu=1,resource.tserver.requests.memory=1Gi,
enableLoadBalancer=True --namespace yb-demo
11. © 2020 All Rights Reserved
Check the cluster status
$ helm status yb-demo -n yb-demo
12. © 2020 All Rights Reserved
Explore YSQL
$ kubectl exec -n yb-demo -it yb-tserver-0 -- ysqlsh -h
yb-tserver-0.yb-tservers.yb-demo
13. © 2020 All Rights Reserved
Connect external clients and tools
$ kubectl get services --namespace yb-demo
14. © 2020 All Rights Reserved
More info
docs.yugabyte.com/latest/deploy/kubernetes/single-zone/gke/helm-chart/
15. © 2020 All Rights Reserved
Join us on Slack:
yugabyte.com/slack
Star us on GitHub:
github.com/yugabyte/yugabyte-db
Thank You