Skip to main contentNedix.io

Harbor registry

Provides a place to store container images.

Resources

Base

/base/harbor/kustomization.yaml
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: harbor
resources:
- namespace.yaml
/base/harbor/namespace.yaml
---
apiVersion: v1
kind: Namespace
metadata:
name: harbor
/base/harbor/harbor-chart.yaml
---
apiVersion: builtin
kind: HelmChartInflationGenerator
name: harbor
metadata:
name: bitnami-sealed-secrets-helm-chart

Create values.yaml

helm repo add bitnami https://charts.bitnami.com/bitnami \
&& helm show values --version 15.2.5 bitnami/harbor > values.yaml

Applying

kubectl kustomize --enable-helm | kubectl apply -f - \
&& kubectl wait -n harbor --for=condition=available deployments/harbor-release-nginx --timeout=-1s \
&& echo Username: "admin" \
&& echo Password: `kubectl get secret -n harbor harbor-release-core-envvars -o jsonpath="{.data.HARBOR_ADMIN_PASSWORD}" | base64 -d` \
&& kubectl -n harbor port-forward deployment/harbor-release-nginx :8443

References