diff --git a/high/apps/monica/ingress.yaml b/high/apps/monica/ingress.yaml new file mode 100644 index 0000000..322ad04 --- /dev/null +++ b/high/apps/monica/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + labels: + app.kubernetes.io/component: app + app.kubernetes.io/instance: monicahq + app.kubernetes.io/name: monica + name: monicahq + namespace: monicahq +spec: + ingressClassName: traefik + rules: + - host: monica.k.zroot.org + http: + paths: + - backend: + service: + name: monicahq + port: + number: 8080 + path: / + pathType: Prefix + - backend: + service: + name: notfound + port: + number: 80 + path: /register + pathType: Prefix \ No newline at end of file diff --git a/high/apps/monica/kustomization.yaml b/high/apps/monica/kustomization.yaml index e72e105..7f92c8c 100644 --- a/high/apps/monica/kustomization.yaml +++ b/high/apps/monica/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - gitrepository.yaml - helmrelease.yaml + - ingress.yaml configMapGenerator: - name: monicahq-values namespace: flux-system diff --git a/high/apps/monica/values.yaml b/high/apps/monica/values.yaml index 3f8c603..cc5841c 100644 --- a/high/apps/monica/values.yaml +++ b/high/apps/monica/values.yaml @@ -6,8 +6,8 @@ image: replicaCount: 1 ingress: - enabled: true - # className: nginx + enabled: false + className: treafik annotations: # nginx.ingress.kubernetes.io/proxy-body-size: 4G kubernetes.io/tls-acme: "true"