The platform's access policies,
managed in one place.
Five common scenarios, from the first installation to the connection with the other components. Each one covers: what the chart already provides, what changes in the cluster, the values file commented line by line, and a step-by-step with verification.
The tdp-ranger chart deploys Apache Ranger in the namespace: Ranger Admin, with the interface and the REST API where the access services and policies live, the Solr that receives the audit, and, by default, an embedded PostgreSQL for the Ranger database. The Kafka, NiFi, and Trino plugins query these policies. For the policy model, see Ranger - Concepts.
Your environment
If you fill in your environment details here, the examples and commands on the page use the values you provided. The namespace, the release name, and the values file are your choices, not the chart's.
Scenarios
- 1 · First contact
- 2 · External database
- 3 · Publish at a URL
- 4 · Passwords and login
- 5 · Protect other components
Install with the defaults, wait for the first startup, and sign in to the interface.
You want Ranger in the cluster to start centralizing the access policies. With the defaults, the chart brings up Ranger Admin, the server with the interface and the REST API where the services and policies live; Solr, which receives the audit records; and an embedded PostgreSQL, with the Ranger database. All of it is in the release namespace, and the interface is reachable only from inside the cluster. The administration user and the database user come with temporary passwords, which you change before any real use.
Ranger Admin, behind the ClusterIP Service <RELEASE_NAME>-ranger; Solr, with a persistent volume; and the embedded PostgreSQL, with the Ranger database.
Temporary, in ranger.adminPassword (interface admin user) and ranger.dbPassword (database ranger user). How to change them is in scenario 4.
A valid TDP license, the tdp-registry pull Secret in the release namespace, and a StorageClass for the persistent volumes.
The same command works: the chart detects OpenShift and grants the anyuid SCC to the Ranger ServiceAccount.
What comes up in the namespace with the chart defaults
- Who administers. Without external exposure, each person opens a tunnel from their own machine to the Service with kubectl port-forward and uses the interface in the browser. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Embedded PostgreSQL. The ranger database, in the same release. The password of the ranger user is the one in ranger.dbPassword, which also applies to the root and hive roles of this database. Chart default:
on. (tdp-ranger.postgres.enabled)
Check the TDP license
The chart requires a valid TDP license installed in the cluster.
kubectl get platformlicenses -A
It worked when
tdp-license chart, as in Licensing Configuration.Create the pull Secret in the namespace
The Ranger images come from the Tecnisys registry, which requires login.
kubectl -n <NAMESPACE> create secret docker-registry tdp-registry \
--docker-server=registry.tecnisys.com.br \
--docker-username=<REGISTRY_USERNAME> --docker-password=<REGISTRY_CLI_SECRET>
The user and the token are your registry ones. How to obtain them is in Prerequisites. The Secret must exist in the namespace before the installation: if the namespace does not exist, create it before the Secret, with kubectl create namespace <NAMESPACE>.
It worked when
kubectl -n <NAMESPACE> get secret tdp-registry
Install the chart
Without a values file, the chart comes up exactly as in the figure above.
helm install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace --timeout 10m
Without --version, Helm installs the latest published version of the chart. The version of this documentation is 3.0.3.
It worked when
kubectl -n <NAMESPACE> get pods
The Ranger Admin, Solr, Solr ZooKeeper, and PostgreSQL pods reach Running. On the first startup, Ranger Admin imports the database schema and stays at 0/1 until the API responds: this is expected. The Helm output shows how to access the interface and the login user.
If the installation is refused or the pods do not start
A refusal with license check failed is the license; ImagePullBackOff is the pull Secret. Both are in When something goes wrong, with the command that shows the namespace events.
On OpenShift, check the SCCOpcional
Ranger Admin needs the anyuid SCC, granted by the chart itself.
oc get rolebinding -n <NAMESPACE> | grep anyuid
oc describe rolebinding <RELEASE_NAME>-openshift-anyuid-scc -n <NAMESPACE>
It worked when
<RELEASE_NAME>-openshift-anyuid-scc appears, bound to the Ranger ServiceAccount.If the RoleBinding does not exist
The chart grants the SCC when it sees the cluster security.openshift.io/v1 API. When it is rendered without seeing the cluster APIs, add --set tdp-ranger.openshift.enabled=true to the installation command.
Open the interface
A tunnel from your machine to the Ranger Admin Service.
The Ranger Admin Service is of the ClusterIP type. This command shows the type and the port:
kubectl -n <NAMESPACE> get svc <RELEASE_NAME>-ranger
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-ranger 6080:6080
# then open http://localhost:6080 in the browser
It worked when
The Ranger login screen opens and accepts the admin user with the password from ranger.adminPassword. The release notes repeat the user and where the password comes from:
helm get notes <RELEASE_NAME> -n <NAMESPACE>
Before any real use, change the temporary passwords, as in Security - Ranger.
The Ranger database in a shared PostgreSQL, created by a chart Job.
Ranger Admin stores the services, policies, and users in a PostgreSQL database. By default, the chart brings up this database embedded, in the same release, and there is nothing to configure. You only need to change it when the database must live in an external PostgreSQL.
In a shared environment, you want the Ranger database in an external PostgreSQL, such as the one from the tdp-postgresql chart, and not in the embedded one. You turn off the embedded PostgreSQL, point to the address of the external one, and turn on the chart database Job: before the installation and before each update, it creates the Ranger database and user in the external PostgreSQL and writes the credentials to the Secret <RELEASE_NAME>-ranger-database.
Embedded PostgreSQL on and TDP-Settings.externalDatabase.enabled: false. The database name is always ranger.
The external PostgreSQL reachable from the namespace and the Secret with its administration password (postgres-password key) in the Ranger namespace. The tdp-postgresql chart creates this Secret with the name tdp-postgresql-auth.
What changes in the namespace with each database
Where the Ranger database lives
- Who administers. Without external exposure, each person opens a tunnel from their own machine to the Service with kubectl port-forward and uses the interface in the browser. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Embedded PostgreSQL. The ranger database, in the same release. The password of the ranger user is the one in ranger.dbPassword, which also applies to the root and hive roles of this database. Chart default:
on. (tdp-ranger.postgres.enabled)
Where the Ranger database lives: Embedded PostgreSQL (default)
- Who administers. Without external exposure, each person opens a tunnel from their own machine to the Service with kubectl port-forward and uses the interface in the browser. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Embedded PostgreSQL. The ranger database, in the same release. The password of the ranger user is the one in ranger.dbPassword, which also applies to the root and hive roles of this database. Chart default:
on. (tdp-ranger.postgres.enabled)
Where the Ranger database lives: External PostgreSQL
- Who administers. Without external exposure, each person opens a tunnel from their own machine to the Service with kubectl port-forward and uses the interface in the browser. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Database creation Job. Before the installation and before each update, it creates the Ranger database and user in the external PostgreSQL and writes the credentials to the Secret <RELEASE_NAME>-ranger-database. Chart default:
off. (TDP-Settings.externalDatabase.enabled) - PostgreSQL administration password. Read by the database Job, from the postgres-password key, in the Ranger namespace. Chart default:
tdp-postgresql-auth. (TDP-Settings.externalDatabase.externalSecret.releaseName) - External PostgreSQL. The ranger database lives in a PostgreSQL outside the release, such as the one from the tdp-postgresql chart. The address comes from ranger.database.host. Chart default:
embedded PostgreSQL. (tdp-ranger.ranger.database.host)
Embedded PostgreSQL. Nothing to configure: the database comes up in the same release, with the ranger user and the password from ranger.dbPassword, which is also the password of the root and hive roles of this database. Embedded PostgreSQL: Best suited when the Ranger database does not need to live in a shared PostgreSQL. This is the default.
To change the database password, see Security - Ranger.
External PostgreSQL. The ranger database lives in a PostgreSQL outside the release, and a chart Job creates the database and the user in it. External PostgreSQL: Best suited when the environment is shared and already has a PostgreSQL, such as the one from the tdp-postgresql chart, to hold the Ranger database.
The database Job is only created with the two keys together: the embedded one turned off and TDP-Settings.externalDatabase.enabled: true. The TDP-Settings block goes at the root of the values file, outside the chart prefix.
1tdp-ranger:2postgres:3 enabled: false4ranger:5 database:6 host: "<POSTGRESQL_SERVICE>.<SHARED_NAMESPACE>.svc.cluster.local"7 port: 543289TDP-Settings:10externalDatabase:11 enabled: true12 recreate: false13 externalSecret:14 releaseName: "tdp-postgresql-auth"
The release stops creating its own PostgreSQL.
- Embedded off (linha 3). The release stops creating its own PostgreSQL.
- Address (linha 6). The Service of the external PostgreSQL and its namespace. Ranger and the database Job use this address.
- Database Job (linha 11). Turns on the Job that, before the installation and before each update, creates the ranger database and the ranger.dbUser user. The user password is the one in ranger.dbPassword. If empty, the Job generates one.
- recreate (linha 12). Stays false in a real installation. With true, the Job deletes the Ranger database and user on every installation and update, and all the policies are lost.
- Admin Secret (linha 14). The Secret with the PostgreSQL administration password, in the postgres-password key. The Job reads it in the Ranger namespace.
recreate: true in a real installationThe Job runs on every installation and update. With TDP-Settings.externalDatabase.recreate: true, it deletes the Ranger database and user before recreating them: all the policies are lost. It serves only for disposable environments.
Check the admin Secret in the Ranger namespace
The Job reads the PostgreSQL administration password from this Secret.
kubectl -n <NAMESPACE> get secret tdp-postgresql-auth
If the Secret does not exist in the Ranger namespace
The Secret must be in the same namespace as Ranger, with the PostgreSQL administration password in the postgres-password key. If yours has another name, set it in TDP-Settings.externalDatabase.externalSecret.releaseName.
Install or update with the values file
The database Job runs before the installation.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
It worked when
kubectl -n <NAMESPACE> get secret <RELEASE_NAME>-ranger-database
kubectl -n <NAMESPACE> get pods
The credentials Secret exists and Ranger Admin reaches Running, with no embedded PostgreSQL pod. The database Job is removed when it completes.
If the database Job fails
When it fails, the Job stays in the namespace with its log:
kubectl -n <NAMESPACE> get job <RELEASE_NAME>-create-ranger-db
kubectl -n <NAMESPACE> logs job/<RELEASE_NAME>-create-ranger-db
After fixing the cause (admin Secret, PostgreSQL address, or password), run the same helm upgrade --install again. It replaces the Job that failed, without you having to delete it by hand.
Ingress, Route on OpenShift, or Gateway API for the Ranger Admin interface.
So far, the Ranger interface only opens by port-forward. You want administrators and auditors to reach it through a hostname. The chart publishes Ranger Admin through Ingress or through Gateway API, one or the other: the two cannot be on at the same time. The choice lives in TDP-Settings.gateway, at the root of the values file.
Ingress and Gateway API off: only the ClusterIP Service <RELEASE_NAME>-ranger, accessed by port-forward.
An Ingress controller, or a Gateway API implementation, in the cluster, and the hostname resolving to it.
With Ingress, the chart creates an Ingress with your hostname and the class of your controller. In the check, the hostname must resolve to the external IP of the Ingress controller, and the release notes show how to obtain it. With port-forward or Gateway API, the choice does not change what you configure.
With Ingress, the OpenShift router publishes the chart Ingress as a Route, and in the figure the resource appears as Route. The hostname is in the cluster apps domain, such as ranger-<NAMESPACE>.apps.<CLUSTER_DOMAIN>, and in the check you confirm it with kubectl get route. The figure also shows the anyuid SCC, which the chart grants to the Ranger ServiceAccount (scenario 1). With port-forward or Gateway API, the choice does not change what you configure.
How the team reaches Ranger
How the interface is reached
- Who administers. Administrators and auditors open the Ranger Admin interface at the published hostname. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Embedded PostgreSQL. The ranger database, in the same release. The password of the ranger user is the one in ranger.dbPassword, which also applies to the root and hive roles of this database. Chart default:
on. (tdp-ranger.postgres.enabled)
How the interface is reached: port-forward (default)
- Who administers. Without external exposure, each person opens a tunnel from their own machine to the Service with kubectl port-forward and uses the interface in the browser. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Embedded PostgreSQL. The ranger database, in the same release. The password of the ranger user is the one in ranger.dbPassword, which also applies to the root and hive roles of this database. Chart default:
on. (tdp-ranger.postgres.enabled)
How the interface is reached: Ingress
- Who administers. Administrators and auditors open the Ranger Admin interface at the published hostname. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - Ingress. The Kubernetes resource that publishes the Ranger Service at a hostname, through the cluster Ingress controller. Chart default:
off. (TDP-Settings.gateway.ingress.enabled) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Embedded PostgreSQL. The ranger database, in the same release. The password of the ranger user is the one in ranger.dbPassword, which also applies to the root and hive roles of this database. Chart default:
on. (tdp-ranger.postgres.enabled)
How the interface is reached: Gateway API
- Who administers. Administrators and auditors open the Ranger Admin interface at the published hostname. Chart default:
port-forward. (TDP-Settings.gateway) - Ranger Admin Service. The internal address of the Ranger Admin interface and REST API. It is the address that the plugins of the other components use to download the policies. Chart default:
ClusterIP. (tdp-ranger.ranger.service) - HTTPRoute (Gateway API). A Gateway receives the traffic and the HTTPRoute created by the chart forwards the Ranger hostname to the Service. The chart can create its own Gateway or attach the route to an existing Gateway. Chart default:
off. (TDP-Settings.gateway.gatewayApi.enabled) - Ranger Admin. Stores the Ranger services, policies, and users in the database, and answers the interface and the REST API. On the first startup, it imports the database schema before becoming ready. Chart default:
admin user, with a temporary password. (tdp-ranger.ranger.adminUser · tdp-ranger.ranger.adminPassword) - Solr. Receives the audit records from the plugins. Solr stores the data on a persistent volume, in the cluster default StorageClass when storageClassName is empty. Chart default:
persistent volume on. (tdp-ranger.solr.persistence) - Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default:
tdp-registry. (tdp-ranger.imagePullSecrets) - Embedded PostgreSQL. The ranger database, in the same release. The password of the ranger user is the one in ranger.dbPassword, which also applies to the root and hive roles of this database. Chart default:
on. (tdp-ranger.postgres.enabled)
port-forward. Nothing is created in the cluster. kubectl connects a port on your machine to the Service port while the command is running, as in scenario 1. For a team, choose Ingress or Gateway API above. The steps below apply only to Ingress and Gateway API.
Ingress. The chart creates an Ingress with the hostname and the class of your cluster. On OpenShift, the router publishes the Ingress as a Route.
1ingress:2ingressClassName: <INGRESS_CLASS>3annotations: {}4hosts:5 - host: <RANGER_HOSTNAME>6 paths:7 - path: /8 pathType: Prefix9tls: []1011TDP-Settings:12gateway:13 ingress:14 enabled: true15 gatewayApi:16 enabled: false
For example nginx on standard Kubernetes, or openshift-default on OpenShift.
- Ingress class (linha 2). For example nginx on standard Kubernetes, or openshift-default on OpenShift.
- Hostname (linha 5). For example ranger.tdp.local on standard Kubernetes, or ranger-<NAMESPACE>.apps.<CLUSTER_DOMAIN> on OpenShift.
- TDP-Settings (linha 11). This is where the chart decides to render the Ingress. It goes at the root of the file, not under tdp-ranger.
- Mutually exclusive (linha 16). Ingress and Gateway API cannot be on at the same time.
Gateway API. The chart creates an HTTPRoute that forwards the Ranger hostname to the Ranger Admin Service. In the example, the chart itself also creates the Gateway, with an HTTP listener. With gatewayApi.gateway.enabled: false, the HTTPRoute attaches, through parentRefs, to a shared Gateway that already exists.
1gatewayApi:2gatewayClassName: <GATEWAY_CLASS>3gateway:4 enabled: true5 name: <GATEWAY_NAME>6 listeners:7 - name: web8 port: 80009 protocol: HTTP10parentRefs:11 - name: <GATEWAY_NAME>12ranger:13 enabled: true14 hostnames:15 - <RANGER_HOSTNAME>16 rules:17 - matches:18 - path:19 type: PathPrefix20 value: /21 backendRefs:22 - name: ""23 port: 60802425TDP-Settings:26gateway:27 ingress:28 enabled: false29 gatewayApi:30 enabled: true
For example traefik, nginx, or the GatewayClass of your cluster.
- Gateway class (linha 2). For example traefik, nginx, or the GatewayClass of your cluster.
- Chart Gateway (linha 4). With enabled: true, the chart creates the Gateway with the listeners below. With false, the route attaches to an existing Gateway through parentRefs.
- Listeners (linha 6). For HTTPS, the certificate goes in a listener with protocol: HTTPS and tls.certificateRefs. The HTTPRoute has no TLS configuration.
- parentRefs (linha 10). The Gateway to which the HTTPRoute attaches.
- Hostname (linha 15). For example ranger.tdp.local on standard Kubernetes, or ranger-<NAMESPACE>.apps.<CLUSTER_DOMAIN> on OpenShift.
- backendRefs (linha 22). The empty name is the Ranger Admin Service of this release.
- TDP-Settings (linha 30). Turns on the HTTPRoute and turns off the Ingress.
Add the block to the values file
Replace the class, hostname, and Gateway placeholders with those of your cluster.
The block for the access method chosen above and TDP-Settings go at the root of the file, next to the tdp-ranger prefix, not inside it.
Apply to the release
The Ingress or the HTTPRoute is created in the Ranger namespace.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
It worked when
The HTTPRoute appears with the Gateway status:
kubectl -n <NAMESPACE> get httproute <RELEASE_NAME>-ranger
The hostname resolves, in DNS or in /etc/hosts, to the external IP of the Ingress controller. With the nginx controller, the IP comes from this command:
kubectl get svc -A -l app.kubernetes.io/name=ingress-nginx \
-o jsonpath='{.items[0].status.loadBalancer.ingress[0].ip}'
The Route lists the published hostname:
kubectl -n <NAMESPACE> get route
The Ranger Admin interface opens at http://<RANGER_HOSTNAME>. The release notes (helm get notes <RELEASE_NAME> -n <NAMESPACE>) repeat the address.
Change the temporary passwords and sign in with LDAP or Active Directory accounts.
Ranger comes up with the local admin user and temporary passwords, and without a user directory. Before any real use, you change the passwords. Afterwards, you want people to sign in with the company LDAP or Active Directory accounts, with the users and groups imported into Ranger by UserSync, the Ranger service that copies users and groups from the directory.
admin user with the password from ranger.adminPassword. LDAP and UserSync off.
Strong, with upper and lower case letters, a number, and a special character, in the values file or, for admin, in a Secret.
The values file for this action is in Initial credentials. Build yours from it and apply it with the procedure below.
Install with the values file
The new passwords go in with the release.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
It worked when
The Ranger interface accepts the admin user with the new password. The release notes show the password, or the Secret and key it comes from:
helm get notes <RELEASE_NAME> -n <NAMESPACE>
The other areas, with the complete files explained line by line, are in Security - Ranger: the admin password in a Secret in scenario 1, LDAP and Active Directory in scenario 2, LDAPS with a private CA in scenario 3, and UserSync, groups, and administration roles in scenario 4.
Register the services and policies that the plugins of these components query.
Ranger stores the policies. Those who enforce them are the plugins of the other components, which query them in Ranger Admin. You want Kafka, NiFi, or Trino to have their permissions decided in Ranger. The chart can register the service of each one, with initial policies, through a Job that runs after the installation. The plugin side is configured in the chart of each component.
Integrations Job and the Kafka, NiFi, and Trino integrations off.
With the integrations Job on, ranger.adminPassword is required in the values file, as in scenario 4.
The values file for this action is in Trino. Build yours from it and apply it with the procedure below.
Install Ranger with the Trino integration
The Job registers the Trino service in Ranger Admin.
Use the values file built from the indicated block.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Without --version, Helm installs the latest published chart version. This documentation's version is 3.0.3.
It worked when
The tdp_trino service appears in Ranger Admin.
Turn on the Ranger plugin in Trino
The coordinator starts querying the service's policies.
The configuration of the tdp-trino chart is in the Ranger scenario of Security - Trino.
The other integrations, with the complete files explained line by line and the installation order, are in Integrations - Ranger: the integrations Job and the three value scopes in scenario 1, Kafka in scenario 2, and NiFi in scenario 3.
When something goes wrong
Troubleshooting
Paste the error message or choose the symptom. The answer comes with the cause, what to do, and the command.
- Installation refused: license check failed. Cause: The TDP license is missing or invalid in the cluster. What to do: Install or renew the TDP license and check its state before repeating the installation.
- Pods in ImagePullBackOff. Cause: The tdp-registry pull Secret does not exist in the release namespace. What to do: Create the tdp-registry Secret with your registry credentials (scenario 1).
- Ranger Admin pod at 0/1 right after the installation. Cause: On the first startup, Ranger Admin imports the database schema. The startupProbe postpones the probes until the API responds, and the pod only becomes ready after that. What to do: Wait and follow the Ranger Admin log. The pod becomes ready when the API responds.
- Job create-db failed. Cause: The Job cannot reach the PostgreSQL at ranger.database.host, or cannot find the administration password (postgres-password key) in the Secret from TDP-Settings.externalDatabase.externalSecret.releaseName, in the Ranger namespace. What to do: Read the Job log: it stays in the namespace when it fails. Fix the address or create the Secret in the Ranger namespace and repeat the command (scenario 2).
- On OpenShift, the Ranger pod does not start for lack of permission. Cause: The anyuid SCC RoleBinding was not created: the chart was rendered without seeing the cluster APIs. What to do: Check the RoleBinding. If it does not exist, apply the release with openshift.enabled: true (scenario 1).
- Another problem. Cause: Start with the pods, the Jobs, and the namespace events. What to do: The events in time order show what keeps the pod from starting. The log of a Job shows why it failed.
What stays after uninstalling
helm uninstall <RELEASE_NAME> -n <NAMESPACE>
After the removal, a chart Job deletes the Ranger ServiceAccount, Role, and RoleBindings, including the anyuid SCC one, and the Secret <RELEASE_NAME>-ranger-database of the external database. The Secrets you created with kubectl, such as tdp-registry, are not part of the release and stay in the namespace.
All parameters
Filter by name or by group. Keys without a prefix go under the chart prefix. The others, at the root of the values file.
34 of 34 parameters
| Parameter | Description | Chart default |
|---|---|---|
tdp-ranger.enabledGeneral | Deploys Ranger | true |
tdp-ranger.clusterLabelGeneral | Cluster label | tdp |
tdp-ranger.imagePullSecretsGeneral | Image pull secrets | [tdp-registry] |
tdp-ranger.openshift.enabledGeneral | Grants the anyuid SCC even when the OpenShift API is not detected (on OpenShift, it is granted anyway) | false |
tdp-ranger.ranger.adminUserAdministration | Interface administration user | admin |
tdp-ranger.ranger.adminPasswordAdministration | Administration password (temporary, must be changed) | ChangeMe!T3c |
tdp-ranger.ranger.adminExistingSecretAdministration | Secret with the administration password, instead of adminPassword | "" |
tdp-ranger.ranger.adminExistingSecretPasswordKeyAdministration | Key of that Secret | password |
tdp-ranger.postgres.enabledDatabase | Embedded PostgreSQL | true |
tdp-ranger.ranger.dbUserDatabase | Database user | ranger |
tdp-ranger.ranger.dbPasswordDatabase | Database password (temporary, must be changed). With the embedded PostgreSQL, also the password of the root and hive roles | ChangeMe!T3c |
tdp-ranger.ranger.database.hostDatabase | Database address | <postgresql-service>.<namespace>.svc.cluster.local |
tdp-ranger.ranger.database.portDatabase | Database port | 5432 |
TDP-Settings.externalDatabase.enabledDatabase | Turns on the Job that creates the database and user in the external PostgreSQL | false |
TDP-Settings.externalDatabase.recreateDatabase | Deletes the Ranger database and user on every installation and update (all the policies are lost). Only for disposable environments | false |
TDP-Settings.externalDatabase.externalSecret.releaseNameDatabase | Secret with the PostgreSQL administration password (postgres-password key) | tdp-postgresql-auth |
tdp-ranger.solr.persistence.enabledAudit | Solr persistent volume | true |
tdp-ranger.solr.persistence.sizeAudit | Solr PVC size | 1Gi |
tdp-ranger.solr.persistence.storageClassNameAudit | Solr StorageClass (empty uses the cluster default) | "" |
rangerIntegrations.configJob.enabledIntegrations | Turns on the Job that registers the Kafka, NiFi, and Trino services. Turn it on together with the integration | false |
rangerIntegrations.configJob.imageIntegrations | Integrations Job image | registry.tecnisys.com.br/community/images/python:3.11-slim |
rangerIntegrations.configJob.rangerReadyTimeoutIntegrations | How long the Job waits for the Ranger API, in seconds | 1800 |
rangerIntegrations.configJob.activeDeadlineSecondsIntegrations | Limit for the whole Job. If empty, it is rangerReadyTimeout plus a margin for the registration | "" |
rangerIntegrations.configJob.retryIntervalIntegrations | Interval between attempts, in seconds | 10 |
rangerIntegrations.kafka.enabledIntegrations | Kafka integration | false |
rangerIntegrations.nifi.enabledIntegrations | NiFi integration | false |
rangerIntegrations.trino.enabledIntegrations | Trino integration | false |
TDP-Settings.gateway.ingress.enabledExposure | Creates the Ingress | false |
TDP-Settings.gateway.gatewayApi.enabledExposure | Creates the HTTPRoute (mutually exclusive with the Ingress) | false |
ingress.ingressClassNameExposure | Ingress class | "" |
ingress.hostsExposure | Ingress hostnames and paths | ranger.tdp.local |
gatewayApi.gateway.enabledExposure | Creates its own Gateway. When off, the route attaches to an existing Gateway through parentRefs | false |
gatewayApi.parentRefsExposure | Gateway to which the HTTPRoute attaches | [] |
gatewayApi.ranger.hostnamesExposure | HTTPRoute hostnames | ranger.tdp.local |
For the complete list of parameters, see the chart values.yaml or run helm show values for the installed version.