Last active
February 21, 2021 21:00
-
-
Save jakubhajek/1ea3631af40362ec7948a3bfa87ae473 to your computer and use it in GitHub Desktop.
Ingress configuration for Harbor running on Traefik
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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