Skip to main content
Version 3.0

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.

ChartVersion3.0.3TypeapplicationAppVersion2.7.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+
Feature SupportLDAPsupportedExternal DBsupportedIngresssupportedGateway APIsupported

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​

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.

What comes up

Ranger Admin, behind the ClusterIP Service <RELEASE_NAME>-ranger; Solr, with a persistent volume; and the embedded PostgreSQL, with the Ranger database.

Passwords

Temporary, in ranger.adminPassword (interface admin user) and ranger.dbPassword (database ranger user). How to change them is in scenario 4.

Before you start

A valid TDP license, the tdp-registry pull Secret in the release namespace, and a StorageClass for the persistent volumes.

OpenShift

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

namespace <NAMESPACE>port-forwardWho administersport-forwardService<RELEASE_NAME>-ranger · ClusterIPRanger Admininterface and REST APISolr and ZooKeeperaudit · persistent volumePull Secrettdp-registryPostgreSQLembedded · volume
  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. Pull Secret. The Tecnisys registry credentials, created by you in the namespace before the installation. Chart default: tdp-registry. (tdp-ranger.imagePullSecrets)
  6. 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)
What comes up in the namespace with the chart defaults. Click an element to see what it is and the corresponding default.

Check the TDP license

The chart requires a valid TDP license installed in the cluster.

Terminal input
kubectl get platformlicenses -A

It worked when

The license appears in the list. If it does not, install or renew the license with the 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.

Terminal input
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

Terminal input
kubectl -n <NAMESPACE> get secret tdp-registry

Install the chart

Without a values file, the chart comes up exactly as in the figure above.

Terminal input
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

Terminal input
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.

Terminal input
oc get rolebinding -n <NAMESPACE> | grep anyuid
oc describe rolebinding <RELEASE_NAME>-openshift-anyuid-scc -n <NAMESPACE>

It worked when

The RoleBinding <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:

Terminal input
kubectl -n <NAMESPACE> get svc <RELEASE_NAME>-ranger
Terminal input
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:

Terminal input
helm get notes <RELEASE_NAME> -n <NAMESPACE>

Before any real use, change the temporary passwords, as in Security - Ranger.

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.

  1. 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.
  2. 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).
  3. 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.
  4. 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).
  5. 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).
  6. 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​

Terminal input
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

ParameterDescriptionChart default
tdp-ranger.enabledGeneralDeploys Rangertrue
tdp-ranger.clusterLabelGeneralCluster labeltdp
tdp-ranger.imagePullSecretsGeneralImage pull secrets[tdp-registry]
tdp-ranger.openshift.enabledGeneralGrants the anyuid SCC even when the OpenShift API is not detected (on OpenShift, it is granted anyway)false
tdp-ranger.ranger.adminUserAdministrationInterface administration useradmin
tdp-ranger.ranger.adminPasswordAdministrationAdministration password (temporary, must be changed)ChangeMe!T3c
tdp-ranger.ranger.adminExistingSecretAdministrationSecret with the administration password, instead of adminPassword""
tdp-ranger.ranger.adminExistingSecretPasswordKeyAdministrationKey of that Secretpassword
tdp-ranger.postgres.enabledDatabaseEmbedded PostgreSQLtrue
tdp-ranger.ranger.dbUserDatabaseDatabase userranger
tdp-ranger.ranger.dbPasswordDatabaseDatabase password (temporary, must be changed). With the embedded PostgreSQL, also the password of the root and hive rolesChangeMe!T3c
tdp-ranger.ranger.database.hostDatabaseDatabase address<postgresql-service>.<namespace>.svc.cluster.local
tdp-ranger.ranger.database.portDatabaseDatabase port5432
TDP-Settings.externalDatabase.enabledDatabaseTurns on the Job that creates the database and user in the external PostgreSQLfalse
TDP-Settings.externalDatabase.recreateDatabaseDeletes the Ranger database and user on every installation and update (all the policies are lost). Only for disposable environmentsfalse
TDP-Settings.externalDatabase.externalSecret.releaseNameDatabaseSecret with the PostgreSQL administration password (postgres-password key)tdp-postgresql-auth
tdp-ranger.solr.persistence.enabledAuditSolr persistent volumetrue
tdp-ranger.solr.persistence.sizeAuditSolr PVC size1Gi
tdp-ranger.solr.persistence.storageClassNameAuditSolr StorageClass (empty uses the cluster default)""
rangerIntegrations.configJob.enabledIntegrationsTurns on the Job that registers the Kafka, NiFi, and Trino services. Turn it on together with the integrationfalse
rangerIntegrations.configJob.imageIntegrationsIntegrations Job imageregistry.tecnisys.com.br/community/images/python:3.11-slim
rangerIntegrations.configJob.rangerReadyTimeoutIntegrationsHow long the Job waits for the Ranger API, in seconds1800
rangerIntegrations.configJob.activeDeadlineSecondsIntegrationsLimit for the whole Job. If empty, it is rangerReadyTimeout plus a margin for the registration""
rangerIntegrations.configJob.retryIntervalIntegrationsInterval between attempts, in seconds10
rangerIntegrations.kafka.enabledIntegrationsKafka integrationfalse
rangerIntegrations.nifi.enabledIntegrationsNiFi integrationfalse
rangerIntegrations.trino.enabledIntegrationsTrino integrationfalse
TDP-Settings.gateway.ingress.enabledExposureCreates the Ingressfalse
TDP-Settings.gateway.gatewayApi.enabledExposureCreates the HTTPRoute (mutually exclusive with the Ingress)false
ingress.ingressClassNameExposureIngress class""
ingress.hostsExposureIngress hostnames and pathsranger.tdp.local
gatewayApi.gateway.enabledExposureCreates its own Gateway. When off, the route attaches to an existing Gateway through parentRefsfalse
gatewayApi.parentRefsExposureGateway to which the HTTPRoute attaches[]
gatewayApi.ranger.hostnamesExposureHTTPRoute hostnamesranger.tdp.local

For the complete list of parameters, see the chart values.yaml or run helm show values for the installed version.

Next steps​