Skip to content

Kubernetes Swiss Army Knife (docker container build with Go on Apple Silicon / m1)

Notifications You must be signed in to change notification settings

stephanwesten/ksak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Swiss Army Knife

Go application that prints the current time and a random string.
Suited for experiments in Kind.


Build instructions
------------------
cd src
env GOOS=linux go build  -o ../bin

cd ..
docker build --tag ksak .

verify:
docker run --tag ksak


Switch to Kind cluster
----------------------
kubectl config get-contexts
kubectl config set current-context kind-kind


Deploy in Kind cluster
----------------------
kind load docker-image ksak

verify: docker exec -it kind-control-plane crictl images

kubectl apply -f ksak_pod_manifest.yaml -n default

kubectl get pods -n default

Reload requires to delete the pod due to latest tag:
k delete pod ksak -n default

About

Kubernetes Swiss Army Knife (docker container build with Go on Apple Silicon / m1)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published