Difficulty: Beginner
Estimated Time: 10 minutes

The 4th factor (Backing services) of the Twelve-Factor App Methodology states:

The code for a twelve-factor app makes no distinction between local and third party services. To the app, both are attached resources, accessed via a URL or other locator/credentials stored in the config.

In the following steps you will learn:

  • how your containerized application can find and call other services,
  • how DNS providers can plug themselves into the cluster,
  • how service discovery works in Kubernetes.

Conclusion

Discovering services through simple labels provided from environment settings makes calling other services easy from your application. When you decide on a Kubernetes cluster to use, one of the first things you should investigate is what service flavor provides the DNS resolutions.

The lesson does not cover more complex topics such as meshing, ingressing, egressing nor security protections. But, with these fundamentals you can now expand into those topics.

Here are some addition Katacoda courses:

Lessons Learned

With these steps you have learned:

  • how your containerized application can find and call other services,
  • how DNS providers can plug themselves into the cluster,
  • how service discovery works in Kubernetes.

References


For a deeper understanding of these topics and more join me, Jonathan Johnson, for a transcendent experience on the No Fluff Just Stuff Software Symposium Tour.

Pods to Services Communication

Step 1 of 3

Minikube

This Katacoda instance provides a Kubernetes based environment based on Minikube plus a client Linux Bash terminal with the Kubectl and Helm command line interface (CLI) tools.

Ensure Minikube is running and ready to accept your upcoming declarations.

minikube status