From a54c41da9db7f69a2f6f8a73e6c632af9c1da07a Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Wed, 27 Nov 2024 13:43:28 +0100 Subject: [PATCH] feat: Upgrade version and add SSL certificate --- README.md | 2 +- manifests/certificate.yaml | 12 ++++++++++++ manifests/deployment.yaml | 2 +- manifests/kustomization.yaml | 1 + 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 manifests/certificate.yaml diff --git a/README.md b/README.md index 8a2b683..df5589e 100644 --- a/README.md +++ b/README.md @@ -45,5 +45,5 @@ mv data/* /data/gitea And finally, restore the database ```bash -PGPASSWORD=$GITEA__database_PASSWD psql -h $GITEA__database_HOST -U $GITEA__database_USER < gitea-db.sql +PGPASSWORD=$GITEA__database__PASSWD psql -h gitea-db-rw.gitea.svc.cluster.local -U $GITEA__database__USER < halis_gitea.sql ``` diff --git a/manifests/certificate.yaml b/manifests/certificate.yaml new file mode 100644 index 0000000..ae0f89e --- /dev/null +++ b/manifests/certificate.yaml @@ -0,0 +1,12 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: gitea + namespace: gitea +spec: + secretName: git-halis-io-tls + dnsNames: + - git.halis.io + issuerRef: + name: letsencrypt-production + kind: ClusterIssuer diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 5620949..35b2ec9 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -17,7 +17,7 @@ spec: subdomain: gitea containers: - name: gitea - image: gitea/gitea:1.22.3 + image: gitea/gitea:1.22.4 ports: - containerPort: 3000 env: diff --git a/manifests/kustomization.yaml b/manifests/kustomization.yaml index 0301716..d1a652e 100644 --- a/manifests/kustomization.yaml +++ b/manifests/kustomization.yaml @@ -8,6 +8,7 @@ resources: - service.yaml - servicemonitor.yaml - ingress.yaml + - certificate.yaml - configmap.yaml - admin-creator.yaml - pvc.yaml