MicroK8s

mskumarage 228 views 18 slides Mar 01, 2019
Slide 1
Slide 1 of 18
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18

About This Presentation

Using MicroK8s for locally deploying and playing with Kubernetes


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

Switching Kubernetes versions! $ snap install microk8s --classic --channel=1.13/beta $ snap refresh --channel=1.12/stable microk8s ` $ snap install microk8s` will automatically upgrade

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

Inspect MicroK8s $ microk8s.inspect

Remove MicroK8s $ microk8s.reset $ snap remove microk8s

Thank you