From 4203a1c837d2692f91cf3e8f41508065b53367f7 Mon Sep 17 00:00:00 2001 From: iverly Date: Thu, 18 Apr 2024 16:29:31 +0200 Subject: [PATCH] feat(app): add ingress with tls for hello world Signed-off-by: iverly --- apps/hello-world/kustomization.yaml | 1 + apps/hello-world/manifests/ingress.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 apps/hello-world/manifests/ingress.yaml diff --git a/apps/hello-world/kustomization.yaml b/apps/hello-world/kustomization.yaml index 812672d..a931bb0 100644 --- a/apps/hello-world/kustomization.yaml +++ b/apps/hello-world/kustomization.yaml @@ -4,4 +4,5 @@ namespace: hello-world-app resources: - manifests/deployment.yaml + - manifests/ingress.yaml - manifests/service.yaml diff --git a/apps/hello-world/manifests/ingress.yaml b/apps/hello-world/manifests/ingress.yaml new file mode 100644 index 0000000..4a68839 --- /dev/null +++ b/apps/hello-world/manifests/ingress.yaml @@ -0,0 +1,24 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: hello-world + annotations: + cert-manager.io/cluster-issuer: cluster-issuer +spec: + ingressClassName: nginx + rules: + - host: hello-world.apko.do-2021.fr + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: hello-world + port: + number: 8080 + tls: + - hosts: + - hello-world.apko.do-2021.fr + secretName: hello-world.apko.do-2021.fr