Ingress & Domains

To connect a domain to a component deployment, you need to configure a so-called ingress. Ingresses control how external / incoming traffic is routed when entering the Kubernetes cluster.

To automatically create an ingress for a component, you can configure the ingress section for the component:

containers:
- image: dscr.io/${DEVSPACE_USERNAME}/appfrontend
service:
ports:
- port: 3000
ingress:
tls: true
rules:
- host: my-static-host.tld
- host: other-domain.tld
path: /login
warning

You need to define a service with at least one port to be able to use the ingress option (see example above).