harbor: Migrate to kustomize + ArgoCD
Still some stuff missing like proper DragonFly resources
This commit is contained in:
1
harbor/.gitignore
vendored
1
harbor/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
harbor.yml
|
@@ -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:
|
||||
|
||||

|
||||
|
File diff suppressed because it is too large
Load Diff
16
harbor/kustomization.yaml
Normal file
16
harbor/kustomization.yaml
Normal 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
|
Reference in New Issue
Block a user