Running Hello World Application

Hello World Deployment in Kubernetes

Open Docker Desktop and run Docker.

Open Terminal to start Minikube.

$ minikube start
$ kubectl get all

Lists all the resources present in the cluster, i.e. pods, services, deployments, replicas.

Use this deployment file for Hello World application.

$ kubectl create -f helloworld.yaml

Expose the deployment as Node port to view in browser.

$ kubectl expose deployment helloworld --type=NodePort

Open your deployment in a browser!!

$ minikube service helloworld

Last updated