From 60156805c36a6ae056a06144dcf080414fb04024 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 14 Oct 2022 14:41:20 +0200 Subject: [PATCH] [Skip-CI] add ingress --- src/main/resources/ingress/http-ingress.yaml | 20 ++++++++++++++++ src/main/resources/ingress/https-ingress.yaml | 24 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 src/main/resources/ingress/http-ingress.yaml create mode 100644 src/main/resources/ingress/https-ingress.yaml diff --git a/src/main/resources/ingress/http-ingress.yaml b/src/main/resources/ingress/http-ingress.yaml new file mode 100644 index 0000000..3b274a4 --- /dev/null +++ b/src/main/resources/ingress/http-ingress.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: c4k-common-http-ingress + namespace: default + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: web + traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd +spec: + rules: + - host: FQDN + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: SERVICENAME + port: + number: 80 diff --git a/src/main/resources/ingress/https-ingress.yaml b/src/main/resources/ingress/https-ingress.yaml new file mode 100644 index 0000000..4d7fbe2 --- /dev/null +++ b/src/main/resources/ingress/https-ingress.yaml @@ -0,0 +1,24 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: c4k-common-https-ingress + namespace: default + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" +spec: + tls: + - hosts: + - FQDN + secretName: c4k-common-cert + rules: + - host: FQDN + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: SERVICENAME + port: + number: 80