Loading tutorials
kubectl commands. You should also know what a Pod, a Deployment, and a Service are. You do not need to know anything about labels or selectors yet. This chapter introduces where they are stored. Later chapters cover how to use t2 min readkubectl commands, and know what a Pod, Deployment, and Service are. Labels are the glue between these objects, so the working model matters more than any single command.3 min readkubectl apply and kubectl get. Labels are plain strings, but the API server rejects any key or value that breaks its syntax rules. The rules are short, and knowing them saves you from confusing validation errors.2 min readkubectl get commands. It also assumes you know that labels are key-value pairs in metadata.labels.2 min readkubectl get -l with an equality selector such as tier=frontend.2 min readkubectl get and kubectl apply. It covers the commands you use to inspect and edit labels on live objects, and the mistakes that come up most often.2 min readkubectl commands. It covers how a Service uses a label selector to decide which Pods receive traffic, and how to check that the match worked.2 min readkubectl -l. Here you will see how workload controllers use selectors to decide which Pods they own.2 min readkubectl commands, and already know how labels and selectors work. It covers the shared label names Kubernetes recommends, and how to apply them consistently.2 min readkubectl commands. It also assumes you know how labels and equality-based selectors work from earlier chapters.3 min readmetadata block, and have used basic kubectl commands. You should also know what labels and selectors are from the earlier chapters.3 min readkubectl apply works, and what labels and selectors do. Annotations are key-value pairs in metadata.annotations. Kubernetes never uses them to select objects. Instead, tools, controllers, and people read them.2 min readkubectl get and kubectl label. It gives you a short test for deciding where a piece of metadata belongs.2 min readkubectl commands. It also assumes you know how equality-based and set-based selectors work.2 min readkubectl commands, and already know how equality-based label selectors work. Field selectors look similar on the command line, but they filter on a different kind of data.2 min read