From 2e5b3d01ebadae3ec8652ebfdf7de81d39568364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20M=C3=A9ausoone?= Date: Thu, 10 Oct 2019 13:44:51 +0200 Subject: [PATCH] kustomize: add page (#3360) --- pages/common/kustomize.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/kustomize.md diff --git a/pages/common/kustomize.md b/pages/common/kustomize.md new file mode 100644 index 000000000..b1ca86bc7 --- /dev/null +++ b/pages/common/kustomize.md @@ -0,0 +1,20 @@ +# kustomize + +> Kustomize is a tool to easily deploy resources for Kubernetes. +> More information: . + +- Create kustomization file with resources and namespace: + +`kustomize create --resources {{deployment.yaml,service.yaml}} --namespace {{staging}}` + +- Build kustomization file and deploy it with kubectl: + +`kustomize build . | kubectl apply -f -` + +- Set image in the kustomization file: + +`kustomize edit set image {{busybox=alpine:3.6}}` + +- Search for kubernetes resources in the current directory to be added to the kustomization file: + +`kustomize create --autodetect`