Before we dive into services, we should create a ReplicaSet similar to the one we used in the previous chapter. It’ll provide the Pods we can use to demonstrate how Services work.
Let’s take a quick look at the ReplicaSet definition go-demo-2-rs. The only significant difference is the db container definition. It is as follows.