This was my first project using go, a simple HTTP server that returns your public IP address. I'm using this project for demos and learning about Docker, Go and experiment some workflows.
- GO >=1.9 (otherwise the steps in this readme will not work)
go run app/main.go go test ./... go build -o ifconfig.me app/main.go ./ifconfig.me - Build
docker build -t ifconfig.me .- Run
docker run -p 8080:80 ifconfig.mekubectl apply -f k8s-test.yaml Since there is no OS or utils in the container we need to use Ephemeral Containers although it's currenlty in alpha. For more info check https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/
kubectl debug -it ifconfig.me --image=busybox --target=ifconfig.me-9bf8x