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.
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
- 1 · Ingress on Kubernetes
- 2 · Route on OpenShift
- 3 · Gateway API
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.
Ingress off (TDP-Settings.gateway.ingress.enabled: false) and Gateway API off. The component is only reached inside the cluster.
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
- 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. - Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default:
ClusterIP. - Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
- 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) - 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 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: Prefix9tls: []1011TDP-Settings:12gateway:13 ingress:14 enabled: true15 gatewayApi:16 enabled: false
The class of your cluster controller, such as nginx.
- Ingress class (linha 2). The class of your cluster controller, such as nginx.
- Hostname (linha 5). One hostname per component, such as airflow.tdp.local.
- TLS (linha 9). Empty list: the Ingress answers without its own certificate. The next example shows how to fill it in.
- 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.
- Mutually exclusive (linha 16). Ingress and Gateway API cannot be on at the same time.
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: Prefix9tls:10 - secretName: <SECRET_NAME>11 hosts:12 - <COMPONENT_HOSTNAME>
Where the annotations of your certificate manager go, if it issues the Secret.
- annotations (linha 3). Where the annotations of your certificate manager go, if it issues the Secret.
- TLS Secret (linha 10). The Secret with the certificate and the key, in the component namespace.
- Certificate hosts (linha 12). The same hostname as the Ingress.
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.
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
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:
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
Publish in the cluster apps domain, through the OpenShift router.
The cluster is OpenShift, and its HTTP entry point is the router, which publishes Routes in the cluster apps domain. You turn on the same Ingress as in scenario 1, with the openshift-default class and a hostname in that domain, and the router publishes it as a Route. Two charts do it differently: JupyterHub and CloudBeaver create their own Route and do not create an Ingress.
Ingress off and Gateway API off, as on Kubernetes.
In the cluster apps domain: <nome>-<NAMESPACE>.apps.<CLUSTER_DOMAIN>, such as airflow-<NAMESPACE>.apps.<CLUSTER_DOMAIN>.
Who creates the Route on OpenShift
Who creates the Route
- 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. - Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default:
ClusterIP. - Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
- OpenShift router. The HTTP entry point of the OpenShift cluster. It publishes the Routes in the cluster apps domain. (
ingressClassName: openshift-default) - Ingress. The chart creates the same Kubernetes Ingress, with the openshift-default class and a hostname in the cluster apps domain. Chart default:
off. (TDP-Settings.gateway.ingress.enabled: true) - Route. The OpenShift router publishes each Ingress as a Route. In Ozone, which creates one Ingress per interface, there are several Routes. (
kubectl -n <NAMESPACE> get route)
Who creates the Route: The router, from the Ingress
- 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. - Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default:
ClusterIP. - Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
- OpenShift router. The HTTP entry point of the OpenShift cluster. It publishes the Routes in the cluster apps domain. (
ingressClassName: openshift-default) - Ingress. The chart creates the same Kubernetes Ingress, with the openshift-default class and a hostname in the cluster apps domain. Chart default:
off. (TDP-Settings.gateway.ingress.enabled: true) - Route. The OpenShift router publishes each Ingress as a Route. In Ozone, which creates one Ingress per interface, there are several Routes. (
kubectl -n <NAMESPACE> get route)
Who creates the Route: The chart (JupyterHub and CloudBeaver)
- 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. - Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default:
ClusterIP. - Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
- OpenShift router. The HTTP entry point of the OpenShift cluster. It publishes the Routes in the cluster apps domain. (
ingressClassName: openshift-default) - Chart Route. On OpenShift, JupyterHub and CloudBeaver publish the interface through a Route of their own and do not create an Ingress: an Ingress would make the router create a second, conflicting Route for the same host. Chart default:
off. (TDP-Settings.gateway.ingress.enabled: true)
The router publishes the Ingress. The chart creates the usual Ingress and the OpenShift router creates a Route for it. In Ozone, which creates one Ingress per interface, there are several Routes, one for each.
1ingress:2ingressClassName: openshift-default3annotations: {}4hosts:5 - host: <COMPONENT_HOSTNAME>6 paths:7 - path: /8 pathType: Prefix9tls: []1011TDP-Settings:12gateway:13 ingress:14 enabled: true15 gatewayApi:16 enabled: false
openshift-default, the class of the OpenShift router.
- Class (linha 2). openshift-default, the class of the OpenShift router.
- Hostname (linha 5). In the cluster apps domain: <nome>-<NAMESPACE>.apps.<CLUSTER_DOMAIN>.
- TDP-Settings (linha 14). The same key as on Kubernetes: on OpenShift, the Ingress becomes a Route.
The chart creates the Route. With Ingress on in TDP-Settings, JupyterHub and CloudBeaver detect OpenShift and publish the interface through a Route of their own, without an Ingress: an Ingress would make the router create a second, conflicting Route for the same host. The values file is the same as on Kubernetes. The hostname must be in the cluster apps domain. In CloudBeaver, ingressClassName and the nginx annotations are not used in this case.
Add the block to the values file
openshift-default class and a hostname in the apps domain, in the place the component chart uses.
The place of the block in each chart is in Keys by component.
Apply to the release
The Ingress, or the chart Route, is created in the component namespace.
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
The Route lists the published hostname and the component interface opens at it:
kubectl -n <NAMESPACE> get route
Link the component to a Gateway that already exists, or let the chart create its own.
The cluster uses the Gateway API, the newest Kubernetes standard for publishing services. A Gateway receives the traffic, and the chart creates an HTTPRoute that forwards the component hostname to its Service. The Gateway can already exist in the cluster, shared by several services, or be created by the chart itself. The TLS always lives in the Gateway listener: the HTTPRoute has no TLS configuration.
Gateway API off (TDP-Settings.gateway.gatewayApi.enabled: false) and Ingress off.
The Gateway API CRDs and an implementation of it in the cluster, with the GatewayClass, and the Gateway, if it already exists (Prerequisites).
What the chart creates with the Gateway API
Where the Gateway is
- 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. - Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default:
ClusterIP. - Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
- Existing Gateway. A Gateway that already exists in the cluster and receives the traffic of several services. The chart only creates the HTTPRoute, linked to it by name and namespace. The TLS, when there is any, goes in that Gateway listener. (
gatewayApi.parentRefs) - HTTPRoute. Forwards the component hostname to the Service. The HTTPRoute has no TLS configuration. Chart default:
off. (TDP-Settings.gateway.gatewayApi.enabled: true)
Where the Gateway is: Already exists in the cluster
- 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. - Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default:
ClusterIP. - Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
- Existing Gateway. A Gateway that already exists in the cluster and receives the traffic of several services. The chart only creates the HTTPRoute, linked to it by name and namespace. The TLS, when there is any, goes in that Gateway listener. (
gatewayApi.parentRefs) - HTTPRoute. Forwards the component hostname to the Service. The HTTPRoute has no TLS configuration. Chart default:
off. (TDP-Settings.gateway.gatewayApi.enabled: true)
Where the Gateway is: The chart creates it
- 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. - Service. The internal address of the component. The Ingress, the Route or the HTTPRoute forward traffic to it. Chart default:
ClusterIP. - Component. The pods of the published web interface: the Airflow UI, Trino, Superset and so on.
- Gateway created by the chart. The chart creates the Gateway with the GatewayClass and the listeners from the values file. For HTTPS, the certificate goes in a listener with protocol: HTTPS and tls.certificateRefs. Chart default:
not created. (gatewayApi.gateway.enabled: true) - HTTPRoute. Forwards the component hostname to the Service. The HTTPRoute has no TLS configuration. Chart default:
off. (TDP-Settings.gateway.gatewayApi.enabled: true)
Existing Gateway. The chart only creates the HTTPRoute and links it to the Gateway by name and namespace, in gatewayApi.parentRefs. The component route, with hostnames and rules, lives in a key of its own in each chart inside gatewayApi (for example, gatewayApi.trino). The Keys by component table shows which. In a chart that can also create the Gateway, keep gatewayApi.gateway.enabled: false. In the tdp-ozone, tdp-kafka, tdp-clickhouse, tdp-airflow, and tdp-openmetadata charts, gatewayApi.gateway already comes with the default values enabled: false, name: "", and listeners: [].
1gatewayApi:2parentRefs:3 - name: <GATEWAY_NAME>4 namespace: <GATEWAY_NAMESPACE>56TDP-Settings:7gateway:8 ingress:9 enabled: false10 gatewayApi:11 enabled: true
The Gateway the HTTPRoute links to: its name and namespace.
- parentRefs (linha 2). The Gateway the HTTPRoute links to: its name and namespace.
- TDP-Settings (linha 11). Turns on the HTTPRoute and keeps the Ingress off.
Chart Gateway. With gatewayApi.gateway.enabled: true, the chart creates the Gateway, with the GatewayClass and the listeners you set, and links the HTTPRoute to it. The component route lives in the chart's own key inside gatewayApi, as in the other case. The charts that bring this example are marked in Keys by component. For HTTPS, the certificate lives in a listener with protocol: HTTPS and tls.certificateRefs, in gatewayApi.gateway.listeners.
1gatewayApi:2gatewayClassName: <GATEWAY_CLASS>3gateway:4 enabled: true5 name: <GATEWAY_NAME>6 listeners:7 - name: web8 port: 80009 protocol: HTTP10 hostname: <COMPONENT_HOSTNAME>11parentRefs:12 - name: <GATEWAY_NAME>1314TDP-Settings:15gateway:16 ingress:17 enabled: false18 gatewayApi:19 enabled: true
The class of the Gateway API implementation in your cluster.
- GatewayClass (linha 2). The class of the Gateway API implementation in your cluster.
- Create the Gateway (linha 4). Turns on the creation of the Gateway by the chart.
- Listeners (linha 6). The ports and protocols the Gateway listens on. For HTTPS, a listener with protocol: HTTPS and tls.certificateRefs.
- parentRefs (linha 11). The HTTPRoute links to the Gateway that the chart itself creates.
Add the block to the values file
The Gateway, the component route and TDP-Settings, in the place the chart uses.
The route key of each chart is in Keys by component. The complete block, with the backend port, is in the exposure scenario of the component page.
Apply to the release
The HTTPRoute, and the Gateway if the chart creates it, appear in the cluster.
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
kubectl -n <NAMESPACE> get httproute
The HTTPRoute lists the hostname and the component interface opens at http://<COMPONENT_HOSTNAME>.
If the hostname is not in DNS yet
To test from your machine, point the hostname to the Gateway IP in /etc/hosts. The IP comes from the LoadBalancer Service of your Gateway controller:
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
| For | In the values file (tdp-airflow) |
|---|---|
| Ingress | ingress, at the root: ingressClassName, hosts[].host and hosts[].paths |
| TLS on Ingress | ingress.tls, a list with secretName and hosts |
| Gateway API | Route in gatewayApi.airflow. The chart example creates the Gateway (gatewayApi.gateway) |
| OpenShift | The router publishes the Ingress as a Route |
| Also | config.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
| For | In the values file (tdp-argo) |
|---|---|
| Ingress | server.ingress, under the chart prefix: ingressClassName, hostname, path and pathType, with enabled: false. The Ingress is created by TDP-Settings from this block |
| Gateway API | Route in gatewayApi.server. The chart example creates the Gateway (gatewayApi.gateway) |
| TLS | In the Gateway listener, in gatewayApi.gateway.listeners, with protocol: HTTPS |
| OpenShift | The router publishes the Ingress as a Route |
| Also | configs.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
| For | In the values file (tdp-clickhouse) |
|---|---|
| Ingress | ingress, at the root: ingressClassName, hosts[].host and hosts[].paths |
| TLS on Ingress | ingress.tls, a list with secretName and hosts |
| Gateway API | Route in gatewayApi.clickhouse. The chart example creates the Gateway (gatewayApi.gateway). For an existing Gateway, gateway.enabled: false and parentRefs |
| OpenShift | openshift-default class and a hostname in the cluster apps domain |
| Also | The 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
| For | In the values file (tdp-cloudbeaver) |
|---|---|
| Ingress | ingress, under the chart prefix: ingressClassName, annotations and hosts[].host. The example brings the nginx timeout annotations |
| TLS on Ingress | ingress.tls, under the chart prefix, a list with hosts and secretName |
| Gateway API | Route in gatewayApi.cloudbeaver. The chart example creates the Gateway (gatewayApi.gateway) |
| OpenShift | The 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
| For | In the values file (tdp-jupyter) |
|---|---|
| Ingress | ingress, at the root: ingressClassName, annotations and hosts[].host. The example brings the nginx timeout annotations |
| TLS on Ingress | ingress.tls, a list with secretName and hosts |
| Gateway API | Route in gatewayApi.jupyter. The chart example creates the Gateway (gatewayApi.gateway) |
| OpenShift | The chart creates its own Route, with no Ingress |
Complete block: JupyterHub, Publish at a URL scenario.
Kafka UI
| For | In the values file (tdp-kafka) |
|---|---|
| Ingress | ingress, at the root: ingressClassName, hosts[].host and hosts[].paths. Publishes the Kafka UI |
| TLS on Ingress | ingress.tls, a list with secretName and hosts |
| Gateway API | Route in gatewayApi.kafkaUi. The chart example creates the Gateway (gatewayApi.gateway). For an existing Gateway, gateway.enabled: false and parentRefs |
| OpenShift | The router publishes the Ingress as a Route |
Complete block: Kafka, Publish the UI scenario.
NiFi
| For | In the values file (tdp-nifi) |
|---|---|
| Ingress | ingress, 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 Ingress | The example brings the nginx cookie affinity annotations |
| TLS on Ingress | ingress.tls |
| Gateway API | Route 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 API | Certificate in the Gateway listener. With NiFi on HTTPS, gatewayApi.nifi.backendTLS (enabled, hostname and caCertificateRefs) makes the chart create a BackendTLSPolicy. |
| Affinity with Gateway API | gatewayApi.nifi.sessionPersistence, for more than one node with login; the field belongs to the Gateway API experimental channel |
| OpenShift | The router publishes the Ingress as a Route |
Complete block: NiFi, Publish at a URL scenario.
OpenMetadata
| For | In the values file (tdp-openmetadata) |
|---|---|
| Ingress | ingress, under the chart prefix: the class lives in className, and the hostname in hosts[].host |
| TLS on Ingress | ingress.tls, under the chart prefix |
| Gateway API | Route in gatewayApi.openmetadata. The chart example creates the Gateway (gatewayApi.gateway). For an existing Gateway, gateway.enabled: false and parentRefs |
| Affinity with Gateway API | Depends on the Gateway API implementation (Traefik, Envoy and others). Configure it through its documentation |
| OpenShift | The router publishes the Ingress as a Route |
Complete block: OpenMetadata, Publish at a URL scenario.
Ozone
| For | In the values file (tdp-ozone) |
|---|---|
| Ingress | One 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 Ingress | tls in each block. The example protects the S3 endpoint in ingress.s3g.rest.tls |
| Gateway API | gatewayApi, under the chart prefix: parentRefs with an existing Gateway and one route per interface (s3g.rest, s3g.web, om, scm and recon) |
| OpenShift | One Route for each Ingress |
| Also | Restrict who reaches the S3 Gateway (NetworkPolicies, firewall) and give each application its own key |
| Key change |
Complete block: Ozone, Publish at a URL scenario.
Ranger
| For | In the values file (tdp-ranger) |
|---|---|
| Ingress | ingress, at the root: ingressClassName, hosts[].host and hosts[].paths |
| TLS on Ingress | ingress.tls, a list with secretName and hosts |
| Gateway API | Route in gatewayApi.ranger. The chart example creates the Gateway (gatewayApi.gateway) |
| TLS with Gateway API | Listener with protocol: HTTPS and tls.certificateRefs, in gatewayApi.gateway.listeners |
| OpenShift | The router publishes the Ingress as a Route |
Complete block: Ranger, Publish at a URL scenario.
Spark
| For | In the values file (tdp-spark) |
|---|---|
| Ingress | spark.ingress: enabled: true, ingressClassName, hostname, path and pathType. Publishes the Master UI |
| Gateway API | Route in gatewayApi.spark, off by default: turn it on with enabled: true. The chart example creates the Gateway (gatewayApi.gateway) |
| OpenShift | The router publishes the Ingress as a Route |
| Also | The 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
| For | In the values file (tdp-spark) |
|---|---|
| Precondition | spark.historyServer.enabled: true. With exposure on, the chart creates an Ingress or an HTTPRoute for the History Server too |
| Ingress | spark.historyServer.ingress: hostname and ingressClassName (empty uses the class of spark.ingress and, after that, the cluster default) |
| TLS on Ingress | spark.historyServer.ingress.tls |
| Gateway API | Route in gatewayApi.sparkHistory, with hostnames |
Complete block: Spark, History scenario.
Superset
| For | In the values file (tdp-superset) |
|---|---|
| Ingress | ingress, 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 Ingress | ingress.tls, under the chart prefix |
| Gateway API | Route in gatewayApi.superset, linked to an existing Gateway by gatewayApi.parentRefs |
| OpenShift | The router publishes the Ingress as a Route |
Complete block: Superset, Publish at a URL scenario.
Trino
| For | In the values file (tdp-trino) |
|---|---|
| Ingress | ingress, at the root: ingressClassName, hosts (a list of hostnames) and path |
| TLS on Ingress | ingress.tls |
| Gateway API | Route in gatewayApi.trino, linked to an existing Gateway by gatewayApi.parentRefs |
| OpenShift | The 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.
- 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).
- 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.
- 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.
- 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).
- 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.
- 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).
- 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
Overview
General Configuration
Ingress and Gateway API side by side, Service types, Secrets and OpenShift.