From 3fa99a285237bf7323e18aee3c563069888f02d1 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Thu, 15 Jun 2023 23:31:15 +0000 Subject: [PATCH] Update file ingress.yaml --- kong/templates/ingress.yaml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 kong/templates/ingress.yaml diff --git a/kong/templates/ingress.yaml b/kong/templates/ingress.yaml new file mode 100644 index 0000000..c16e6c4 --- /dev/null +++ b/kong/templates/ingress.yaml @@ -0,0 +1,42 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: kong-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`kong.durp.info`) && PathPrefix(`/`) + kind: Rule + services: + - name: kong-kong-proxy + port: 443 + tls: + secretName: kong-tls + +--- + +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: kong-tls +spec: + secretName: kong-tls + issuerRef: + name: letsencrypt-production + kind: ClusterIssuer + commonName: "kong.durp.info" + dnsNames: + - "kong.durp.info" + +--- + +kind: Service +apiVersion: v1 +metadata: + name: kong-external-dns + annotations: + external-dns.alpha.kubernetes.io/hostname: kong.durp.info +spec: + type: ExternalName + externalName: durp.info