Manually create a harbor ingress

This commit is contained in:
SeanOMik 2023-04-16 01:23:39 -04:00
parent 30ab4f8a03
commit d3c477b139
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
4 changed files with 43 additions and 23 deletions

View File

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: harbor-core-ingress
namespace: default
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
rules:
- host: &host "oci.${SECRET_NEW_DOMAIN}"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: harbor
port:
number: 80
tls:
- hosts:
- *host
secretName: wildcard-main-tls

View File

@ -7,7 +7,7 @@ spec:
interval: 5m
chart:
spec:
chart: harbor
chart: app-template
version: 1.3.x
sourceRef:
kind: HelmRepository
@ -16,19 +16,22 @@ spec:
values:
expose:
type: clusterIP
tls:
secret:
secretName: wildcard-main-tls
notarySecretName: wildcard-main-tls
ingress:
hosts:
core: oci.${SECRET_NEW_DOMAIN}
notary: charts.${SECRET_NEW_DOMAIN}
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
enabled: false
# secret:
# secretName: wildcard-main-tls
# notarySecretName: wildcard-main-tls
#
# ingress:
# hosts:
# core: oci.${SECRET_NEW_DOMAIN}
# notary: charts.${SECRET_NEW_DOMAIN}
#
# annotations:
# cert-manager.io/cluster-issuer: letsencrypt-production
# traefik.ingress.kubernetes.io/router.entrypoints: websecure
persistence:
persistentVolumeClaim:
@ -45,7 +48,7 @@ spec:
s3:
bucket: harbor
existingSecret: "harbor-secret"
regionendpoint: http://minio.database:9000
regionendpoint: https://s3.seanomik.net:9000
notary:
enabled: false

View File

@ -1,8 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: harbor-charts
namespace: flux-system
spec:
interval: 1m
url: https://helm.goharbor.io

View File

@ -3,4 +3,5 @@ kind: Kustomization
resources:
- ./harbor-pv.yaml
- ./helm-repository.yaml
- ./helm-release.yaml
- ./helm-release.yaml
- ./harbor-ingress.yaml