Kubernetes Labels

Note that multiple resources are separated by — in YAML manifest files. Each pod is declared in the labels namespace. Each Pod also has a labels mapping that declares a color and a tier label. Values for the color label span red, green, and blue. Values for the tier label span frontend and backend. The first Pod in the file, named red-frontend, also declares an annotations mapping. Use the -L (or –label-columns) kubectl get option to display columns for both labels: