diff --git a/cluster/apps/default/gitea/helm-release.yaml b/cluster/apps/default/gitea/helm-release.yaml index 979188a..f5cd567 100644 --- a/cluster/apps/default/gitea/helm-release.yaml +++ b/cluster/apps/default/gitea/helm-release.yaml @@ -58,19 +58,21 @@ spec: ssh: 30022 ingress: - enabled: true - annotations: - cert-manager.io/cluster-issuer: letsencrypt-production - traefik.ingress.kubernetes.io/router.entrypoints: websecure - hostname: &host "budget.${SECRET_NEW_DOMAIN}" - - tls: true - extraTls: - - hosts: - - *host - secretName: wildcard-main-tls - - secrets: nil + enabled: false +# annotations: +# cert-manager.io/cluster-issuer: letsencrypt-production +# traefik.ingress.kubernetes.io/router.entrypoints: websecure +# hostname: &host "budget.${SECRET_NEW_DOMAIN}" +# +# tls: true +# selfSigned: false +# +# extraTls: +# - hosts: +# - *host +# secretName: wildcard-main-tls +# +# secrets: nil # secrets: # - wildcard-main-tls diff --git a/cluster/apps/default/gitea/ingress.yaml b/cluster/apps/default/gitea/ingress.yaml new file mode 100644 index 0000000..6028100 --- /dev/null +++ b/cluster/apps/default/gitea/ingress.yaml @@ -0,0 +1,24 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: gitea-ingress + namespace: default + annotations: + cert-manager.io/cluster-issuer: letsencrypt-production + traefik.ingress.kubernetes.io/router.entrypoints: websecure +spec: + rules: + - host: &host "git.${SECRET_NEW_DOMAIN}" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: gitea + port: + number: 80 + tls: + - hosts: + - *host + secretName: wildcard-main-tls \ No newline at end of file diff --git a/cluster/apps/default/gitea/kustomization.yaml b/cluster/apps/default/gitea/kustomization.yaml index 3fd2935..2490acc 100644 --- a/cluster/apps/default/gitea/kustomization.yaml +++ b/cluster/apps/default/gitea/kustomization.yaml @@ -3,4 +3,5 @@ kind: Kustomization resources: - ./gitea-secret.sops.yaml - ./gitea-sidecar-secret.sops.yaml -- ./helm-release.yaml \ No newline at end of file +- ./helm-release.yaml +- ./ingress.yaml \ No newline at end of file