diff --git a/gitlab.values.yaml b/gitlab.values.yaml new file mode 100644 index 0000000..2ab86cf --- /dev/null +++ b/gitlab.values.yaml @@ -0,0 +1,49 @@ +gitlab: + toolbox: + enabled: false + gitlab-shell: + enabled: false + gitlab-pages: + enabled: false + gitlab-exporter: + enabled: false + kas: + minReplicas: 1 + webservice: + minReplicas: 1 + ingress: + requireBasePath: false +global: + hosts: + domain: localhost + https: false + gitlab: + name: localhost + https: false + ingress: + enabled: true + configureCertmanager: false + tls: + enabled: false + redis: + install: false +traefik: + enabled: false +gitlab-runner: + install: false +registry: + enabled: false +prometheus: + install: false +certmanager: + installCRDs: false + install: false + +nginx-ingress: + controller: + replicaCount: 1 + minAavailable: 1 + service: + type: NodePort + nodePorts: + http: 32080 diff --git a/makefile b/makefile index 8e952ed..bca3f7a 100644 --- a/makefile +++ b/makefile @@ -34,6 +34,10 @@ init-argo-workflows: init-kind init-piper: init-kind local-build sh ./scripts/init-piper.sh +.PHONY: init-gitlab +init-gitlab: init-kind + sh ./scripts/init-gitlab.sh + .PHONY: deploy deploy: init-kind init-nginx init-argo-workflows local-build local-push init-piper diff --git a/scripts/init-gitlab.sh b/scripts/init-gitlab.sh new file mode 100644 index 0000000..8662bf5 --- /dev/null +++ b/scripts/init-gitlab.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -o errexit + +if [ -z "$(helm list -n gitlab | grep gitlab)" ]; then + # 8. Install gitlab + helm repo add gitlab https://charts.gitlab.io/ + helm upgrade --install gitlab --create-namespace -n gitlab gitlab/gitlab -f gitlab.values.yaml +else + echo "Gitlab release exists, skipping installation" +fi \ No newline at end of file diff --git a/scripts/init-kind.sh b/scripts/init-kind.sh index ec81173..f1fb2c5 100644 --- a/scripts/init-kind.sh +++ b/scripts/init-kind.sh @@ -31,6 +31,9 @@ nodes: - containerPort: 443 hostPort: 443 protocol: TCP + - containerPort: 32080 + hostPort: 8080 + listenAddress: "0.0.0.0" containerdConfigPatches: - |- [plugins."io.containerd.grpc.v1.cri".registry]