From abb7cb0c906b6708bfbdce473eb1cf0468cc49dc Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Wed, 3 Jul 2024 21:10:35 -0500 Subject: [PATCH] add ingress --- kustomize/ingress.yaml | 16 ++++++++++++++++ kustomize/kustomization.yaml | 1 + 2 files changed, 17 insertions(+) create mode 100644 kustomize/ingress.yaml diff --git a/kustomize/ingress.yaml b/kustomize/ingress.yaml new file mode 100644 index 0000000..641074b --- /dev/null +++ b/kustomize/ingress.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: toy-ingress +spec: + rules: + - http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: toy + port: + name: web diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index e39cf60..251340f 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -5,3 +5,4 @@ namespace: toy resources: - deployment.yaml - services.yaml + - ingress.yaml