From 055fc885339eb48b15585e7643b343799bea87e6 Mon Sep 17 00:00:00 2001 From: Dan Manners Date: Sat, 16 Sep 2023 10:39:49 -0400 Subject: [PATCH] Switching to proper HA --- manifests/workloads/gitea/values.yaml | 64 +++++++++++++++------------ 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/manifests/workloads/gitea/values.yaml b/manifests/workloads/gitea/values.yaml index 9501f78d..03f5f0e2 100644 --- a/manifests/workloads/gitea/values.yaml +++ b/manifests/workloads/gitea/values.yaml @@ -1,47 +1,27 @@ -replicaCount: 1 +replicaCount: 2 global: imageRegistry: core.harbor.homelab.danmanners.com/docker.io storageClass: ceph-rbd persistence: - storageClass: ceph-rbd + storageClass: cephfs size: 40Gi + accessModes: + - ReadWriteMany strategy: - type: Recreate - -service: - http: - type: ClusterIP - clusterIP: "" - ssh: - type: LoadBalancer - annotations: - metallb.universe.tf/allow-shared-ip: "globalingress-10.4.240.2" - metallb.universe.tf/loadBalancerIPs: 10.4.240.2 - -ingress: - enabled: true - apiVersion: networking.k8s.io/v1 - className: nginx - annotations: - cert-manager.io/cluster-issuer: acme-prod - hosts: - - host: git.homelab.danmanners.com - paths: - - path: / - pathType: Prefix - tls: - - secretName: gitea-cert - hosts: - - git.homelab.danmanners.com + type: RollingUpdate + maxUnavailable: 1 + # type: Recreate gitea: admin: existingSecret: gitea-creds config: APP_NAME: "Not Your Mommas's GitHub" + cron.GIT_GC_REPOS: + ENABLED: false additionalConfigSources: - configMap: name: gitea-app-ini-plaintext @@ -63,6 +43,32 @@ gitea: name: gitdb-user-creds key: GITEA_DB_PASSWORD +service: + http: + type: ClusterIP + clusterIP: "" + ssh: + type: LoadBalancer + annotations: + metallb.universe.tf/allow-shared-ip: "globalingress-10.4.240.2" + metallb.universe.tf/loadBalancerIPs: 10.4.240.2 + +ingress: + enabled: true + apiVersion: networking.k8s.io/v1 + className: nginx + annotations: + cert-manager.io/cluster-issuer: acme-prod + hosts: + - host: git.homelab.danmanners.com + paths: + - path: / + pathType: Prefix + tls: + - secretName: gitea-cert + hosts: + - git.homelab.danmanners.com + postgresql-ha: enabled: false