1 / 32

K3s training

K3s training. Rancher Labs. Mark Abrams Field Engineer Rancher. Matthew Scheer Marketing Manager Rancher matthew@rancher.com. @ rancher_labs. Rancher k3s Online Training Trying to keep this to 1 hour Questions are always welcome Use the questions tab to write your questions

turley
Download Presentation

K3s training

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. K3s training Rancher Labs

  2. Mark Abrams Field Engineer Rancher Matthew Scheer Marketing Manager Rancher matthew@rancher.com @rancher_labs

  3. Rancher k3s Online Training • Trying to keep this to 1 hour • Questions are always welcome • Use the questions tab to write your questions • We may respond to all, so mark your question as private if needed. @rancher_labs

  4. This session is being recorded! http://youtube.com/c/rancher @rancher_labs

  5. Resources – Slack and Forums http://slack.rancher.io http://forums.rancher.com #k3s @rancher_labs

  6. Upcoming Classes http://rancher.com/training/ @rancher_labs

  7. Agenda • Overview of k3s • Install and upgrade k3s • Deploy k3s on ARM • Using k3d on the desktop • Using k3os to deliver a container operating system • Manage multiple k3s clusters and deploy applications

  8. K3s Overview

  9. Introducing k3s • Lightweight certified Kubernetes distro • Built for production operations • 40MB binary, 250MB memory consumption • Single process w/ integrated Kubernetes master, Kubelet, and containerd • SQLite in addition to etcd • Simultaneously released for x86_64, ARM64, and ARMv7 • Open source project, not yet a Rancher product

  10. To build k3s we removed unnecessary code and made a few enhancements

  11. How k3s works

  12. Edge computing and Embedded systems IOT Gateway CI environments Single-App Clusters K3s use cases

  13. Install and Upgrade Demo

  14. Install and upgrade • Supported architectures • X86_64 • ARM v7 • ARM 64

  15. Install and upgrade • Install by version • K3s systemd script install • K3s systemd script upgrade • Install the latest • Uninstall

  16. Multi-node clusters • Process • Server • Standup k3s as server only on AWS node • Get node-token for agents • Agents • Install binary (just because – can be done with scripted version also) • View resource utilization • Connect agent to server

  17. Multi-node multi-architecture • Add an ARM node to the cluster • Connect it as an agent

  18. K3s for the Edge ARM devices

  19. K3s on RPi3A+ • Specs • RAM: 512MB LPDDR2 SDRAM • SoC: Broadcom BCM2837B0 quad-core A54 (ARMv8) 64-bit @ 1.4GHz

  20. K3s on RPi3A+ - Process discussion • Install via script on RPi device • Run server • View resource utilization • uninstall

  21. Deployments • Standard k8s approach • e.g. “kubectl apply –f <filename>” • k3s capability • Standard k8s • By Manifest

  22. K3d Create and destroy clusters in docker containers

  23. K3d to quickly spin up k3s • Create clusters • Single node default • k3d create • Multi node named • k3d create --name cluster01 --workers 3

  24. K3os The k3s container OS

  25. k3OS Value Add • Supports multiple architectures • k3OS runs on x86 and ARM processors to give you maximum flexibility. • Runs only the minimum required services • Fewer services means a tiny attack surface, for greater security. • Doesn’t require a package manager • The required services are built into the distribution image. • Models infrastructure as code • Manage system configuration with version control systems

  26. k3OS Installation • Interactive • Load the iso • run “os-config” • Automated • kernel command line parameters • Bootstrapped • ”install.sh” to a block device • Remaster ISO • “grub-mkrescue” utility • Takeover • “install.sh –takeover” on existing linux OS • ARM overlay • rootfs + config.yml

  27. Fleet Management Rancher

  28. Rancher Rancher Mgmt Server Kubernetes (RKE) Edge IoT Gateway Cloud CI Builds On-Prem K3s cluster K3s cluster K8s cluster K3s cluster K8s cluster K3s cluster K3s cluster K8s cluster K3s cluster K8s cluster K3s cluster K3s cluster K8s cluster K8s cluster K3s cluster

  29. Content • gist.github.com command line notes • https://bit.ly/2XpcVSI • https://get.k3s.io • https://github.com/rancher/k3s • https://github.com/rancher/k3os • https://github.com/rancher/k3d

  30. k3s.io

  31. Join other Rancher users in Slack https://slack.rancher.io #k3s #Kubernetes channel #onlinetraining channel

  32. Thank you rancher.com/training k3s.io @rancher_labs

More Related