Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.01 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.01 KB

go-app-k8s

Golang app running in a local Kubernetes development environment using Minikube.

Prerequisites

  • Minikube: You need to have Minikube installed on your machine. If you don't have it, follow the installation instructions on the Minikube repository.

Getting Started

Start Minikube (MacOS)

minikube start --driver=hyperkit --container-runtime=docker

Set Up kubectl Alias

To use Minikube's kubectl command, create an alias:

alias kubectl="minikube kubectl --"

Use Minikube's Docker Environment

eval $(minikube docker-env)

Start the App

./setup.sh

Check the App

curl http://$(minikube ip):31234/ping

Delete Kubernetes Resources

To delete all Kubernetes resources related to the app:

kubectl delete all --all -n go-app-k8s

License

MIT License


Feel free to modify the instructions and add any additional information specific to your application.