harbor: Migrate to kustomize + ArgoCD

Still some stuff missing like proper DragonFly resources
This commit is contained in:
2025-07-12 16:27:17 +03:00
parent 754b2180fd
commit a6439a3bd1
4 changed files with 22 additions and 1327 deletions

1
harbor/.gitignore vendored
View File

@@ -1 +0,0 @@
harbor.yml

View File

@@ -5,12 +5,14 @@ kubectl create namespace harbor-operator
kubectl -n harbor-operator create secret generic harbor-minio-credentials --from-literal REGISTRY_STORAGE_S3_ACCESSKEY=...--from-literal=REGISTRY_STORAGE_S3_SECRETKEY=...
kubectl -n harbor-operator create secret generic harbor-postgres-password --from-literal password=...
helm repo add harbor https://helm.goharbor.io
```
# Deployment
With ArgoCD. Render it locally:
helm template -n harbor-operator --release-name harbor harbor/harbor --include-crds -f harbor/values.yaml > harbor/application.yml
kubectl apply -n harbor-operator -f harbor/application.yml -f harbor/application-extras.yml
```sh
kustomize build . --enable-helm
```
After deployment login with Harbor admin credentials and configure OIDC:
After initial deployment login with Harbor admin credentials and configure OIDC:
![OIDC configuration](harbor-oidc-config.png)

File diff suppressed because it is too large Load Diff

16
harbor/kustomization.yaml Normal file
View File

@@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: harbor-operator
# spec: https://kubectl.docs.kubernetes.io/references/kustomize/builtins/#_helmchartinflationgenerator_
helmCharts:
- includeCRDs: true
name: &name harbor
releaseName: *name
repo: https://helm.goharbor.io
valuesFile: values.yaml
version: 1.17.1
resources:
- ./application-extras.yml