diff --git a/kustomize-guestbook/ingress.yaml b/kustomize-guestbook/ingress.yaml new file mode 100644 index 0000000..7a96bbf --- /dev/null +++ b/kustomize-guestbook/ingress.yaml @@ -0,0 +1,20 @@ +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: kustomize-guestbook-ingress + namespace: guestbook + labels: + app.kubernetes.io/component: server + app.kubernetes.io/name: guestbook-server + app.kubernetes.io/part-of: guestbook + annotations: + kubernetes.io/ingress.class: traefik +spec: + rules: + - host: kustomize-guestbook-argocd.natwest-labs.com + http: + paths: + - backend: + serviceName: guestbook-ui + servicePort: 80 + path: / \ No newline at end of file diff --git a/kustomize-guestbook/kustomization.yaml b/kustomize-guestbook/kustomization.yaml index cbaba90..d22b5c8 100644 --- a/kustomize-guestbook/kustomization.yaml +++ b/kustomize-guestbook/kustomization.yaml @@ -3,5 +3,6 @@ namePrefix: kustomize- resources: - guestbook-ui-deployment.yaml - guestbook-ui-svc.yaml +- ingress.yaml apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization diff --git a/kustomize-guestbook/overlays/dev/kustomization.yaml b/kustomize-guestbook/overlays/dev/kustomization.yaml new file mode 100644 index 0000000..6517d4b --- /dev/null +++ b/kustomize-guestbook/overlays/dev/kustomization.yaml @@ -0,0 +1,3 @@ +bases: +- ../../ +namePrefix: dev- diff --git a/kustomize-guestbook/overlays/prod/kustomization.yaml b/kustomize-guestbook/overlays/prod/kustomization.yaml new file mode 100644 index 0000000..2310c0d --- /dev/null +++ b/kustomize-guestbook/overlays/prod/kustomization.yaml @@ -0,0 +1,3 @@ +bases: +- ../../ +namePrefix: prod-