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
- 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
- Turn this deploymnt into a service (expose)
kubectl expose deployment hello-node --type=LoadBalancer --port=8080
- Run the Service in minikube
minikube service hello-node