October 2017
Intermediate to advanced
326 pages
7h 20m
English
PetSets are an interesting concept within Kubernetes: they are strong named resources whose naming is supposed to stay the same for a long term. As of now, a pod does not have a strong entity within a Kubernetes cluster: you need to create a service in order to locate a pod as they are ephemeral. Kubernetes can reschedule them at any time without prior notice for changing their name, as we have seen before. If you have a deployment running in Kubernetes and kill one of the pods, its name changes from (for example) pod-xyz to pod-abc in an unpredictable way. so we cannot know which names to use in our application to connect to them beforehand.
When working with a Pet Set, this changes completely. A pet set has an ordinal order, so ...