Kubernetes Handbook
  • Introduction
  • Prerequisites
    • What is Containerization
    • What is Docker
    • Difference between Docker and VM
  • Features of Kubernetes
    • What is Kubernetes
    • Features of Kubernetes - 1
    • Features of Kubernetes - 2
    • Which Tool to Use for Orchestration
  • Architecture
    • Master Node
    • etcd and kubectl
    • Worker Nodes
  • Pods and Nodes
    • Nodes
    • Pods
  • Controllers
    • Benefits of Controllers
    • Kinds of Controllers
  • Minikube
    • What is Minikube
  • Installation and Running (Mac OS)
    • Installation
    • Running Hello World Application
  • Labels Namespaces and Selectors
    • Labels
    • Namespaces
    • Selectors
  • Health Checks Rollouts and Rollbacks
    • Health Checks
    • Rollouts and Rollbacks
  • Config Maps and Secrets
    • Config Maps
    • Secrets
  • Running Jobs
    • How to Run Jobs
  • Dashboard and Debugging
    • Kubernetes Dashboard
    • Debugging
Powered by GitBook
On this page

Was this helpful?

  1. Installation and Running (Mac OS)

Running Hello World Application

PreviousInstallationNextLabels

Last updated 3 years ago

Was this helpful?

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
448B
helloworld.yaml