diff --git a/READ_ME.md b/READ_ME.md new file mode 100644 index 0000000..4abec10 --- /dev/null +++ b/READ_ME.md @@ -0,0 +1,18 @@ +Gitea was installed with the use of helm using the helm-values.yaml +```zsh + helm repo add gitea-charts https://dl.gitea.com/charts/ + + helm install gitea gitea-charts/gitea -f helm-values.yaml +``` + +if you want to upgrade the gitea helm use below command + +```zsh + helm upgrade gitea gitea-charts/gitea -f helm-values.yaml +``` + +Ingress is needed as well + +```zsh + kubectl apply -f gitea.yaml +``` \ No newline at end of file diff --git a/gitea.yml b/gitea.yml new file mode 100644 index 0000000..98da4f6 --- /dev/null +++ b/gitea.yml @@ -0,0 +1,24 @@ +# ============================= +# Ingress: Gitea +# ============================= +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: gitea-ingress + namespace: default + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls.certresolver: le +spec: + ingressClassName: traefik + rules: + - host: gitea.barthuygen.be + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: gitea-http + port: + number: 3000 \ No newline at end of file diff --git a/helm-values.yaml b/helm-values.yaml new file mode 100644 index 0000000..82ffd71 --- /dev/null +++ b/helm-values.yaml @@ -0,0 +1,12 @@ +gitea: + config: + openid: + ENABLE_OPENID_SIGNIN: false + ENABLE_OPENID_SIGNUP: false + service: + DISABLE_REGISTRATION: true + REGISTER_MANUAL_CONFIRM: true + admin: + username: bart.huygen + password: "ChangeMeStrongPassword!" + email: bart.huygen@stacktrace.be \ No newline at end of file