Skip to content

ash-singh/go-app-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.