Setup for Access Management for Trino¶
Configure¶
Perform following steps to configure Trino plugin:
-
SSH into the instance where Privacera Manager is installed.
-
Run the following command to navigate to the /config directory and copy yml files:
- Modify the following properties:
- In the
vars.trino.opensource.yml
file, update the following properties with the appropriate values:
- In the
-
Once the properties are configured, run Privacera Manager post-install action. Refer to this guide
-
Copy privacera_trino_setup.sh and privacera_trino_plugin_conf.zip to the same location as the Dockerfile.
Create entrypoint.sh script¶
-
Run the following command to create and edit entrypoint.sh file:
-
Add the following content in the entrypoint.sh file:
Create Dockerfile¶
- Note : Create the file in the same location as the entrypoint.sh script.
- Run the following command to create and edit the Dockerfile:
- Add the following content in the Dockerfile:
Enable Trino Application¶
- In PrivaceraCloud, navigate to Settings -> Applications.
- On the Applications screen, select Trino.
- Enter the application Name and Click Save. You can choose any name, for example,
Trino
. - Enable the Access Management option with toggle button.
- Click on Save button.
Create entrypoint.sh script¶
-
Run the following command to create and edit entrypoint.sh file:
-
Add the following content in the entrypoint.sh file:
Create Dockerfile¶
- Note : Create at the same location as the entrypoint.sh script.
- Run the following command to create and edit Dockerfile:
-
To obtain the
PCLOUD_PLUGIN_SCRIPT_URL
, log in to PrivaceraCloud and navigate to Settings -> API Keys Click on the info ℹ️ icon, and you will see the option to copy the Plugins Setup Script URL. -
Add the following content in the Dockerfile:
Build the Docker image¶
- Run the following command to build the Docker image:
Bash
Push the Docker image to the remote HUB¶
- Please use your internal HUB to publish the image.
Create a namespace¶
- Run the following command to create a namespace.
Bash
Create docker image secret:¶
- To create an image secret, please use and run the command according to your requirements.
Add the Trino Helm chart repository¶
- Run the following command to add the Trino Helm chart repository:
Bash
Create .yaml deployment file to override the default values¶
-
Run the following command to create and edit the values.yaml file:
-
Add the following content in the values.yaml file:
Install Trino on kubernetes cluster¶
- Run the following command to install Trino on the Kubernetes cluster:
Bash
- Prev topic: Access Management
- Next topic: Advanced Configuration