Kustomize - Common Labels
- Running Kubernetes cluster
- Kubctl version 1.14 or above
In the current directory there is an app composed of a Deployment and Service.
- Write a kustomization.yml file that will add to both the Service and Deployment the label “team-name: aces”
- Execute a kustomize command that will generate the customized k8s files with the label appended
- Add the following to kustomization.yml in someApp directory:
kubectl apply -k someApp