Patching a Kubernetes application
In this section, let's try to patch an application with Kustomize. For this example, we have a kustomize
folder with the following files:
The base
folder has three files—deployment.yaml
, service.yaml
, and kustomization.yaml
.
Let's check the deployment.yaml
file by running the $ cat base/deployment.yaml
command:
In the preceding screenshot, we have the nginx
deployment template, which we are going to use with Kustomize.
Let's get the service.yaml
file's content by running the $ cat base/service.yaml
command:
In the preceding screenshot, we have the nginx
service template that we are going to use with Kustomize.
As you can see, we are using the nginx
deployment and service template again so it will be easier for you to...