From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Why decoupling is important

Why decoupling is important

- So how are we going to provide configuration in a flexible way? Let's imagine that you have site one and site two, as well as site three. And in all these sites, you need your application to behave in a different way. Now what are your options? Option number one is that you are going to create an image. And in this image you set your variable like key is value. Is that a good option? Well, if you want flexibility, no. Because this allows you to run your image maybe on site one, but you will need to do the same thing for site two and the same thing for site three. So three different images, that is not flexible at all. So what is option number two? Well, option number two is that you have my app.yaml. And in the YAML you are going to define your variable as key is value. And the good part about it is that you will be able to use one common image, but you'll need a different YAML file for all of the three sites. So this YAML file only runs on one of the site and not on all of them so…

Contents