From dc0cc27c371c81d6f28e5b87c2823a505c9e440d Mon Sep 17 00:00:00 2001 From: Megha Mehta <76773785+mm2020-ind@users.noreply.github.com> Date: Tue, 2 Mar 2021 16:00:59 +0530 Subject: [PATCH] add kustomize --- kustomize-guestbook/ingress.yaml | 20 +++++++++++++++++++ kustomize-guestbook/kustomization.yaml | 1 + .../overlays/dev/kustomization.yaml | 3 +++ .../overlays/prod/kustomization.yaml | 3 +++ 4 files changed, 27 insertions(+) create mode 100644 kustomize-guestbook/ingress.yaml create mode 100644 kustomize-guestbook/overlays/dev/kustomization.yaml create mode 100644 kustomize-guestbook/overlays/prod/kustomization.yaml 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-