Logo

Run a test container image that includes a webserver

==Run a Kubernetes cluster locally on their computer==. 
It's a lightweight, single-node cluster that mimics the behavior of a production cluster

Start off a minikube control plane via:

minikube start

And look at the pods, containers & nodes running via:

  minikube dashboard 

Stop & Delete the minikube node:

  minikube stop
  minikube delete

Running a Service in Minukube (via kubectl)

Let's create a worker-node called "hello-node" and run in minikube

  1. Create a deployment that manages a pod (hello-node from registry)
# Run a test container image that includes a webserver
kubectl create deployment hello-node --image=registry.k8s.io/e2e-test-images/agnhost:2.39 -- /agnhost netexec --http-port=8080
  1. Turn this deploymnt into a service (expose)
kubectl expose deployment hello-node --type=LoadBalancer --port=8080
  1. Run the Service in minikube
minikube service hello-node

© 2025 All rights reservedBuilt with DataHub Cloud

Built with LogoDataHub Cloud