Skip to content

StarpTech/k8s-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8s Playground

Install https://microk8s.io/

Docs: https://microk8s.io/docs/

2. Setup aliases

# Alias
sudo snap alias microk8s.kubectl kubectl
sudo snap alias microk8s.helm helm

3. Enable K8s addons

microk8s.enable knative dashboard helm registry storage ingress
microk8s.helm init
microk8s.status

Build docker image

docker build -t k8-simple-golang:1.0 .
# test it
docker run -p 8000:8000 k8-simple-golang:1.0

Import locally build image into K8s registry

# Export image from local registry
docker save k8-simple-golang > k8-simple-golang.tar
# Import image
microk8s.ctr image import k8-simple-golang.tar
# List all images
microk8s.ctr images ls

Apply configs

kubectl apply -f name.yaml

K8s CodeSheet

https://kubernetes.io/de/docs/reference/kubectl/cheatsheet/

Experiments

Links

About

Experiment locally with K8s (microk8s)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published