Difficulty: Beginner
Estimated Time: 10 minutes

In this scenario, you'll learn how to use Kubectl to create and launch Deployments, Replication Controllers and expose them via Services. We will also launch deployments by writing yaml definitions.

YAML definitions define the Kubernetes Objects that become scheduled for deployment. The objects can be updated and redeployed to the cluster to change the configuration.

In this scenario, you learned how to use Kubectl to create and launch Deployments, Replication Controllers and expose them via Services.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Kubernetes Introduction

Step 1 of 7

Step 1 - Kubernetes Cluster

We already installed minikube for you. Check that it is properly installed, by running the minikube version command:

minikube version

Great! You now have a running Kubernetes cluster in your online terminal. Minikube started a virtual machine for you, and a Kubernetes cluster is now running in that VM.

You can start the cluster by running the minikube start command:

Kubectl

To check if kubectl is installed you can run the kubectl version command kubectl version

Let’s view the cluster details. We’ll do that by running kubectl cluster-info kubectl cluster-info

To view the nodes in the cluster, run the kubectl get nodes command kubectl get nodes

This command shows all nodes that can be used to host our applications. Now we have only one node, and we can see that it’s status is ready (it is ready to accept applications for deployment).

deployment.yaml
service.yaml