From d945b5d56b40d5105e9e627c063433c514a242b5 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 4 Jun 2023 01:10:47 -0400 Subject: [PATCH] fix gitea --- cluster/apps/default/gitea/gitea-pv.yaml | 16 ++++++++++++++++ cluster/apps/default/gitea/helm-release.yaml | 17 +++++++++++++---- 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 cluster/apps/default/gitea/gitea-pv.yaml diff --git a/cluster/apps/default/gitea/gitea-pv.yaml b/cluster/apps/default/gitea/gitea-pv.yaml new file mode 100644 index 0000000..1276266 --- /dev/null +++ b/cluster/apps/default/gitea/gitea-pv.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: gitea-pv + namespace: default + labels: + app.kubernetes.io/name: gitea-pv +spec: + storageClassName: hostpath + persistentVolumeReclaimPolicy: Retain + capacity: + storage: 30Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/mnt/MainPool/Kubernetes/gitea" \ No newline at end of file diff --git a/cluster/apps/default/gitea/helm-release.yaml b/cluster/apps/default/gitea/helm-release.yaml index a95e438..979188a 100644 --- a/cluster/apps/default/gitea/helm-release.yaml +++ b/cluster/apps/default/gitea/helm-release.yaml @@ -20,8 +20,12 @@ spec: persistence: enabled: true - existingClaim: false - hostPath: /mnt/MainPool/Kubernetes/gitea + size: 30Gi + selector: + matchLabels: + app.kubernetes.io/name: kube-prometheus-stack-pv + #existingClaim: + #hostPath: /mnt/MainPool/Kubernetes/gitea resources: requests: @@ -58,10 +62,15 @@ spec: annotations: cert-manager.io/cluster-issuer: letsencrypt-production traefik.ingress.kubernetes.io/router.entrypoints: websecure - hostname: "budget.${SECRET_NEW_DOMAIN}" + hostname: &host "budget.${SECRET_NEW_DOMAIN}" tls: true - secrets: false + extraTls: + - hosts: + - *host + secretName: wildcard-main-tls + + secrets: nil # secrets: # - wildcard-main-tls