Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 2.13 KB

File metadata and controls

76 lines (55 loc) · 2.13 KB

Deploying ScyllaDB on GKE

This is a quickstart guide to help you set up a basic GKE cluster quickly with local NVMes and solid performance.

This is by no means a complete guide, and you should always consult your Kubernetes provider's documentation.

Creating a GKE cluster

First, we need to create a kubelet config to configure static CPU policy :::{code} bash :number-lines:

cat > systemconfig.yaml <<EOF kubeletConfig: cpuManagerPolicy: static EOF :::

Then we'll create a GKE cluster with the following:

:::{code} bash

gcloud container
clusters create 'my-k8s-cluster'
--zone='us-central1'
--cluster-version="latest"
--machine-type='n2-standard-8'
--num-nodes='2'
--disk-type='pd-ssd' --disk-size='20'
--image-type='UBUNTU_CONTAINERD'
--enable-stackdriver-kubernetes
--no-enable-autoupgrade
--no-enable-autorepair :::

and then we'll create a dedicated pool with NVMes for ScyllaDB

:::{code} bash

gcloud container
node-pools create 'scyllaclusters'
--zone='us-central1'
--cluster='my-k8s-cluster'
--node-version="latest"
--machine-type='n2-standard-16'
--num-nodes='4'
--disk-type='pd-ssd' --disk-size='20'
--local-nvme-ssd-block='count=4'
--image-type='UBUNTU_CONTAINERD'
--system-config-from-file='systemconfig.yaml'
--no-enable-autoupgrade
--no-enable-autorepair
--node-labels='scylla.scylladb.com/node-type=scylla'
--node-taints='scylla-operator.scylladb.com/dedicated=scyllaclusters:NoSchedule' :::

Deploying {{productName}}

To deploy {{productName}} follow the installation guide.

Creating ScyllaDB

To deploy a ScyllaDB cluster please head to our dedicated section on the topic.

Accessing ScyllaDB

We also have a whole section dedicated to how you can access teh ScyllaDB cluster you've just created.

Deleting a GKE cluster

Once you are done with your experiments you can delete your cluster using the following command: :::{code} gcloud container clusters delete --zone='us-central1' 'my-k8s-cluster' :::