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