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