Skip to content

Repository files navigation

Install Kubernetes Modules

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.

☸️ Minikube Demo

Installing minikube via Homebrew

brew install minikube

Launching a cluster with the Docker driver

minikube start --driver=docker

Checking nodes

kubectl get nodes

Creating a namespace

kubectl create namespace demo

Deploy Hello World (nginx)

kubectl apply -n demo -f https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/nginx-app.yaml

Verification

kubectl get pods -n demo
kubectl get svc -n demo

Open the service in a browser (via NodePort)

minikube service my-nginx-svg -n demo

☸️ Kind Demo

Installation (Linux/macOS)

curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

Creating a cluster

kind create cluster --name asciiartify-poc

Context is already automatically activated

kubectl cluster-info --context kind-asciiartify-poc

Creating a namespace

kubectl create namespace demo

Deploy Hello World (nginx)

kubectl apply -n demo -f https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/nginx-app.yaml

Verification

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

☸️ K3d Demo

Installation (Linux/macOS)

curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash

Creating a cluster

k3d cluster create asciiartify-poc

Context is already automatically activated

kubectl get nodes

Checking nodes

kubectl create namespace demo

Creating a namespace

kubectl create namespace demo

Deploy Hello World (nginx)

kubectl apply -n demo -f https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/nginx-app.yaml

Verification

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

About

Competency-Matrix

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages