520 likes | 675 Views
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
E N D
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 • We may respond to all, so mark your question as private if needed. @rancher_labs
This session is being recorded! http://youtube.com/c/rancher @rancher_labs
Resources – Slack and Forums http://slack.rancher.io http://forums.rancher.com #k3s @rancher_labs
Upcoming Classes http://rancher.com/training/ @rancher_labs
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
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
To build k3s we removed unnecessary code and made a few enhancements
Edge computing and Embedded systems IOT Gateway CI environments Single-App Clusters K3s use cases
Install and Upgrade Demo
Install and upgrade • Supported architectures • X86_64 • ARM v7 • ARM 64
Install and upgrade • Install by version • K3s systemd script install • K3s systemd script upgrade • Install the latest • Uninstall
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
Multi-node multi-architecture • Add an ARM node to the cluster • Connect it as an agent
K3s for the Edge ARM devices
K3s on RPi3A+ • Specs • RAM: 512MB LPDDR2 SDRAM • SoC: Broadcom BCM2837B0 quad-core A54 (ARMv8) 64-bit @ 1.4GHz
K3s on RPi3A+ - Process discussion • Install via script on RPi device • Run server • View resource utilization • uninstall
Deployments • Standard k8s approach • e.g. “kubectl apply –f <filename>” • k3s capability • Standard k8s • By Manifest
K3d Create and destroy clusters in docker containers
K3d to quickly spin up k3s • Create clusters • Single node default • k3d create • Multi node named • k3d create --name cluster01 --workers 3
K3os The k3s container OS
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
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
Fleet Management Rancher
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
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
Join other Rancher users in Slack https://slack.rancher.io #k3s #Kubernetes channel #onlinetraining channel
Thank you rancher.com/training k3s.io @rancher_labs