Presto Helm Charts¶
Use Helm to Deply a Presto Cluster¶
The Presto community also provides the helm chart to install Presto cluster on a Kubernetes cluster. Here is how you can leverage it to create a Presto cluster containing the same settings for this workshop.
Prerequisite¶
In order to use Presto helm chart, make sure the following tools are available
Optional: Create a kind Cluster¶
Use the following command to create a kind cluster named presto
:
Instructions¶
-
Add the Presto Helm Chart Repository:
Helm chart repository is a location where packaged charts can be stored and shared. Use the following command to add Presto charts repository to Helm client configuration:
List the latest stable versions of available Helm charts with the command: Sample outputs: -
Create a namespace for the Presto cluster
Use a dedicate namespace to deploy the Presto cluster. In this case, the namespace is called
presto
-
To avoid Docker hub rate limitation, create a default Docker image pull secret based on your docker config. Make sure the docker config file exist by running the following command:
Create the secret using the docker config file: Make the secret as the default secret for pulling image: -
Deploy MongoDB and MySQL
-
Populate the Data into MongoDB and MySQL
-
Install a Presto Chart
Install a Presto Helm chart and it will provision a Presto cluster using the settings from the
See the refernece of the values.yml herehelm/values.yaml
Wait for a while for the Presto pods, including coordinator and workers, to be ready:
The configuration would bring up 1 coordinator and 3 workers pods.NAME READY STATUS RESTARTS AGE presto-coordinator-68dff7c554-9dxbw 1/1 Running 0 20h presto-mongo-846c4ff7c5-j5thm 1/1 Running 0 20h presto-mysql-765d566f59-jtqtg 1/1 Running 0 20h presto-worker-9f99c6d69-d4djp 1/1 Running 0 20h presto-worker-9f99c6d69-hnxqx 1/1 Running 0 20h presto-worker-9f99c6d69-thslm 1/1 Running 0 20h
-
Access the Presto UI
Run the following command to port-forward the port
Then you can access the Presto UI at8080
of thepresto
service:http://localhost:808