Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: prefer traefik for localdev #48

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bodom0015
Copy link
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