Skip to content

gr1m0h/go-test-server

Repository files navigation

go-test-server

Usage

local

Run go-test-server

go run app/main.go

Docker

Run go-test-server

docker build -t go-test-server .
docker run -p 8080:8080 go-test-server

Kubernetes

Prepare Docker Image.

docker build -t go-test-server .

Create K8s Cluster using kind and load local Docker Image.

kind create cluster
kubectl cluster-info --context kind-kind
kind load docker-image go-test-server
Kubernetes Manifest(Raw)

Apply K8s manifest and connect to K8s service.

kubectl apply -f kubernetes/raw
kubectl port-forward service/go-test-server 8080:8080 -n go-test-server
Kubernetes Manifest(HelmChart)
Kubernetes Manifest(Helmfile)