Skip to content

Instantly share code, notes, and snippets.

@naren-dremio
Last active October 8, 2018 19:05
Show Gist options
  • Save naren-dremio/b7ada8593066873b8084d5f5ecb54880 to your computer and use it in GitHub Desktop.
Save naren-dremio/b7ada8593066873b8084d5f5ecb54880 to your computer and use it in GitHub Desktop.
Dremio on GKE
# Create a GKE cluster. Replace the options as necessary. Use Google Cloud Shell for easy deployment. Preemtible instances lowers the cost by a lot and ideal for testing.
gcloud beta container --project "naren-dremio" clusters create "dremio" --zone "us-east1-b" --username "admin" --cluster-version "1.9.7-gke.6" --machine-type "n1-standard-4" --image-type "COS" --disk-type "pd-standard" --disk-size "100" --scopes "https://www.googleapis.com/auth/cloud-platform" --num-nodes "2" --enable-cloud-logging --enable-cloud-monitoring --network "projects/naren-dremio/global/networks/default" --subnetwork "projects/naren-dremio/regions/us-east1/subnetworks/default" --addons HorizontalPodAutoscaling,HttpLoadBalancing,KubernetesDashboard --no-enable-autoupgrade --enable-autorepair --preemptible
# Get credentials for the cluster
gcloud container clusters get-credentials dremio --zone=us-east1-b
# Install helm
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.11.0-linux-amd64.tar.gz
tar xvf helm-v2.11.0-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/helm
# Create service for helm and init it
kubectl apply -f https://gist.githubusercontent.com/maniankara/49353225b94961f9a2d484a9b7055024/raw/1aa7401484a5e94cbe4af7de59c0748739eb75b3/create-helm-service-account.yaml
helm init --service-account helm
# get dremio charts and deploy dremio
# I modified the values to deploy it on smaller clusters for quick testing + a fix for zookeeper issue
git clone https://github.com/naren-dremio/containers.git
cd charts
helm install --wait dremio
@naren-dremio
Copy link
Author

screen shot 2018-10-08 at 3 02 37 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment