From cad1103d7a4548d861be38ff0cbce873dcdb475a Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Tue, 12 Mar 2024 20:13:16 -0500 Subject: [PATCH] ingress preview --- hello-world/deployments/deployment.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/hello-world/deployments/deployment.yaml b/hello-world/deployments/deployment.yaml index b919f29..beccee9 100644 --- a/hello-world/deployments/deployment.yaml +++ b/hello-world/deployments/deployment.yaml @@ -120,3 +120,27 @@ spec: pathType: Prefix status: loadBalancer: {} + +--- + +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + labels: + service: hello-world + name: hello-world-ingress + namespace: hello-world +spec: + rules: + - host: localhost + http: + paths: + - backend: + service: + name: hello-world-preview + port: + number: 5000 + path: /preview + pathType: Prefix +status: + loadBalancer: {}