Skip to main content
Version 3.0

The components' web interfaces
at a fixed address.

Three ways to publish a component's interface outside the cluster: Ingress on Kubernetes, Route on OpenShift, and Gateway API. Each one covers: the traffic path, the values file block commented line by line, and the verification. Where the block lives in each chart is listed in the per-component keys.

CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+Helm3.2.0+

By default, each component is only reached inside the cluster. To reach it through a hostname, you turn on one of two mechanisms in the TDP-Settings.gateway block of the values file, Ingress or Gateway API, and set the hostname in the chart's exposure block, whose place changes from chart to chart (Keys by component). The overview is in General Configuration, and what the cluster needs to have is in Prerequisites. With the GitOps kit, the exposure of all components is chosen in the kit variables, which writes these keys for you: see Installation with Argo CD.

Your environment

If you fill in your environment details here, examples and commands on the page use what you entered. The namespace, the release name, the chart and the values file are those of the component you are going to publish.

Scenarios​

Publish through the cluster Ingress controller, with or without TLS.

The cluster has an Ingress controller (nginx, for example) and you want the team to open the component interface through a hostname, without kubectl port-forward. The chart creates an Ingress resource with the hostname and class you set, and the controller starts forwarding that hostname to the component Service. The same block accepts TLS: the certificate lives in a Secret and the Ingress presents it to the browser.

Chart default

Ingress off (TDP-Settings.gateway.ingress.enabled: false) and Gateway API off. The component is only reached inside the cluster.

What you need to have

An Ingress controller in the cluster, its class and a hostname that your network DNS resolves to the cluster entry point (Prerequisites).

The Ingress between the browser and the component

namespace <NAMESPACE>read byBrowser<COMPONENT_HOSTNAME>ServiceClusterIPComponent ×2Ingress Controller<INGRESS_CLASS>Ingresscreated by the chart
  1. Who accesses. Arrives through the published hostname. The DNS of your network must resolve this hostname to the address of the cluster entry point: the Ingress controller, the OpenShift router or the Gateway. Chart default: no exposure: the component is only reached inside the cluster.
  2. Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default: ClusterIP.
  3. Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
  4. Ingress Controller. The cluster controller (nginx, for example) reads the Ingresses of the given class and forwards each hostname to the matching Service. It is not part of TDP: it must exist in the cluster. (ingressClassName)
  5. Ingress. The resource that links the hostname to the Service. The chart creates it when Ingress is on in TDP-Settings; the TLS, when there is any, goes in its tls block. Chart default: off. (TDP-Settings.gateway.ingress.enabled: true)
The path from the browser to the component with Ingress on. Click an element to see what it is and the matching key.

The block below has the form used by Airflow, ClickHouse, JupyterHub, Kafka UI and Ranger, at the root of the values file. In the other charts the block lives under the chart prefix or has other key names: see Keys by component.

1ingress:
2ingressClassName: <INGRESS_CLASS>
3annotations: {}
4hosts:
5 - host: <COMPONENT_HOSTNAME>
6 paths:
7 - path: /
8 pathType: Prefix
9tls: []
10
11TDP-Settings:
12gateway:
13 ingress:
14 enabled: true
15 gatewayApi:
16 enabled: false

The class of your cluster controller, such as nginx.

  1. Ingress class (linha 2). The class of your cluster controller, such as nginx.
  2. Hostname (linha 5). One hostname per component, such as airflow.tdp.local.
  3. TLS (linha 9). Empty list: the Ingress answers without its own certificate. The next example shows how to fill it in.
  4. TDP-Settings (linha 11). This is where the chart decides to create the Ingress. It lives at the root of the file, not under the chart prefix.
  5. Mutually exclusive (linha 16). Ingress and Gateway API cannot be on at the same time.
Ingress

TLS on Ingress

The certificate lives in a TLS-type Secret. The Secret must exist in the component namespace, or be issued by your certificate manager through the Ingress annotations.

1ingress:
2ingressClassName: <INGRESS_CLASS>
3annotations: {}
4hosts:
5 - host: <COMPONENT_HOSTNAME>
6 paths:
7 - path: /
8 pathType: Prefix
9tls:
10 - secretName: <SECRET_NAME>
11 hosts:
12 - <COMPONENT_HOSTNAME>

Where the annotations of your certificate manager go, if it issues the Secret.

  1. annotations (linha 3). Where the annotations of your certificate manager go, if it issues the Secret.
  2. TLS Secret (linha 10). The Secret with the certificate and the key, in the component namespace.
  3. Certificate hosts (linha 12). The same hostname as the Ingress.
Ingress with TLS

Add the block to the values file

Replace the class and the hostname with those of your cluster, in the place the component chart uses.

The place of the block and the key names are in Keys by component. The complete block of each chart is in the exposure scenario of the component page.

Apply to the release

The Ingress is created in the same namespace as the component.

Terminal input
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/<CHART_NAME> \
--version <CHART_VERSION> \
-n <NAMESPACE> \
-f <VALUES_FILE>

Without --version, Helm installs the latest published version of the chart. The version of each chart is in Installation via Helm.

It worked when

Terminal input
kubectl -n <NAMESPACE> get ingress

The Ingress lists the hostname and the component interface opens at http://<COMPONENT_HOSTNAME> (or https://, with TLS).

If the hostname is not in DNS yet

To test from your machine, point the hostname to the Ingress controller IP in /etc/hosts. With the nginx controller (ingress-nginx), the IP comes from its Service:

Terminal input
kubectl get svc -n ingress-nginx ingress-nginx-controller -o jsonpath='{.status.loadBalancer.ingress[0].ip}'
echo "<CONTROLLER_IP> <COMPONENT_HOSTNAME>" | sudo tee -a /etc/hosts

Keys by component​

The scenarios above apply to all charts. What changes from one to another is where the exposure block lives and the name of some keys. The tables show, for each chart, where each block lives, and the link leads to the scenario on the component page with the complete block. The TDP-Settings.gateway is the same in all of them and always lives at the root of the values file.

Airflow​

ForIn the values file (tdp-airflow)
Ingressingress, at the root: ingressClassName, hosts[].host and hosts[].paths
TLS on Ingressingress.tls, a list with secretName and hosts
Gateway APIRoute in gatewayApi.airflow. The chart example creates the Gateway (gatewayApi.gateway)
OpenShiftThe router publishes the Ingress as a Route
Alsoconfig.webserver.base_url, x_forwarded_proto, x_forwarded_host and x_forwarded_port, and config.api.cors_enabled and cors_allow_origin, under the chart prefix, with the published address

Complete block: Airflow, Publish at a URL scenario.

Argo CD​

ForIn the values file (tdp-argo)
Ingressserver.ingress, under the chart prefix: ingressClassName, hostname, path and pathType, with enabled: false. The Ingress is created by TDP-Settings from this block
Gateway APIRoute in gatewayApi.server. The chart example creates the Gateway (gatewayApi.gateway)
TLSIn the Gateway listener, in gatewayApi.gateway.listeners, with protocol: HTTPS
OpenShiftThe router publishes the Ingress as a Route
Alsoconfigs.params with server.insecure: "true" and configs.cm.url with the published URL, under the chart prefix. For SSO login, this URL must be exactly the browser one, with protocol, host and port

Complete block: Argo CD, Publish at a URL scenario. With the GitOps kit, the Argo CD interface is published during the installation: Installation with Argo CD.

ClickHouse​

ForIn the values file (tdp-clickhouse)
Ingressingress, at the root: ingressClassName, hosts[].host and hosts[].paths
TLS on Ingressingress.tls, a list with secretName and hosts
Gateway APIRoute in gatewayApi.clickhouse. The chart example creates the Gateway (gatewayApi.gateway). For an existing Gateway, gateway.enabled: false and parentRefs
OpenShiftopenshift-default class and a hostname in the cluster apps domain
AlsoThe HTTP interface is the only one published, with Play at /play and the Dashboard at /dashboard. The native TCP protocol does not go through Ingress or Gateway. Through the published address, sign in with a user that accepts any host, such as tdpuser

Complete block: ClickHouse, Publish at a URL scenario.

CloudBeaver​

ForIn the values file (tdp-cloudbeaver)
Ingressingress, under the chart prefix: ingressClassName, annotations and hosts[].host. The example brings the nginx timeout annotations
TLS on Ingressingress.tls, under the chart prefix, a list with hosts and secretName
Gateway APIRoute in gatewayApi.cloudbeaver. The chart example creates the Gateway (gatewayApi.gateway)
OpenShiftThe chart creates its own Route, with no Ingress; ingressClassName and the nginx annotations are not used

Complete block: CloudBeaver, Publish at a URL scenario.

JupyterHub​

ForIn the values file (tdp-jupyter)
Ingressingress, at the root: ingressClassName, annotations and hosts[].host. The example brings the nginx timeout annotations
TLS on Ingressingress.tls, a list with secretName and hosts
Gateway APIRoute in gatewayApi.jupyter. The chart example creates the Gateway (gatewayApi.gateway)
OpenShiftThe chart creates its own Route, with no Ingress

Complete block: JupyterHub, Publish at a URL scenario.

Kafka UI​

ForIn the values file (tdp-kafka)
Ingressingress, at the root: ingressClassName, hosts[].host and hosts[].paths. Publishes the Kafka UI
TLS on Ingressingress.tls, a list with secretName and hosts
Gateway APIRoute in gatewayApi.kafkaUi. The chart example creates the Gateway (gatewayApi.gateway). For an existing Gateway, gateway.enabled: false and parentRefs
OpenShiftThe router publishes the Ingress as a Route

Complete block: Kafka, Publish the UI scenario.

NiFi​

ForIn the values file (tdp-nifi)
Ingressingress, at the root, with ingress.enabled: true together with TDP-Settings: ingressClassName (empty uses nginx) and rules[0].host. Only the first rule and the first path are used
Affinity on IngressThe example brings the nginx cookie affinity annotations
TLS on Ingressingress.tls
Gateway APIRoute in gatewayApi.nifi, linked to an existing Gateway by gatewayApi.parentRefs. The backend is the NiFi external Service, on the nifiCluster.security.port port
TLS with Gateway APICertificate in the Gateway listener. With NiFi on HTTPS, gatewayApi.nifi.backendTLS (enabled, hostname and caCertificateRefs) makes the chart create a BackendTLSPolicy.
From 3.0.2 on, gatewayApi.nifi.tls no longer exists: the certificate lives in the Gateway listener, never in the HTTPRoute.
Affinity with Gateway APIgatewayApi.nifi.sessionPersistence, for more than one node with login; the field belongs to the Gateway API experimental channel
OpenShiftThe router publishes the Ingress as a Route

Complete block: NiFi, Publish at a URL scenario.

OpenMetadata​

ForIn the values file (tdp-openmetadata)
Ingressingress, under the chart prefix: the class lives in className, and the hostname in hosts[].host
TLS on Ingressingress.tls, under the chart prefix
Gateway APIRoute in gatewayApi.openmetadata. The chart example creates the Gateway (gatewayApi.gateway). For an existing Gateway, gateway.enabled: false and parentRefs
Affinity with Gateway APIDepends on the Gateway API implementation (Traefik, Envoy and others). Configure it through its documentation
OpenShiftThe router publishes the Ingress as a Route

Complete block: OpenMetadata, Publish at a URL scenario.

Ozone​

ForIn the values file (tdp-ozone)
IngressOne block per interface, under the chart prefix: ingress.s3g.rest, ingress.s3g.web, ingress.om, ingress.scm and ingress.recon, each with enabled (on by default) and hosts. With TDP-Settings on, the chart creates all of them
TLS on Ingresstls in each block. The example protects the S3 endpoint in ingress.s3g.rest.tls
Gateway APIgatewayApi, under the chart prefix: parentRefs with an existing Gateway and one route per interface (s3g.rest, s3g.web, om, scm and recon)
OpenShiftOne Route for each Ingress
AlsoRestrict who reaches the S3 Gateway (NetworkPolicies, firewall) and give each application its own key
Key change
From 3.0.2 on, tdp-ozone.<chave> replaces tdp-ozone.ozone.<chave>.

Complete block: Ozone, Publish at a URL scenario.

Ranger​

ForIn the values file (tdp-ranger)
Ingressingress, at the root: ingressClassName, hosts[].host and hosts[].paths
TLS on Ingressingress.tls, a list with secretName and hosts
Gateway APIRoute in gatewayApi.ranger. The chart example creates the Gateway (gatewayApi.gateway)
TLS with Gateway APIListener with protocol: HTTPS and tls.certificateRefs, in gatewayApi.gateway.listeners
OpenShiftThe router publishes the Ingress as a Route

Complete block: Ranger, Publish at a URL scenario.

Spark​

ForIn the values file (tdp-spark)
Ingressspark.ingress: enabled: true, ingressClassName, hostname, path and pathType. Publishes the Master UI
Gateway APIRoute in gatewayApi.spark, off by default: turn it on with enabled: true. The chart example creates the Gateway (gatewayApi.gateway)
OpenShiftThe router publishes the Ingress as a Route
AlsoThe published address in -Dspark.ui.reverseProxyUrl, in spark.master.configOptions and spark.worker.configOptions, and in spark.ui.reverseProxyUrl for the applications. Without it, the interface tabs go back to the home page

Complete block: Spark, Publish at a URL scenario.

Spark History Server​

ForIn the values file (tdp-spark)
Preconditionspark.historyServer.enabled: true. With exposure on, the chart creates an Ingress or an HTTPRoute for the History Server too
Ingressspark.historyServer.ingress: hostname and ingressClassName (empty uses the class of spark.ingress and, after that, the cluster default)
TLS on Ingressspark.historyServer.ingress.tls
Gateway APIRoute in gatewayApi.sparkHistory, with hostnames

Complete block: Spark, History scenario.

Superset​

ForIn the values file (tdp-superset)
Ingressingress, under the chart prefix: ingressClassName, hosts (a list of hostnames), path and pathType. Do not set ingress.enabled in this block: with it and TDP-Settings on, the installation fails
TLS on Ingressingress.tls, under the chart prefix
Gateway APIRoute in gatewayApi.superset, linked to an existing Gateway by gatewayApi.parentRefs
OpenShiftThe router publishes the Ingress as a Route

Complete block: Superset, Publish at a URL scenario.

Trino​

ForIn the values file (tdp-trino)
Ingressingress, at the root: ingressClassName, hosts (a list of hostnames) and path
TLS on Ingressingress.tls
Gateway APIRoute in gatewayApi.trino, linked to an existing Gateway by gatewayApi.parentRefs
OpenShiftThe router publishes the Ingress as a Route

Complete block: Trino, Publish at a URL scenario.

When something goes wrong​

Troubleshooting

Paste the error message or pick the symptom. The answer comes with the cause, what to do and the command.

  1. ClickHouse refuses the login through the published address. Cause: Requests that arrive through an Ingress or a Gateway are not local, and the default user only accepts local connections. What to do: Sign in with a user that accepts any host, such as tdpuser. Opening default to the whole network is possible with extraUsers, but only with a strong password (ClickHouse page, Publish at a URL scenario).
  2. The Superset installation fails with Ingress on. Cause: Ingress was also turned on in the Superset chart block (ingress.enabled), besides TDP-Settings: the chart would try to create a second Ingress with the same name. What to do: Remove ingress.enabled from the Superset block and leave only TDP-Settings.gateway.ingress.enabled.
  3. Argo CD: Invalid redirect URL on login. Cause: The URL set in configs.cm.url is not exactly the one the browser uses: protocol, host and port must match. What to do: Set the Argo CD configs.cm.url to the published URL, using the port the browser actually uses, not the Gateway listener port.
  4. Spark: the interface tabs go back to the home page. Cause: The Spark interface reverse proxy does not know the published address. What to do: Set spark.ui.reverseProxyUrl with the published address on the master, the workers and the applications (Spark page, Publish at a URL scenario).
  5. NiFi: the Ingress is not created. Cause: In NiFi, the Ingress depends on two keys: TDP-Settings.gateway.ingress.enabled and ingress.enabled. What to do: Turn on both and set the host in ingress.rules[0].host.
  6. NiFi: Argo CD shows a permanent diff on the HTTPRoute. Cause: sessionPersistence is part of the Gateway API experimental channel. With the CRDs of the standard channel, the API server drops the field and Argo CD sees a diff. What to do: Install the CRDs of the experimental channel or configure the affinity through the policy resource of your Gateway implementation (for example, BackendTrafficPolicy on Envoy Gateway or DestinationRule on Istio).
  7. Another problem. Cause: Start with the exposure resource and the namespace events. What to do: Check whether the Ingress, the Route or the HTTPRoute exists and lists the expected hostname.

Next steps​