Hello World Deployment These instructions will help you launch a Kubernetes cluster locally and deploy a simple “Hello World” application using each of the three tools. Below is a demonstration of how to control each instrument.
Installing minikube via Homebrew
brew install minikubeLaunching a cluster with the Docker driver
minikube start --driver=dockerChecking nodes
kubectl get nodesCreating a namespace
kubectl create namespace demoDeploy Hello World (nginx)
kubectl apply -n demo -f https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/nginx-app.yamlVerification
kubectl get pods -n demo
kubectl get svc -n demo
Open the service in a browser (via NodePort)
minikube service my-nginx-svg -n demoInstallation (Linux/macOS)
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kindCreating a cluster
kind create cluster --name asciiartify-pocContext is already automatically activated
kubectl cluster-info --context kind-asciiartify-pocCreating a namespace
kubectl create namespace demoDeploy Hello World (nginx)
kubectl apply -n demo -f https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/nginx-app.yamlVerification
kubectl get pods -n demo
kubectl get svc -n demo
Open the service in a browser (via NodePort)
kubectl port-forward -n demo service/my-nginx-svg 8080:80Installation (Linux/macOS)
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bashCreating a cluster
k3d cluster create asciiartify-pocContext is already automatically activated
kubectl get nodesChecking nodes
kubectl create namespace demoCreating a namespace
kubectl create namespace demoDeploy Hello World (nginx)
kubectl apply -n demo -f https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/nginx-app.yamlVerification
kubectl get pods -n demo
kubectl get svc -n demo
Open the service in a browser (via NodePort)
kubectl port-forward -n demo service/my-nginx-svg 8080:80