Skip to content

isaron/gitea-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setup Gitea on Kubernetes Cluster

Cloned from

  1. helm

Mostly cloned from [WIP] Adds Gitea to the incubator #3408, and cdrage's original source.

And from this, i upgrade Gitea version to 1.5, modifiy PVC using nfs-client, using initContainers to initial rights settings.

  1. manifest

Cloned from jmferrer/gitea-kubernetes and norbertvannobelen/gitea-kubernetes.

And from this, i upgrade Gitea version to 1.5 and modifiy PVC using nfs-client.

Two ways to setup Gitea on Kubernetes cluster

  1. Pre
  • Prepare Kubernetes cluster ready before install Gitea;

  • Prepare ingress, namespace, secret etc.

  1. Helm
  • Clone this repo first:
git clone https://github.com/isaron/gitea-kubernetes.git && cd gitea-kubernetes/helm
  • Check values.yaml if you want modify yours config, and save as myvalue.yaml, then install using Helm:
helm dep up .
helm install --name gitea --namespace env . -f myvalue.yaml
  1. Manifest
  • Clone this repo first:
git clone https://github.com/isaron/gitea-kubernetes.git && cd gitea-kubernetes/manifest
  • Check all files and save them, then install:
chmod +x createConfigMap.sh && ./createConfigMap.sh
kubectl apply -f .