Manually create a harbor ingress
This commit is contained in:
parent
30ab4f8a03
commit
d3c477b139
|
@ -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
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
interval: 5m
|
interval: 5m
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: harbor
|
chart: app-template
|
||||||
version: 1.3.x
|
version: 1.3.x
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
|
@ -16,19 +16,22 @@ spec:
|
||||||
|
|
||||||
values:
|
values:
|
||||||
expose:
|
expose:
|
||||||
|
type: clusterIP
|
||||||
|
|
||||||
tls:
|
tls:
|
||||||
secret:
|
enabled: false
|
||||||
secretName: wildcard-main-tls
|
# secret:
|
||||||
notarySecretName: wildcard-main-tls
|
# secretName: wildcard-main-tls
|
||||||
|
# notarySecretName: wildcard-main-tls
|
||||||
ingress:
|
#
|
||||||
hosts:
|
# ingress:
|
||||||
core: oci.${SECRET_NEW_DOMAIN}
|
# hosts:
|
||||||
notary: charts.${SECRET_NEW_DOMAIN}
|
# core: oci.${SECRET_NEW_DOMAIN}
|
||||||
|
# notary: charts.${SECRET_NEW_DOMAIN}
|
||||||
annotations:
|
#
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
# annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
# cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
|
# traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@ -45,7 +48,7 @@ spec:
|
||||||
s3:
|
s3:
|
||||||
bucket: harbor
|
bucket: harbor
|
||||||
existingSecret: "harbor-secret"
|
existingSecret: "harbor-secret"
|
||||||
regionendpoint: http://minio.database:9000
|
regionendpoint: https://s3.seanomik.net:9000
|
||||||
|
|
||||||
notary:
|
notary:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
@ -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
|
|
|
@ -4,3 +4,4 @@ resources:
|
||||||
- ./harbor-pv.yaml
|
- ./harbor-pv.yaml
|
||||||
- ./helm-repository.yaml
|
- ./helm-repository.yaml
|
||||||
- ./helm-release.yaml
|
- ./helm-release.yaml
|
||||||
|
- ./harbor-ingress.yaml
|
Loading…
Reference in New Issue