From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

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

Exploring Kustomize

Exploring Kustomize

- A pretty useful solution in Kubernetes is Kustomize. So Kustomize was developed with a declarative application in mind. And Kustomize functionality is integrated in kubectl, which makes it easy to use. It also has its own command line interface if you want to use that. Kustomize makes it easy to merge patches and specific parameters to a base templated version of an application. So how does it work? Kustomize is a Kubernetes feature that uses a file with the name kustomization.yaml to store instructions for the changes a user wants to make to a set of resources. This is convenient for applying changes to input files that the user does not control himself, and which contents may be changed because of new versions that are appearing in Git. So it's a way to modify existing configuration files, and thus implement changes in a declarative way. To use it, you can use kubectl apply -k ./ within the directory that has a kustomization.yaml file. You can also use kubectl delete -k ./ in the…

Contents