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:
- Update the
vars.trino.opensource.ymlfile as follows:
- Update the
-
After configuring the properties, start the connector by executing the following instructions:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - (Optional) Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on. This step is not required if you are updating only connector properties. -
Copy
privacera_trino_setup.shandprivacera_trino_plugin_conf.zipto the same location as the Dockerfile. -
Edit
privacera_trino_setup.shfile to comment outwgetand addcurlcommand as shown below:
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¶
Create the file in the same directory 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¶
Create the file in the same location as the entrypoint.sh script.
-
Run the following command to create and edit Dockerfile:
-
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¶
- Use your internal HUB to publish the image.
Create a Namespace¶
- Run the following command to create a namespace.
Bash
Create Kubernetes secret¶
Applicable for PCloud based Trino deployment only
- Obtain the
PCLOUD_PLUGIN_SCRIPT_URLfrom PrivaceraCloud → Settings → API Keys (click the ℹ️ icon to copy the Plugin Setup Script URL). - Create a Kubernetes secret for the Privacera plugin setup script URL. Run the following command:
Create Docker Image Secret¶
- To create an image secret, 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 to the values.yaml file based on deployment environment:
Install Trino on Kubernetes Cluster¶
- Run the following command to install Trino on the Kubernetes cluster:
Bash
- Prev topic: Connector Guide
- Next topic: Advanced Configuration