Browse Source

add kustomize

pull/79/head
Megha Mehta 4 years ago
parent
commit
dc0cc27c37
  1. 20
      kustomize-guestbook/ingress.yaml
  2. 1
      kustomize-guestbook/kustomization.yaml
  3. 3
      kustomize-guestbook/overlays/dev/kustomization.yaml
  4. 3
      kustomize-guestbook/overlays/prod/kustomization.yaml

20
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: /

1
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

3
kustomize-guestbook/overlays/dev/kustomization.yaml

@ -0,0 +1,3 @@
bases:
- ../../
namePrefix: dev-

3
kustomize-guestbook/overlays/prod/kustomization.yaml

@ -0,0 +1,3 @@
bases:
- ../../
namePrefix: prod-
Loading…
Cancel
Save