Skip to content

[WIP] feat: prefer traefik for localdev#48

Open
bodom0015 wants to merge 1 commit intodevelopfrom
prefer-traefik-for-localdev
Open

[WIP] feat: prefer traefik for localdev#48
bodom0015 wants to merge 1 commit intodevelopfrom
prefer-traefik-for-localdev

Conversation

@bodom0015
Copy link
Copy Markdown
Member

Problems

Our prod deployments use Traefik

It would be nice to use this for localdev as well

Approach

  • Change default ingressClassName used when creating Ingress rules for UserApps

How to Test

Prerequisites:

  • Install Docker Desktop, enable Kubernetes
  1. Create traefik.values.yaml as follows:
hostNetwork: true

ports:
  web:
    port: 80
#     redirectTo:
#     port: websecure
  websecure:
    port: 443

securityContext:
  capabilities:
    drop: [ALL]
    add: [NET_BIND_SERVICE]
  readOnlyRootFilesystem: true
  runAsGroup: 0
  runAsNonRoot: false
  runAsUser: 0
  1. Install Traefik ingress controller with the values above: helm upgrade --install -n traefik --create-namespace traefik traefik/traefik -f traefik.values.yaml
  2. Checkout and run this branch locally
  3. Run to run Workbench locally: make dev
  4. Navigate to https://kubernetes.docker.internal
    • You should see Workbench is served at this URL
  5. Run kubectl get ing -n workbench and confirm that these ingress rules are served using traefik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant