From f28ac40bd32d375297949f62d89984ada29273c8 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Wed, 13 Dec 2023 07:25:27 +1100 Subject: [PATCH] Create public domain for go links --- home-apps/go-links.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/home-apps/go-links.yaml b/home-apps/go-links.yaml index dbc7891..5c1a0e4 100644 --- a/home-apps/go-links.yaml +++ b/home-apps/go-links.yaml @@ -99,3 +99,30 @@ spec: number: 80 path: / pathType: Prefix + +--- + +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: go-links-public-ingress + annotations: + kubernetes.io/ingress.class: "nginx" + kubernetes.io/tls-acme: "true" + cert-manager.io/cluster-issuer: "letsencrypt-prod" +spec: + tls: + - hosts: + - go.junv.me + secretName: go-links-webhook-tls + rules: + - host: go.junv.me + http: + paths: + - backend: + service: + name: go-links + port: + number: 80 + path: / + pathType: Prefix