Labels

Are key/value metadata assigned to a kubernetes object. Labels can be queried using Selectors.

apiVersion: v1
kind: Pod
metadata:
  name: simple-webapp
  labels:
    app: app1
    function: front-end
Links to this page
  • Selectors

    Can be used to search a group of objects that match Labels inside the kubernetes cluster. The following command will match all the pods that contains the app: app1.

#kubernetes