Browse Source

deploy gitea

master
sseneca 1 year ago
parent
commit
46741d2b8c
  1. 27
      gitea/db-storage.yaml
  2. 5
      gitea/namespace.yaml
  3. 68
      gitea/release.yaml
  4. 15
      gitea/secrets.yaml

27
gitea/db-storage.yaml

@ -0,0 +1,27 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: database-gitea
spec:
storageClassName: local-path
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /var/lib/databases/gitea
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: database-gitea
namespace: gitea
spec:
storageClassName: local-path
volumeName: database-gitea
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

5
gitea/namespace.yaml

@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: gitea

68
gitea/release.yaml

@ -0,0 +1,68 @@
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: gitea
namespace: gitea
annotations:
fluxcd.io/automated: "true"
fluxcd.io/tag.gitea: semver:~1
spec:
test:
enable: true
rollback:
enable: true
retry: true
releaseName: gitea
chart:
repository: https://dl.gitea.io/charts/
name: gitea
version: 1.4.8
valuesFrom:
- secretKeyRef:
name: gitea
values:
image:
repository: gitea/gitea
service:
ssh:
type: LoadBalancer
port: 22
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
hosts:
- git.ssene.ca
tls:
- hosts:
- git.ssene.ca
secretName: gitea-tls-cert
persistence:
storageClass: local-path
gitea:
admin:
username: sseneca
email: "me@ssene.ca"
config:
APP_NAME: "sseneca's gitea"
RUN_MODE: prod
repository:
PREFERRED_LICENSES: GPL-3.0+,Apache License 2.0,MIT License
ENABLE_PUSH_CREATE_USER: true
DEFAULT_BRANCH: main
service:
DISABLE_REGISTRATION: true
security:
PASSWORD_CHECK_PWN: true
postgresql:
image:
tag: 13.0.0
persistence:
existingClaim: database-gitea
volumePermissions:
enabled: true
psp:
Create: true
rbac:
create: true

15
gitea/secrets.yaml

@ -0,0 +1,15 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: gitea
namespace: gitea
spec:
encryptedData:
values.yaml: AgAwSkXB/0TC3bKYT3bjK+jcuLmHxC0lo4UuKm3/eqtIkMkfEqbbZcYGLAmaC/Ei3zlSGk731gRFheRQV47jJIwGSWKPsS/fVzS5RR5A5GjWIwESXVv+D056K8b52CjbMwPwtH+b1v4oVOvnAku9S4vgP2QCjN/3hh7dc8RpA8I76aOrfid45hwZqYbCFoMeKhfdNjrfNGOK2833l8bk+o86epkIVFoChcFG3+m5BmGkkB+7aViqH+CN4qLiDL2aH20tLxyos37ZDY7RjU0Hk2SZ369HOq9oozn30UaadcOo/7Wh0p4MKeOpqwaN1hs6muQ8uZPEQUVu8+bRkC9q3RD76dZuKbUFas2dCx6NcZDdNm80D7bVGRjMFGwlpd5BQFp+xGDCDWE1xopsMzg21t/eP7B0bvc9Mhj9urpG7dtKfGue2c4ad6Dt6ryBI0lHj9S3v+mE0eh0q+DxI0NinEZn8oJJ67mZg6qIl8/EhSp/Y2PyDfWvdRjiKegJkIZyWrZP0r2Bqschgyxs/q4fvaK+/MZG3jNrCv67H6zDembdInGAOJyvCFYlbGsKLQVJEWH3Xdl/6SLOYrAT7zcQunYQA143sgA65llOK4tHcj7fTbN75FF1xjiX4CpUcw1SyTU+pM7Eyd+PMG+S20uBVKscbRRdhn7+UvvoZhAPxLIX5Ceh1fx69YKrzW8Ss9RPvZAeDIWaaoM79PbQgJWrs1pCRrYDK6c5J+UISPOANk71D8aIViph6yBUg3PUQflVVbqqoHbJiDjNxqqlG8WkfeelsWCIkcgQUXZE2xgRtqLTgKjPZuzKSSviLMtdhMz689zFeSmQRkEEFsq2NS/TOckGl85wtbvl3FM3sgpMnQP5czZJHM0v/msF9crCM/czSncx/Uq3QQ66CpJH9NFvbcUBiyKsjjfpXuewLTqr8R4uiwM7JIsUVAxWhhr3ANFwLWxZKGt5a9xKhkXh2vWZW5dDH8s=
template:
metadata:
creationTimestamp: null
name: gitea
namespace: gitea
Loading…
Cancel
Save