- use a free tier of Docker Hub for Docker images
- read more on docker, minikube, kubectl, helm
- Start by cloning the repo
git clone https://github.com/klopjq/go-minikube
# cd go-minikube/app
# GOOS=linux GOARCH=amd64 go build -tags netgo -o server
# cd ..
- Build the docker file
docker build --no-cache -t USER_ACCOUNT/go-minikube:0.1.1 .
- Test the container
docker run -d -p 3333:3000 --name go-app-container USER_ACCOUNT/go-minikube:0.1.1
- Push to docker hub (make sure you login to your own DOCKERHUB USER_ACCOUNT)
docker push USER_ACCOUNT/go-minikube:0.1.1
- Remove docker images and containers (since the image is already in docker hub)
./clean-docker.sh
docker images
- Install minikube (read more from provider website)
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start
minikube kubectl -- get po -A
minikube dashboard
- Install kubectl (read more from provider website)
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl cluster-info
kubectl cluster-info dump
kubectl get nodes
kubectl describe node
- Install helm (read more from provider website)
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
helm search hub redis
- (Optional) Create helm charts if you want to build own, it creates scaffolds
helm create helm
-
Configure the helm (read more from provider website)
-
Install release of helm chart (make sure minikube is started & read more information from provider website)
# helm install RELEASE-NAME ./helm/
helm install go-minikube ./helm/
- (Optional) Start minikube
minikube start
- (Optional) Unistall helm release
helm uninstall go-minikube