A very simnple example of a Kustomization chart that contains only a Deployment resource with NginX as an image. We uses Flux to over the replica of the deployment from 1 to 3 instead.
There are two main components within the repository as follow:
In this example, there is 1 simple base resource, which is a deployment that uses nginx:1.17 image in a container.
The base directory contains the original Deployment definition. The overlay directory is where you create the Kustomization overlay. The resources field references the base directory. The patches field defines a patch that targets the Deployment named my-app. It replaces the number of replicas from 1 to 3.
Go to /overlay and use the following command to apply the chart
kubectl apply -k .