SlideShare a Scribd company logo
Globalized Edge Workloads with K3s
August 13, 2019
Joseph D. Marhee of Packet Labs
Packet
Labs Overview
MISSION
At Packet Labs, we craft solutions
to uncommon problems that live
at the intersection of hardware,
software and networks.
Meet Joseph D. Marhee
Ecosystem Engineer @ Packet Labs
â—Ź Customer-first solutions obsessive.
â—Ź Long time IaaS systems solutions engineer.
â—Ź Has worked with Kubernetes in the provider
space since 2015 and has a lot of opinions
about it.
â—Ź @joseph.packet on the Packet Community
Slack
Labs Team
My D. Truong
Senior Director
Scott Anderson
VP, Outreach
Ed Vielmetti
Special Projects Director
Joseph Marhee
Ecosystem Engineer
Carl Perry
Ecosystem Engineer
Scott Burns
Senior Director, R & D
➔49 contributing team
members on Github
➔15,000 users around
the world
Programming
Overview
Why Edge Compute? Why K3s? Why Bare metal? Why anything?
â—Ź Infrastructure Edge, Mobile Edge
â—Ź Edge Architectures
â—Ź K3s Powered Applications & Emerging Uses
â—Ź Orchestration
â—Ź Containers on Bare Metal
â—Ź How does Packet enhance these patterns?
â—Ź Demonstration of Packet K3s
Quick Recap of Traditional
K8s Architecture Concepts
“The network is the computer”
â—Ź Kubernetes is, conceptually, a scheduler and a
reconciliation loop.
â—Ź APIServer takes instructions to scheduler
â—Ź Scheduler informs node agent (Kubelet)
â—Ź Kubelet reports to control plane on state,
metrics, provision success/failure.
â—Ź Define -> Deploy > loop(Check, Act)
What’s the Infrastructure
Edge?
â—Ź Globally-distributed points of presence of, for
example, an IaaS endpoint.
â—Ź These can be local to where IoT edge devices
are located.
â—Ź Architecturally, this is a simple concept, but
in practice, the tools may not be intuitive,
easily globalized and standardized.
Edge Architecture Example: Replicated workloads
- Database engines with global replication
support (think something like FaunaDB)
- Ingests and validates data on one instance,
shards across other clusters globally in a
mesh of facility clusters
- The pattern would not be unlike a “Kubernetes
Underlay” in the absence of robust federation.
Edge Architecture Example: FaaS
Users are load-balanced between sites, in
this example, and when a request comes
into the LB, a facility is selected. This pattern
is ideal for FaaS-based workloads:
- Tools like Fission.io or OpenFaaS on
each endpoint
- Can be a local POP for representing--
at the edge- data store in your core
site persistent storage.
- Apply this to mobile edge to
infrastructure edge patterns.
Practical Use Case: Content Delivery
Source
If familiar with a traditional Content
Delivery Network (CDN) model, this
is one such pragmatic use case for
K3s:
- Core site running a full cluster
- Edge sites with disposable
deployments, rapid re-
deployment, serving a cached
data.
Orchestration
The ability to roll out and manage a fleet
of high number of comparatively low-
powered on-prem/mobile devices, and
more robust instances in a local facility is
an important one for edge compute.
Traditional configuration management
aside, tools like:
- Terraform (only as opinionated as
your provider/platform, on-prem or
in DC)
- Wrappers like Gitops
- Image builders like Packer
Can speed up CI/CD of these resources
to your edge sites (mobile and
infrastructure).
Why Containers on Bare Metal?
“Stop killing kittens and melting the ice caps: Run containers on bare metal already.” - Bryan Cantrill
Virtualization can be an inefficient* abstraction for edge architectures:
â—Ź Low-cost hardware for small deployments available (removes the costly virtualization layer--
particularly at the edge)
â—Ź Container security less of a question (see: the Unikernel v. Container-in-VM debate circa 2015)
â—Ź For edge: maximizing benefits of the hardware platform features for single-tenancy.
â—Ź K3s enables common patterns for CI/CD, deployment, and rapid architecture rollout.
* if you are not in the business of providing VMs, and if you are only servicing containers for your entire environment
How does Packet enable Kubernetes?
â—Ź The speed and developer friendliness of cloud provider tools.
â—Ź Unopinionated platform that enables:
â—‹ Compatibility with nearly all community solutions
â—‹ Partners to target Packet effectively
â—Ź Network automation suitable for:
â—‹ LoadBalancer type Services
â—‹ Cluster networking (and between clusters and facilites)
â—‹ Location-aware routing with Anycast IP addresses
Packet and the Edge
â—Ź Packet offers multiple core sites and edge locations-- a point of presence in most areas.
â—Ź Layer 2 & 3 network automation, Anycast IP addressing, and diverse NICs across a broad set of
specs means that these features can be leveraged for K3s.
â—Ź Network volume storage in core sites, attached storage on all host types.
â—Ź Building an Infrastructure Edge-facing architecture becomes highly declarative using common
tooling like Terraform, Ansible, Packer, to automate provisioning, and continuous integration
of an edge site.
Packet K3s Demo
Deploying a global, location-aware application on K3s. Using
orchestration and provisioning tooling to manage a standardized cluster
pool.
Technologies used:
- Anycast IPs/Global IPv4
- K3s
- Packet Terraform provider to provision hosts, network, and
bootstrap cluster.
I want to believe! What’s next?
Running a K3s-powered edge strategy on Packet.
Packet Labs Projects for Kubernetes in Core
and Edge site models on Packet:
â—Ź Kubernetes w/BGP
â—Ź Multi-architecture Kubernetes
â—Ź Packet K3s
Some of the tools and software that can target
an edge strategy discussed today:
â—Ź Fission.io
â—Ź OpenFaaS
â—Ź chick-fil-a/gitops
â—Ź FaunaDB
Conclusion
â—Ź Any questions?
â—Ź Want to get involved with improving the Kubernetes & K3s experiences on Packet?

More Related Content

PDF
Docker Introduction
PPTX
K8s from Zero to ~Hero~ Seasoned Beginner
PDF
Canary deployment with Traefik and K3S
PPTX
Infrastrucutre as Code
PDF
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
PPTX
A basic overview of Containers
PDF
Declarative Import with Magento 2 Import Framework (M2IF)
PDF
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
Docker Introduction
K8s from Zero to ~Hero~ Seasoned Beginner
Canary deployment with Traefik and K3S
Infrastrucutre as Code
CMPE 297 Lecture: Building Infrastructure Clouds with OpenStack
A basic overview of Containers
Declarative Import with Magento 2 Import Framework (M2IF)
Lightweight Virtualization with Linux Containers and Docker | YaC 2013

What's hot (20)

PDF
Clean Infrastructure as Code
PDF
CQRS - Eine EinfĂĽhrung - NOUG 2011
PDF
Running Kubernetes in Kubernetes
PDF
Cloud Platforms "demystified": Docker, Kubernetes, Knative & Cloud Foundry
PDF
Efficient DevOps Tooling with Java and GraalVM
PDF
Serverless architectures with Fn Project
PDF
Go for Operations
PDF
Introduction to Kubernetes - Docker Global Mentor Week 2016
 
PDF
Continuous (Non-)Functional Testing of Microservices on K8s
PPTX
betterCode Workshop: Effizientes DevOps-Tooling mit Go
PDF
TDC2018FLN | Trilha Containers - Kubernetes para usuarios Docker.
PDF
Okteto For Kubernetes Developer :- Container Camp 2020
PDF
TDC2018FLN | Trilha Containers - Redes em containers
PDF
Kubernetes fĂĽr Workstations Edge und IoT Devices
PDF
[Global logic] container runtimes and kubernetes
PDF
Real World CI/CD with Kubernetes
 
PDF
Ich brauche einen Abstraktions-Layer fĂĽr meine Cloud
PDF
You Want to Kubernetes? You MUST Know Containers!
PPTX
Cleaner Code Through Test-Driven Development
PDF
Continuous (Non)-Functional Testing of Microservices on k8s
Clean Infrastructure as Code
CQRS - Eine EinfĂĽhrung - NOUG 2011
Running Kubernetes in Kubernetes
Cloud Platforms "demystified": Docker, Kubernetes, Knative & Cloud Foundry
Efficient DevOps Tooling with Java and GraalVM
Serverless architectures with Fn Project
Go for Operations
Introduction to Kubernetes - Docker Global Mentor Week 2016
 
Continuous (Non-)Functional Testing of Microservices on K8s
betterCode Workshop: Effizientes DevOps-Tooling mit Go
TDC2018FLN | Trilha Containers - Kubernetes para usuarios Docker.
Okteto For Kubernetes Developer :- Container Camp 2020
TDC2018FLN | Trilha Containers - Redes em containers
Kubernetes fĂĽr Workstations Edge und IoT Devices
[Global logic] container runtimes and kubernetes
Real World CI/CD with Kubernetes
 
Ich brauche einen Abstraktions-Layer fĂĽr meine Cloud
You Want to Kubernetes? You MUST Know Containers!
Cleaner Code Through Test-Driven Development
Continuous (Non)-Functional Testing of Microservices on k8s
Ad

Similar to Rancher master class globalized edge workloads with k3s (20)

PDF
KubeCon China June 2019 - Survey of Kubernetes related solutions for IoT and ...
PDF
Cloud to Edge
PDF
Production grade edge computing on Kubernetes OSS EU 2018
PDF
Are you ready to be edgy? Bringing applications to the edge of the network
PDF
Using Network Acceleration for an Optimized Edge Cloud Server Architecture
PPTX
Container orchestration and microservices world
PPTX
KuberNETes - meetup
PDF
Build Distributed Architectures at the Edge
PDF
Using Kubernetes to make cellular data plans cheaper for 50M users
PDF
Kubernetes Native Infrastructure and CoreOS Operator Framework for 5G Edge Cl...
PDF
Kubernetes and Terraform in the Cloud: How RightScale Does DevOps
PPTX
Akraino and Edge Computing
PDF
What is Your Edge From the Cloud to the Edge, Extending Your Reach
 
PDF
cncf overview and building edge computing using kubernetes
PDF
DevConf.US 2022 - Exploring Open Source Edge Success at Scale
PDF
Kubernetes From Scratch .pdf
PPTX
Working with kubernetes
PDF
(SACON) Anand Tapikar - Attack vectors of Kubernetes infra. Are we on right ...
PDF
Kubernetes: The Very Hard Way
PPTX
Kubernetes Presentation
KubeCon China June 2019 - Survey of Kubernetes related solutions for IoT and ...
Cloud to Edge
Production grade edge computing on Kubernetes OSS EU 2018
Are you ready to be edgy? Bringing applications to the edge of the network
Using Network Acceleration for an Optimized Edge Cloud Server Architecture
Container orchestration and microservices world
KuberNETes - meetup
Build Distributed Architectures at the Edge
Using Kubernetes to make cellular data plans cheaper for 50M users
Kubernetes Native Infrastructure and CoreOS Operator Framework for 5G Edge Cl...
Kubernetes and Terraform in the Cloud: How RightScale Does DevOps
Akraino and Edge Computing
What is Your Edge From the Cloud to the Edge, Extending Your Reach
 
cncf overview and building edge computing using kubernetes
DevConf.US 2022 - Exploring Open Source Edge Success at Scale
Kubernetes From Scratch .pdf
Working with kubernetes
(SACON) Anand Tapikar - Attack vectors of Kubernetes infra. Are we on right ...
Kubernetes: The Very Hard Way
Kubernetes Presentation
Ad

Recently uploaded (20)

PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Sustainable Sites - Green Building Construction
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Well-logging-methods_new................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
web development for engineering and engineering
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
DOCX
573137875-Attendance-Management-System-original
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT
Project quality management in manufacturing
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
Structs to JSON How Go Powers REST APIs.pdf
Sustainable Sites - Green Building Construction
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Well-logging-methods_new................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
CYBER-CRIMES AND SECURITY A guide to understanding
web development for engineering and engineering
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
573137875-Attendance-Management-System-original
bas. eng. economics group 4 presentation 1.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Project quality management in manufacturing
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Model Code of Practice - Construction Work - 21102022 .pdf

Rancher master class globalized edge workloads with k3s

  • 1. Globalized Edge Workloads with K3s August 13, 2019 Joseph D. Marhee of Packet Labs
  • 3. MISSION At Packet Labs, we craft solutions to uncommon problems that live at the intersection of hardware, software and networks.
  • 4. Meet Joseph D. Marhee Ecosystem Engineer @ Packet Labs â—Ź Customer-first solutions obsessive. â—Ź Long time IaaS systems solutions engineer. â—Ź Has worked with Kubernetes in the provider space since 2015 and has a lot of opinions about it. â—Ź @joseph.packet on the Packet Community Slack
  • 5. Labs Team My D. Truong Senior Director Scott Anderson VP, Outreach Ed Vielmetti Special Projects Director Joseph Marhee Ecosystem Engineer Carl Perry Ecosystem Engineer Scott Burns Senior Director, R & D âž”49 contributing team members on Github âž”15,000 users around the world
  • 7. Overview Why Edge Compute? Why K3s? Why Bare metal? Why anything? â—Ź Infrastructure Edge, Mobile Edge â—Ź Edge Architectures â—Ź K3s Powered Applications & Emerging Uses â—Ź Orchestration â—Ź Containers on Bare Metal â—Ź How does Packet enhance these patterns? â—Ź Demonstration of Packet K3s
  • 8. Quick Recap of Traditional K8s Architecture Concepts “The network is the computer” â—Ź Kubernetes is, conceptually, a scheduler and a reconciliation loop. â—Ź APIServer takes instructions to scheduler â—Ź Scheduler informs node agent (Kubelet) â—Ź Kubelet reports to control plane on state, metrics, provision success/failure. â—Ź Define -> Deploy > loop(Check, Act)
  • 9. What’s the Infrastructure Edge? â—Ź Globally-distributed points of presence of, for example, an IaaS endpoint. â—Ź These can be local to where IoT edge devices are located. â—Ź Architecturally, this is a simple concept, but in practice, the tools may not be intuitive, easily globalized and standardized.
  • 10. Edge Architecture Example: Replicated workloads - Database engines with global replication support (think something like FaunaDB) - Ingests and validates data on one instance, shards across other clusters globally in a mesh of facility clusters - The pattern would not be unlike a “Kubernetes Underlay” in the absence of robust federation.
  • 11. Edge Architecture Example: FaaS Users are load-balanced between sites, in this example, and when a request comes into the LB, a facility is selected. This pattern is ideal for FaaS-based workloads: - Tools like Fission.io or OpenFaaS on each endpoint - Can be a local POP for representing-- at the edge- data store in your core site persistent storage. - Apply this to mobile edge to infrastructure edge patterns.
  • 12. Practical Use Case: Content Delivery Source If familiar with a traditional Content Delivery Network (CDN) model, this is one such pragmatic use case for K3s: - Core site running a full cluster - Edge sites with disposable deployments, rapid re- deployment, serving a cached data.
  • 13. Orchestration The ability to roll out and manage a fleet of high number of comparatively low- powered on-prem/mobile devices, and more robust instances in a local facility is an important one for edge compute. Traditional configuration management aside, tools like: - Terraform (only as opinionated as your provider/platform, on-prem or in DC) - Wrappers like Gitops - Image builders like Packer Can speed up CI/CD of these resources to your edge sites (mobile and infrastructure).
  • 14. Why Containers on Bare Metal? “Stop killing kittens and melting the ice caps: Run containers on bare metal already.” - Bryan Cantrill Virtualization can be an inefficient* abstraction for edge architectures: â—Ź Low-cost hardware for small deployments available (removes the costly virtualization layer-- particularly at the edge) â—Ź Container security less of a question (see: the Unikernel v. Container-in-VM debate circa 2015) â—Ź For edge: maximizing benefits of the hardware platform features for single-tenancy. â—Ź K3s enables common patterns for CI/CD, deployment, and rapid architecture rollout. * if you are not in the business of providing VMs, and if you are only servicing containers for your entire environment
  • 15. How does Packet enable Kubernetes? â—Ź The speed and developer friendliness of cloud provider tools. â—Ź Unopinionated platform that enables: â—‹ Compatibility with nearly all community solutions â—‹ Partners to target Packet effectively â—Ź Network automation suitable for: â—‹ LoadBalancer type Services â—‹ Cluster networking (and between clusters and facilites) â—‹ Location-aware routing with Anycast IP addresses
  • 16. Packet and the Edge â—Ź Packet offers multiple core sites and edge locations-- a point of presence in most areas. â—Ź Layer 2 & 3 network automation, Anycast IP addressing, and diverse NICs across a broad set of specs means that these features can be leveraged for K3s. â—Ź Network volume storage in core sites, attached storage on all host types. â—Ź Building an Infrastructure Edge-facing architecture becomes highly declarative using common tooling like Terraform, Ansible, Packer, to automate provisioning, and continuous integration of an edge site.
  • 17. Packet K3s Demo Deploying a global, location-aware application on K3s. Using orchestration and provisioning tooling to manage a standardized cluster pool. Technologies used: - Anycast IPs/Global IPv4 - K3s - Packet Terraform provider to provision hosts, network, and bootstrap cluster.
  • 18. I want to believe! What’s next? Running a K3s-powered edge strategy on Packet. Packet Labs Projects for Kubernetes in Core and Edge site models on Packet: â—Ź Kubernetes w/BGP â—Ź Multi-architecture Kubernetes â—Ź Packet K3s Some of the tools and software that can target an edge strategy discussed today: â—Ź Fission.io â—Ź OpenFaaS â—Ź chick-fil-a/gitops â—Ź FaunaDB
  • 19. Conclusion â—Ź Any questions? â—Ź Want to get involved with improving the Kubernetes & K3s experiences on Packet?