Skip to main content

Deploy DALP to OpenShift

Apply the OpenShift values overlay to run the DALP chart under a restricted security context and Routes instead of ingress.

To run DALP on OpenShift, install the dalp chart with its values-openshift.yaml overlay applied before your own values.yaml. The overlay configures every pod for the restricted-v2 Security Context Constraint (SCC) and serves traffic through native OpenShift Routes instead of Ingress or Gateway API, so the Gateway API CRD bundle is not needed.

Apply the values overlay

The overlay ships inside the chart package. Pull and unpack the chart, then pass ./dalp/values-openshift.yaml first and your own values.yaml second so your production hostnames, URLs and egress rules override the overlay's local test defaults:

helm pull oci://pkg.distribution.settlemint.com/settlemint/dalp --version <chart version> --untar
helm install dalp ./dalp \
  -f ./dalp/values-openshift.yaml \
  -f values.yaml

Helm merges -f files left to right, so later files take precedence. Putting -f ./dalp/values-openshift.yaml after -f values.yaml would overwrite your production Route hosts, app.http.url and egress rules with the overlay's apps-crc.testing defaults.

Override every openShiftRoute.host, global.dalpApp.config.app.http.url and the https://dapi.apps-crc.testing entry in global.dalpApp.config.auth.consoleUrls in your values.yaml. See Preconditions beyond the security context for the full list.

The observability chart installs as its own release and ships its own values-openshift.yaml, layered in the same order:

helm install observability ./observability \
  -f ./observability/values-openshift.yaml \
  -f values.yaml

Each release reads only its own values. Preview the rendered manifests first by running helm template with the same -f flags in place of install.

The overlay clears runAsUser, runAsGroup and fsGroup globally so OpenShift assigns compliant IDs. It sets runAsNonRoot: true and seccompProfile: RuntimeDefault at pod and container level, plus allowPrivilegeEscalation: false and capabilities.drop: [ALL] on every container.

Four subcharts ship fixed IDs of their own: the block explorer frontend (1001), PgBouncer (70), the PostgreSQL exporter (65534) and the simulator (65532). The overlay clears those fields in each subchart block.

global.securityContexts reaches most workloads through one shared merge helper, including the Console and block explorer backend. Workloads that cannot use that helper carry explicit security-context blocks in the overlay: the block explorer frontend, PgBouncer, its metrics sidecar, the Investor portal, the Platform API and the PostgreSQL exporter.

Grafana, kube-state-metrics, VictoriaLogs and Tempo carry theirs in the observability overlay. Platform API templates read only dapi.podSecurityContext and dapi.containerSecurityContext. Only the PgBouncer metrics sidecar and the PostgreSQL exporter set readOnlyRootFilesystem: true.

Routing

The overlay disables Ingress and Gateway API HTTPRoute resources and serves HTTP through native OpenShift Routes. Every HTTP workload has an openShiftRoute block controlling its host, labels and TLS settings.

The Console, block explorer frontend and docs site enable openShiftRoute by default. The block explorer API and Platform API keep it disabled because the Console reaches the Platform API inside the cluster. Enable dapi.openShiftRoute.enabled only when integrators call the Platform API directly. The Console Route sets an HAProxy router timeout of 5 minutes to cover slow create and write flows without returning 504.

The request path from a browser to a Console pod under the OpenShift overlay.A browser sends an HTTPS request to the Route host. The Route terminates TLS at the router and redirects any plain HTTP request to HTTPS instead of serving it. It then forwards the request into the cluster as plain HTTP, first to the Service, a ClusterIP with no external exposure of its own, then to a pod. That pod runs under the restricted-v2 security context: non-root, no added Linux capabilities, and a user and group ID that OpenShift assigns rather than the chart.The request path from a browser to a Console pod under the OpenShift overlay.A browser sends an HTTPS request to the Route host. The Route terminates TLS at the router and redirects any plain HTTP request to HTTPS instead of serving it. It then forwards the request into the cluster as plain HTTP, first to the Service, a ClusterIP with no external exposure of its own, then to a pod. That pod runs under the restricted-v2 security context: non-root, no added Linux capabilities, and a user and group ID that OpenShift assigns rather than the chart.

A browser's HTTPS request ends at the Route, continues as plain HTTP through the Service, and reaches a pod running under restricted-v2.

Every Route in the overlay terminates TLS at the router with termination: edge and insecureEdgeTerminationPolicy: Redirect. HTTPS ends at the OpenShift router, traffic continues as plain HTTP over the Service network, and plain HTTP requests redirect to HTTPS.

The Route template passes your tls block through unchanged, so passthrough or reencrypt needs no template edit. passthrough requires TLS at the pod, which the Console Service port does not serve. reencrypt also requires a destinationCACertificate and a TLS-serving pod port.

LimitRange floor

A namespace LimitRange enforces minimum CPU and memory requests per container separately from the restricted-v2 SCC. Several base chart defaults sit below a common 100m CPU and 128Mi memory floor, including the Conjur authenticator init container (10m CPU / 32Mi memory) and the Console CPU request (50m CPU).

The overlay sets every container in the table at or above 100m CPU and 128Mi memory. For the Console (dapp), the overlay raises CPU from the base chart's 50m request / 200m limit to 100m request / 1 CPU limit, while lowering memory from the base chart's 512Mi request / 756Mi limit to 256Mi request / 512Mi limit. Override dapp.resources in your values.yaml if your deployment needs the base chart's higher memory ceiling.

These overlay values replace the base sizing in Resource sizing:

global:
  conjur:
    resources:
      requests:
        cpu: "100m"
        memory: "128Mi"
      limits:
        cpu: "200m"
        memory: "256Mi"

dapp:
  resources:
    requests:
      cpu: 100m
      memory: 256Mi
    limits:
      cpu: "1"
      memory: 512Mi
Container
CPU / memory request
CPU / memory limit
Conjur authenticator init container
100m / 128Mi
200m / 256Mi
Console
100m / 256Mi
1 CPU / 512Mi
Console migrator Job
100m / 256Mi
500m / 512Mi
Console tcpCheck init container
100m / 128Mi
300m / 128Mi
PgBouncer metrics sidecar
100m / 128Mi
200m / 128Mi
Platform API /api/v2 fleet
600m / 1536Mi
1500m / 3Gi
Platform API /api/v1 fleet
300m / 768Mi
1000m / 1536Mi
Runner
250m / 1536Mi
1500m / 3Gi
Indexer
1250m / 1536Mi
2000m / 3Gi
contracts-deploy Job
250m / 1Gi
2 CPU / 4Gi
PostgreSQL exporter (disabled unless you turn it on)
100m / 128Mi
200m / 128Mi

Compare your namespace LimitRange floor against every row before deploying. A floor higher than the overlay's request rejects pod creation with an admission event naming the container. See Values and secrets for how the Conjur authenticator receives credentials.

Preconditions beyond the security context

For an air-gapped OpenShift cluster, mirror the chart and every container image into an internal registry by digest. List every image a release pulls with:

helm template dalp ./dalp \
  -f ./dalp/values-openshift.yaml \
  -f values.yaml \
  | grep 'image:' | sort -u

Confirm every image reference, including init and utility containers, carries an explicit registry, repository and tag or digest. The overlay supplies mirrored-registry overrides for the kubectl helper and Conjur authenticator, and each digest must exist in your mirror.

The Platform API, Workflow Engine, Ledger Data and scheduler run as four separate distroless images with no shell, so mirror all four. Any wrapper entrypoint, including Conjur summon (Values and secrets), must run in exec form rather than through /bin/sh -c.

Every Route host, the Console public URL and the direct Platform API Route origin ship as local apps-crc.testing placeholders. Override every openShiftRoute.host, global.dalpApp.config.app.http.url and the https://dapi.apps-crc.testing entry in global.dalpApp.config.auth.consoleUrls in your values.yaml. When enabling the Investor portal, also set global.dalpApp.env.INVESTOR_PORTAL_URL to its public Route host or the render fails.

Set the Console public URL only in global.dalpApp.config.app.http.url as a plain https:// URL. Both the Console and Platform API read that value to validate session origins. The chart rejects dapp.config.app, dapi.config.app, ${...} placeholders in the URL, and Helm template expressions inside global.dalpApp.config.

The observability overlay pins VictoriaMetrics and VictoriaLogs to the standard-csi StorageClass. Without that class, those PersistentVolumeClaims stay Pending. Override server.persistentVolume.storageClassName for both stores in your values.yaml.

The overlay enables deny-by-default NetworkPolicies for both the Console (dapp.networkPolicy.enabled: true) and Investor portal (investorPortal.networkPolicy.enabled: true). The Console egress allow list matches same-namespace pods only, which blocks external object storage, SMTP relays and external databases silently without an admission error. Add ipBlock peers for every external dependency to dapp.networkPolicy.egress (and investorPortal.networkPolicy.egress when enabled) in your values.yaml.

Browser apps with user sessions

When the Console and Investor portal use separate Routes, each app serves /api and /dalp on its own host and forwards them to the private DAPI_INTERNAL_URL (default http://dalp-api:3001). Do not set a public DAPI_URL for the Portal. See Deploy browser apps with user sessions and the SDK browser guide.

Troubleshooting

Where in the pod lifecycle an OpenShift deployment failure lands.If the deploy fails or a pod stays unhealthy, start with when the failure happens rather than how it looks. A rejection before the pod object exists is an SCC error, the only case with no pod yet to inspect. A pod that exists but never starts is stuck on a LimitRange floor, a missing StorageClass, or a failed image pull, and the event attached to the pod names which. A pod that is already running and then fails points to the Route, the NetworkPolicy egress allow list, or the router timeout, none of which leave any event on the pod at all. Each case is covered in the accordions below.Where in the pod lifecycle an OpenShift deployment failure lands.If the deploy fails or a pod stays unhealthy, start with when the failure happens rather than how it looks. A rejection before the pod object exists is an SCC error, the only case with no pod yet to inspect. A pod that exists but never starts is stuck on a LimitRange floor, a missing StorageClass, or a failed image pull, and the event attached to the pod names which. A pod that is already running and then fails points to the Route, the NetworkPolicy egress allow list, or the router timeout, none of which leave any event on the pod at all. Each case is covered in the accordions below.

A deployment failure lands in one of three phases: rejected before the pod exists, stuck before it starts, or failing once it is running.

Pod rejected with an SCC or security-context error

Check for a non-zero runAsGroup, runAsUser, or fsGroup still set somewhere in your values: the overlay clears all three so OpenShift can assign compliant values itself, and a leftover fixed value anywhere in the chain overrides that clearing. Confirm with oc get events: an SCC denial names the constraint it failed against, whether that is runAsGroup, an added capability, or a missing seccompProfile.

Pod stuck pending on resource requests

Confirm your namespace's LimitRange floor accepts the chart's requested CPU and memory. The overlay sets minimum requests of 100m CPU / 256Mi memory for Console and 100m CPU / 128Mi memory for Conjur. It also supplies minimum requests for the migrator Job, tcpCheck init container, PgBouncer metrics sidecar, Platform API roles, contracts-deploy Job and PostgreSQL exporter. A request below the floor is rejected at admission and not retried, so inspect the workload controller's events for rejected pod creation as well as any existing pod's scheduling events.

PersistentVolumeClaim stuck pending

Confirm your cluster provides a StorageClass named standard-csi, the name the observability overlay pins for VictoriaMetrics and VictoriaLogs. A cluster without that class leaves the PVC Pending with a provisioning event naming the missing class. Point server.persistentVolume.storageClassName at a class your cluster has.

Route not reachable

Confirm the service's openShiftRoute.enabled matches what you expect: the block explorer's own API and the Platform API ship it false by default, so a missing Route for them is the shipped state. For a service you do expect a Route on, confirm openShiftRoute.enabled is true and that httpRoute/ingress are not also enabled for the same service, since only one exposure mechanism should be active at a time. Inspect every rendered Ingress, HTTPRoute, and Route when several exposure mechanisms are enabled. Confirm which controller owns each hostname and its TLS settings.

Console lost an external dependency after applying the overlay

Confirm dapp.networkPolicy.egress (and investorPortal.networkPolicy.egress if the portal is on) names every external endpoint the deployment depends on: object storage, an SMTP relay, an external database. Enabling the Console NetworkPolicy makes egress deny-by-default, and the chart's own allow list covers only same-namespace, chart-deployed dependencies. Anything else needs an explicit ipBlock peer, or its connections fail with no admission error, which looks like a network outage.

Console times out on a slow request instead of completing

The Console Route's HAProxy timeout is 5 minutes by default. A request that legitimately needs longer, such as a large asset-creation write under load, returns a 504 from the router before the application finishes. Raise openShiftRoute.timeout for the affected service.

Image pull fails on an air-gapped cluster

An air-gapped cluster cannot resolve an implicit public registry, so any image reference without an explicit registry, repository, and tag or digest fails to pull. Check init and utility images specifically, not only the main application images: the kubectl utility image and the Conjur authenticator image both need their registry overridden to your cluster's mirrored path. A missed override on either fails only the Job or init container that uses it, not the whole release, which makes it easy to miss in a partial rollout.

Frequently asked questions

Do I need to pass both values files, or does the overlay stand on its own?

Pass both, with the overlay first: -f ./dalp/values-openshift.yaml -f values.yaml. Helm loads the chart's built-in defaults, applies the OpenShift restricted-v2 and Route overrides from values-openshift.yaml, and then applies your values.yaml on top so your production hostnames, datastore URLs and external egress rules win. Keep runAsUser, runAsGroup and fsGroup unset in your values.yaml so you do not undo the overlay's SCC posture.

Is restricted-v2 mandatory, or does this overlay also work under a less restrictive SCC?

The overlay is written for restricted-v2, and the chart does not enforce it. Because it clears fixed IDs, drops capabilities and runs non-root, a less restrictive SCC also admits it. Verify admission against your cluster's SCC and local policies.

Can I raise the Conjur authenticator's resources further if my namespace needs more than the overlay sets?

Yes. global.conjur.resources sets one shared floor for every Conjur-enabled pod. Override those keys in your values.yaml, which comes after -f ./dalp/values-openshift.yaml, and your higher values take precedence.

Does disabling ingress also disable the Kubernetes Service, cutting off traffic inside the cluster?

No. Ingress and Routes control external exposure only. Disabling ingress.enabled keeps every ClusterIP Service intact, so in-cluster traffic continues working unchanged.

Does upgrading an existing OpenShift install need anything beyond the normal upgrade path?

No overlay-specific step is needed: run helm upgrade with the same -f ./dalp/values-openshift.yaml -f values.yaml order. See Upgrades and migrations for rollout and migration-Job mechanics.

Was this page helpful?