feat: add harbor

This commit is contained in:
2024-11-13 00:17:08 -05:00
parent 8d1f37e9fc
commit 28b5152d82
2 changed files with 64 additions and 0 deletions

63
apps/base/harbor.yaml Normal file
View File

@@ -0,0 +1,63 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: harbor
---
apiVersion: onepassword.com/v1
kind: OnePasswordItem
metadata:
name: harbor-admin-password
namespace: harbor
spec:
itemPath: "vaults/cluster/items/harbor-admin-password"
---
apiVersion: onepassword.com/v1
kind: OnePasswordItem
metadata:
name: harbor-secret-key
namespace: harbor
spec:
itemPath: "vaults/cluster/items/harbor-secret-key"
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: harbor
namespace: harbor
spec:
interval: 15m0s
url: https://helm.goharbor.io
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: harbor
namespace: harbor
spec:
chart:
spec:
chart: harbor
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: harbor
version: v1.15.x
interval: 1m0s
releaseName: harbor
values:
expose:
type: ingress
tls:
enabled: true
certSource: secret
secret:
secretName: wildcard-cert-i.yadunut.dev-prod
ingress:
hosts:
core: harbor.yadunut.dev
externalURL: https://harbor.yadunut.dev
existingSecretAdminPassword: harbor-admin-password
existingSecretAdminPasswordKey: password
existingSecretSecretKey: harbor-secret-key

View File

@@ -3,3 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/podinfo.yaml
- ../base/harbor.yaml