Prerequisites:
Preparation steps for deployment:
Deployment of DataLab starts from GKE cluster creating.
To build GKE cluster with DataLab, following steps should be executed:
sudo su apt-get update wget https://releases.hashicorp.com/terraform/0.12.3/terraform_0.12.3_linux_amd64.zip apt-get install unzip unzip terraform_0.12.3_linux_amd64.zip chmod +x terraform mv terraform /usr/local/bin/ apt-get install jq snap install kubectl --classic mkdir /home/ubuntu/datalab-state git clone https://github.com/apache/incubator-datalab.git cd incubator-datalab/infrastructure-provisioning/terraform/gcp/ssn-gke/main/ git checkout develop terraform init
terraform apply -auto-approve -target=module.gke_cluster -state /home/ubuntu/datalab-state/terraform.tfstate -var credentials_file_path=/path/to/auth/file.json -var project_id=project_id -var service_base_name=datalab-xxxx -var region=xx-xxxxx -var zone=xxx-xxxxx-x -var big_query_dataset=test -var domain=k8s-gcp.domain.com
terraform apply -auto-approve -target=module.helm_charts -state /home/ubuntu/datalab-state/terraform.tfstate -var credentials_file_path=/path/to/auth/file.json -var project_id=project_id -var service_base_name=datalab-xxxx -var region=xx-xxxxx -var zone=xxx-xxxxx-x -var big_query_dataset=test -var domain=k8s-gcp.domain.com
List of parameters for GKE cluster creation and Helm Charts deployment:
Parameter | Description/Value |
---|---|
conf_service_base_name | Any infrastructure value (should be unique) |
gcp_region | GCP region |
gcp_zone | GCP zone |
gcp_service_account_path | Full path to auth json file |
gcp_project_id | ID of GCP project |
big_query_dataset | Name of GCP billing dataset (BigQuery service) |
domain | Domain name |
After successful Helm Charts deployment You will get direct link to Keycloak admin panel, as well as username and password for it. You have to login Keycloak admin panel and create user for DataLab. After that You will be able to login into DataLab UI.
To proceed with DataLab resources creation Endpoint should be created and added in DataLab UI.
To create Endpoint following steps should be executed: