From the course: Kubernetes for Java Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Deploy using standalone manifests

Deploy using standalone manifests

From the course: Kubernetes for Java Developers

Start my 1-month free trial

Deploy using standalone manifests

- [Narrator] After the cluster is created, our first thing is to deploy our application. This is the same Java application created using Spring Boot and packaged as a Docker container. Now if you recall, our image name was Arun Gupta/Greeting. And if you also recall, when we deploy a Docker image as a container in the Kubernetes cluster, it is deployed using a resource manifest. So, let's take a look at what our resource manifest looks like. Now, I'm in the Workspace directory. So let's go to manifests, standalone directory. And the first thing we're going to look at is our greeting deployment manifest. There is usually apiVersion, kind, metadata, we're creating a single replica of the pod over here. This is my pod template. In that I'm assigning app colon greeting as a label to each pod. It's important we understand this label because when I'm creating my service later on, it's going to rely on these particular labels being on the pod. Then I go to pod Spec, in that I'm creating a…

Contents