From 1a782d4a29e8ae6128fddba5495299f7b58a12f2 Mon Sep 17 00:00:00 2001 From: douzeb Date: Tue, 20 Dec 2022 17:38:52 +0100 Subject: [PATCH] Add an ingress definition --- deploy/k8s-poc-demo/base/ingress.yaml | 25 +++++++++++++++++++++ deploy/k8s-poc-demo/base/kustomization.yaml | 1 + 2 files changed, 26 insertions(+) create mode 100644 deploy/k8s-poc-demo/base/ingress.yaml diff --git a/deploy/k8s-poc-demo/base/ingress.yaml b/deploy/k8s-poc-demo/base/ingress.yaml new file mode 100644 index 0000000..af4c286 --- /dev/null +++ b/deploy/k8s-poc-demo/base/ingress.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: k8s-poc-ingress + annotations: + kubernetes.io/ingress.class: "nginx" + #cert-manager.io/issuer: "letsencrypt-staging" +spec: + tls: + - hosts: + - k8s-poc.distrilab.org + secretName: k8s-poc-tls-secret + rules: + - host: k8s-poc.distrilab.org + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: k8s-poc-nginx-service + port: + number: 80 + diff --git a/deploy/k8s-poc-demo/base/kustomization.yaml b/deploy/k8s-poc-demo/base/kustomization.yaml index a944d00..b207582 100644 --- a/deploy/k8s-poc-demo/base/kustomization.yaml +++ b/deploy/k8s-poc-demo/base/kustomization.yaml @@ -1,3 +1,4 @@ resources: - deployment.yaml - service.yaml +- ingress.yaml