harbor
Harbor is an open source trusted cloud-native registry to store, sign, and scan content. It adds functionalities like security, identity, and management to the open source Docker distribution.
About this chart
Harbor packaged by Bitnami
Harbor is an open source trusted cloud-native registry to store, sign, and scan content. It adds functionalities like security, identity, and management to the open source Docker distribution.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/harbor
Introduction
This Helm chart installs Harbor in a Kubernetes cluster. Welcome to contribute to Helm Chart for Harbor.
This Helm chart has been developed based on goharbor/harbor-helm chart but including some features common to the Bitnami chart library. For example, the following changes have been introduced:
- Possibility to pull all the required images from a private registry through the Global Docker image parameters.
- RedisĀ® and PostgreSQL are managed as chart dependencies.
- Liveness and Readiness probes for all deployments are exposed to the values.yaml.
- Uses new Helm chart labels formatting.
- Uses Bitnami container images:
- non-root by default
- published for debian-10 and ol-7
- This chart support the Harbor optional components Chartmuseum and Notary integrations.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
Installing the Chart
Install the Harbor helm chart with a release name my-release:
helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/harbor
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete --purge my-release
Additionally, if persistence.resourcePolicy is set to keep, you should manually delete the PVCs.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common Parameters
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template with a string | "" |
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release (evaluated as a template). | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the the deployment(s)/statefulset(s) | ["sleep"] |
diagnosticMode.args | Args to override all containers in the the deployment(s)/statefulset(s) | ["infinity"] |
Harbor common parameters
| Name | Description | Value |
|---|---|---|
adminPassword | The initial password of Harbor admin. Change it from portal after launching Harbor | "" |
externalURL | The external URL for Harbor Core service | https://core.harbor.domain |
proxy.httpProxy | The URL of the HTTP proxy server | "" |
proxy.httpsProxy | The URL of the HTTPS proxy server | "" |
proxy.noProxy | The URLs that the proxy settings not apply to | 127.0.0.1,localhost,.local,.internal |
proxy.components | The component list that the proxy settings apply to | ["core","jobservice","trivy"] |
logLevel | The log level used for Harbor services. Allowed values are [ fatal | error | warn | info | debug | trace ] | debug |
internalTLS.enabled | Use TLS in all the supported containers: chartmuseum, core, jobservice, portal, registry and trivy | false |
internalTLS.caBundleSecret | Name of an existing secret with a custom CA that will be injected into the trust store for chartmuseum, core, jobservice, registry, trivy components | "" |
ipFamily.ipv6.enabled | Enable listening on IPv6 ([::]) for NGINX-based components (NGINX,portal) | true |
ipFamily.ipv4.enabled | Enable listening on IPv4 for NGINX-based components (NGINX,portal) | true |
Traffic Exposure Parameters
| Name | Description | Value |
|---|---|---|
exposureType | The way to expose Harbor. Allowed values are [ ingress | proxy ] | proxy |
service.type | NGINX proxy service type | LoadBalancer |
service.ports.http | NGINX proxy service HTTP port | 80 |
service.ports.https | NGINX proxy service HTTPS port | 443 |
service.ports.notary | Notary service port | 4443 |
service.nodePorts.http | Node port for HTTP | "" |
service.nodePorts.https | Node port for HTTPS | "" |
service.nodePorts.notary | Node port for Notary | "" |
service.sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
service.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
service.clusterIP | NGINX proxy service Cluster IP | "" |
service.loadBalancerIP | NGINX proxy service Load Balancer IP | "" |
service.loadBalancerSourceRanges | NGINX proxy service Load Balancer sources | [] |
service.externalTrafficPolicy | NGINX proxy service external traffic policy | Cluster |
service.annotations | Additional custom annotations for NGINX proxy service | {} |
service.extraPorts | Extra port to expose on NGINX proxy service | [] |
ingress.core.ingressClassName | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | "" |
ingress.core.pathType | Ingress path type | ImplementationSpecific |
ingress.core.apiVersion | Force Ingress API version (automatically detected if not set) | "" |
ingress.core.controller | The ingress controller type. Currently supports default, gce and ncp | default |
ingress.core.hostname | Default host for the ingress record | core.harbor.domain |
ingress.core.annotations | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | {} |
ingress.core.tls | Enable TLS configuration for the host defined at ingress.core.hostname parameter | false |
ingress.core.selfSigned | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | false |
ingress.core.extraHosts | An array with additional hostname(s) to be covered with the ingress record | [] |
ingress.core.extraPaths | An array with additional arbitrary paths that may need to be added to the ingress under the main host | [] |
ingress.core.extraTls | TLS configuration for additional hostname(s) to be covered with this ingress record | [] |
ingress.core.secrets | Custom TLS certificates as secrets | [] |
ingress.core.extraRules | Additional rules to be covered with this ingress record | [] |
ingress.notary.ingressClassName | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | "" |
ingress.notary.pathType |
Deploy harbor with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has harbor on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartharbor is pinned at v16.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply