See the solution below with Step by Step Explanation.
Explanation:
Solution (Step by Step) :
1. Create a 'kustomization.yamr file in your desired directory.

2. Create a 'deployment-yamr file (or use an existing one) with the following structure.

3. Create a 'patch.yamr file with the following content to configure rolling update and automatic updates:

4. Apply the Kustomization: bash kubectl apply -k - The 'kustomization.yaml file defines the resources (the 'deployment.yamr file) and the patches to apply. - The 'deployment.yamr file contains the base configuration for the deployment. - The 'patch.yamr file applies a strategic merge patch to the deployment, configuring rolling updates and automatic updates triggered by new images. - The 'maxSurgew and 'maxunavailable' settings in the 'patch.yamr define the maximum number ot pods that can be added or removed during the update process. - The 'imagePullPolicy: AlwayS ensures that the new image is pulled from Docker Hub even if it exists in the pod's local cache, triggering the update.