Labels

Challenge

Create a namespace called accounts all the following steps need to be done in this namespace

Deploy a deployment named redis-app using the image redis with 2 replicas

  • with labels tier=prod and loc=north

Deploy a deployment named redis-db using the image redis:alpine with 2 replicas

  • with labels tier=prod and loc=south
  • Expose the redis-db deployment on a port 6379.

Use labels to query the pods

  • list pod with label tier=prod
  • list pods with label loc=south

Alter deployment redis-app

  • add label region=emea
  • change label tier=prod to tier=dev

Expand here to see the solution