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

Unlock this course with a free trial

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

Running pods the DevOps way

Running pods the DevOps way

- In Kubernetes environments, DevOps is used a lot. So in DevOps, the purpose is to deploy applications in a consistent way that is easy to reproduce. Imagine a bigger environment where multiple IT staff needs to make sure that you run applications in exactly the same way. What is the way to do so? Well, the way is to provide configuration as code. That means that you don't want to run a command and provide all the information on a command line, you want to write code, which is a configuration file, a manifest file that describes how you want to run your application. And that is commonly done in Kubernetes as well. Instead of running Kubernetes commands, YAML manifest files are used. And from these YAML manifest files, you can start the application. Now creating resources based on YAML files is referred to as a declarative way of working with Kubernetes. There's also the imperative way of working, that is where resources are created from the command line using the kubectl or run…

Contents