Skip to content

Files

Latest commit

65d0787 · Aug 4, 2023

History

History
35 lines (18 loc) · 606 Bytes

README.md

File metadata and controls

35 lines (18 loc) · 606 Bytes

Prerequisites

Install minikube and kubectl.

Note

Building and running the docker image locally instead of pushing to docker hub.

Run in Docker

docker build -t philyawj/go-k8s-http-server .

docker run --rm -p 8080:8080 philyawj/go-k8s-http-server

Alt text

http://localhost:8080

Run in Kubernetes

docker build -t philyawj/go-k8s-http-server .

minikube image load philyawj/go-k8s-http-server

minikube image ls

kubectl apply -f service.yaml

minikube service mywebapp

Alt text

Alt text

Alt text