Skip to content

Prioritize service instead of devspace UI when using port 8090 #3000

Description

@jackwilsdon

What happened?
Port forwarding a service on 8090 using devspace dev serves the UI instead of the service.

What did you expect to happen instead?
The service should take priority and the UI should run on the next available port.

How can we reproduce the bug? (as minimally and precisely as possible)
Run devspace dev with the following devspace.yaml:

version: v2beta1
name: whoami
deployments:
  api:
    helm:
      chart:
        name: component-chart
        repo: https://charts.devspace.sh
      values:
        containers:
          - image: traefik/whoami
            env:
              - name: WHOAMI_PORT_NUMBER
                value: "8090"
        service:
          ports:
            - port: 8090
dev:
  api:
    imageSelector: traefik/whoami
    ports:
      - port: "8090"

Local Environment:

  • DevSpace Version: 6.3.17
  • Operating System: mac
  • ARCH of the OS: ARM64

Kubernetes Cluster:

  • Cloud Provider: docker desktop
  • Kubernetes Version: client: v1.33.3, server: v1.32.2

Activity

  1. lizardruss commented on Sep 4, 2025

    @lizardruss
    Collaborator

    Hello!

    You can re-map the local port to avoid the conflict:

    ...
    dev:
      api:
        imageSelector: traefik/whoami
        ports:
          - port: "8091:8090"

    Hope that helps!

  2. jackwilsdon commented on Sep 5, 2025

    @jackwilsdon
    ContributorAuthor

    I can change the port it's exposed on, but it'd be nice to be able to use any port (a number of our services use 8090, and it'd be good if it used the same port when running inside and outside of Kubernetes).

  3. changed the title [-]Port forwarding conflict with UI[/-] [+]Prioritize service instead of devspace UI when using port 8090[/+] on Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions