Deploying your first application with kubectl
This section covers the basics of Kubernetes. We are going to deploy an application using kubectl
first. But before that, let me give you a quick introduction about how Kubernetes works with its basic objects.
Basic Kubernetes objects
Kubernetes works with objects that provide different functionalities for your application using containers. The goal of Kubernetes is to orchestrate your containers. Kubernetes uses two ways to create objects. One is using imperative commands – in the case of Kubernetes, the kubectl
command. The other is using declarative files, where the state of an object is defined, and Kubernetes ensures that this state stays as it was defined throughout its lifetime:
This diagram represents how some of the basic objects interact with each other to deploy and manage an application. So, let’s explain each of these objects:
- Pod contains one or more containers, where your...