Using MicroK8s for locally deploying and playing with Kubernetes
Size: 883.7 KB
Language: en
Added: Mar 01, 2019
Slides: 18 pages
Slide Content
Zero-ops Single node Kubernetes on any Linux box! Milindu Kumarage Senior Software Engineer Microk8s
The problem Why???!
MicroK8s by Canonical!
Why MicroK8s? Use it for offline development, prototyping, testing! Use it on a VM as a small, cheap, reliable k8s for CI/CD!
$ sudo snap install microk8s --classic If you have ‘Snap’ installed, this is the only thing you have to do! 🎉
Stopping and starting MicroK8s $ microk8s.stop $ microk8s.start
Using MicroK8s $ microk8s.kubectl get nodes
Using MicroK8s $ microk8s.kubectl get nodes Waiit?! What? `microk8s.kubectl` ??!1
Alias to Kubectl $ snap alias microk8s.kubectl kubectl $ kubectl # Now this is microk8s.kubectl $ snap unalias kubectl $ microk8s.kubectl config view --raw > ~/.kube/config
MicroK8s Addons Do I get Kubernetes Dashboard? Kube DNS? Isito?
MicroK8s Addons dns : Deploy kube dns. dashboard : Deploy kubernetes dashboard as well as grafana and influxdb. storage : Create a default storage class. ingress : Create an ingress controller. gpu : Expose GPU(s) to MicroK8s by enabling the nvidia-docker runtime & nvidia-device-plugin-daemonset.
MicroK8s Addons istio : Deploy the core Istio services. You can use the microk8s.istioctl command for deployments. registry : Deploy a docker private registry and expose it on localhost:32000. Use the microk8s.docker command. metrics-server : Deploy the Metrics Server.
Enable/disable a MicroK8s Addon $ microk8s.enable dns dashboard $ microk8s.disable dns dashboard
Check the status of the components $ microk8s.status