From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Using Kustomize

Using Kustomize

- A different way to manage applications is by using Kustomize. Kustomize is a Kubernetes feature that uses a file with the name kustomization.yaml to apply changes to a set of resources. And this is convenient for applying changes to input files that the user does not control himself, and which contents may change because of new versions appearing in the Git. So it's really a nice way to separate the static code from site-specific information. And what is particularly nice about Kustomize is that it is a Kubernetes feature. So you don't have to use any additional utilities. You can just use kubectl apply -k, for instance, in the directory with the kustomization.yaml. Notice that in this command, the ./ at the end stands for current directory. Replace it with any directory that contains the kustomization.yaml, and that will apply the changes. And you can also do the alternative. And that is kubectl delete -k. That will delete all that was created by the Kustomization. Now what does…

Contents