c7f89d43d5
Since 1.14, Kubectl also supports the management of Kubernetes objects using a kustomization file. cf. https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/#bases-and-overlays
475 B
475 B
Kustomize - Common Labels
Requirements
- Running Kubernetes cluster
- Kubctl version 1.14 or above
Objectives
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
Solution
Click here to view the solution