Skip to content

Commit

Permalink
fix: add dashboard redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrabovcin committed Jan 8, 2025
1 parent 55d6694 commit ee25b48
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion services/harbor/1.16.0/release/harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,38 @@ metadata:
"kommander.d2iq.io/application": "harbor"
data:
name: "Harbor"
dashboardLink: "https://<ip_or_fqdn_istio_ingress_svc>:5000/"
dashboardLink: "/dkp/harbor"
docsLink: "https://goharbor.io/docs/2.12.0/"
version: "2.12.0"
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: harbor-port-redirect
namespace: ${releaseNamespace}
spec:
redirectRegex:
regex: https://([^/]+)/(.*)
replacement: https://${1}:5000/
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/protocol: https
traefik.ingress.kubernetes.io/router.middlewares: kommander-harbor-port-redirect@kubernetescrd
traefik.ingress.kubernetes.io/router.tls: "true"
name: harbor-redirect
namespace: ${releaseNamespace}
spec:
ingressClassName: kommander-traefik
rules:
- http:
paths:
- backend:
service:
name: kommander
port:
number: 80
path: /dkp/harbor
pathType: Prefix

0 comments on commit ee25b48

Please sign in to comment.