Skip to content

Instantly share code, notes, and snippets.

@jakubhajek
Last active February 21, 2021 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakubhajek/1ea3631af40362ec7948a3bfa87ae473 to your computer and use it in GitHub Desktop.
Save jakubhajek/1ea3631af40362ec7948a3bfa87ae473 to your computer and use it in GitHub Desktop.
Ingress configuration for Harbor running on Traefik
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: harbor-portal
namespace: harbor
spec:
entryPoints:
- webs-int
routes:
- match: Host(`core-harbor.example.com`)
kind: Rule
services:
- name: harbor-harbor-portal
port: 80
- match: Host(`core-harbor.example.com`) && PathPrefix(`/api/`, `/service`, `/v2`, `/chartrepo`, `/c`)
middlewares:
kind: Rule
services:
- name: harbor-harbor-core
port: 80
- match: Host(`notary.example.com`)
middlewares:
kind: Rule
services:
- name: harbor-harbor-notary-server
port: 4443
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment