Skip to content
Stackship documentation Svenska

Lifecycle ManagerAdministrators

Workload ingress configuration

The operator settings that route customer-facing traffic through an ingress class and controller of its own, apart from the platform's own hosts, and how a function namespace without a host resolves its domain.

The operator — Platform Operator on the Lifecycle Manager's Components tab — writes every customer-facing route: Apps, container instances, functions, static web apps and S3 accounts. A small group of settings controls which ingress class and controller those routes use, kept apart from the platform's own hosts (the portal, the API, Keycloak). Every one of them is optional; left unset, the operator behaves exactly as it did before they existed.

On a platform that runs a separate ingress for customer traffic, the installer and the Lifecycle Manager set these together. Setting them by hand is rarely necessary.

Settings

They reach the operator as environment variables from its ConfigMap, stackship-operator-config in stackship-system (section Kubernetes of its appsettings.json), read when it starts.

Environment variable Default Meaning
Kubernetes__IngressClassName nginx The platform's own ingress class — its hosts, and the fallback for the two settings below when they are unset.
Kubernetes__WorkloadIngressClassName empty The ingress class of every customer-facing route. On Traefik it is also written as the kubernetes.io/ingress.class annotation on the route, which is how a class-filtered Traefik picks it up. Empty falls back to Kubernetes__IngressClassName, and no annotation is written.
Kubernetes__IngressProvider empty Which ingress controller the operator writes customer-facing routes for: traefik (Traefik IngressRoutes) or nginx (standard Ingress). Empty keeps the previous rule — Traefik only when Kubernetes__IngressClassName is exactly traefik, nginx otherwise. Any other value stops the operator, naming the setting.
Kubernetes__TraefikEntryPoints__Http web The Traefik entrypoint written on an HTTP-only customer-facing route.
Kubernetes__TraefikEntryPoints__Https websecure The Traefik entrypoint written on a TLS customer-facing route.
Functions__ClusterDomain stackship.local The domain a function namespace with no host of its own is served at — see Function namespace host.

Function namespace host

A function namespace with an explicit host is served there, unchanged. One without a host used to be served at {name}.{Kubernetes__IngressClassName} — the platform's ingress class, read as if it were a domain suffix. It is now served at {name}.{Functions__ClusterDomain} instead, so its domain no longer shifts when the ingress class does. Reconciling a function namespace that has no host and no Functions__ClusterDomain configured fails, naming the setting.

After changing a setting

Restart the operator to pick up a ConfigMap change:

bash
kubectl -n stackship-system rollout restart deployment/stackship-operator

Changing Kubernetes__WorkloadIngressClassName re-applies every customer-facing route with the new class and annotation on the next reconcile, without any other change to the resource.