Jaigouk.Kim
Jaigouk.Kim

Let the ideas flow.

Jaigouk KIm
Author

Share


Tags


Jaigouk.Kim

Deploying harbor

Deploying harbor arm64 registry to raspberry pi k3s cluster

It took some time to find a simple and easy way to deploy registry with UI to my rpi k3s cluster. The official repo does not provide arm64 images and it requires high memory. I found a way to deploy harbor on my rpi 4 cluster.

git clone https://github.com/querycap/harbor.git
cd harbor
make dep
cd components/harbor

edit cue files

app.cue file

package harbor

import (
	harbor "github.com/goharbor/harbor-helm:chart"
)

{
	apiVersion: "octohelm.tech/v1alpha"
	kind:       "Release"
	metadata: namespace: "harbor-system"
	metadata: labels: context: "default"
	#name:      "harbor"
	#namespace: "harbor-system"
	#context:   *"hw-sg" | string

values.cue file

change the tag based on querycap`s harbor/harbor-portal

package harbor

#values: {
	host:          *"harbor.example.io" | string
	adminPassword: *"xxxxxx" | string

	image: repo: "ghcr.io/querycap/harbor"
	image: tag:  "ec0ba11"
}

install cue and deploy

go install cuelang.org/go/cmd/[email protected]

cuem k show commponents/harber > result.yaml

# edit result.yaml

kubectl apply -f result.yaml

harbor-on-kubenetes

dex OIDC

To make harbor more secure, I installed dex

here are the links for installing it

Jaigouk KIm
Author

Jaigouk KIm

View Comments