+ All Categories
Home > Documents > Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics...

Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics...

Date post: 09-Aug-2021
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
72
Navigating the Sea of Kubernetes Local Clusters Ara Pulido, Developer Relations at Datadog
Transcript
Page 1: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Navigating the Sea of Kubernetes Local Clusters

Ara Pulido, Developer Relations at Datadog

Page 2: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications

Page 3: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Developer Relations at Datadog

Working on Kubernetes projects for 3 years

CKA; part of the team that created CKAD

@[email protected]

Page 4: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 5: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

19 major releases since2015+90k commits

+2k contributors

Page 6: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Kubernetes popularity since 2016

Page 7: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Companies are choosing K8s

KUBERNETES IS EXTENSIBLE AND FLEXIBLE (API DRIVEN)

IT HAS A LARGE COMMUNITY

IT HELPS WITH MULTI-CLOUD STRATEGY

Page 8: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Developer experience

Page 10: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 12: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

No :(

Page 13: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Yes!

Page 14: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Why local clusters are useful?

Great Learning Tool

Good for CI/CD Workflows

Quick Feedback Loop

Page 15: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

The sea of local Kubernetes

clusters

Page 16: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Containers

Page 17: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Linux Containers

Page 18: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 19: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

The sea of local Kubernetes clusters

KIND

MINIKUBE

MICROK8S

K3S / K3D

FIREKUBE

Page 20: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

minikube

Page 21: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

minikube

Cross platform (Linux, MacOS, Windows)

Started in 2016, a year after the first Kubernetes release

Follows Kubernetes stable releases

LoadBalancer, NodePort, Ingress, Container Runtimes

Single Node Cluster

Add-ons based

Page 22: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

minikube

Page 23: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

minikube

Page 24: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 25: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 26: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 27: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

kind

Page 28: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

kind - Kubernetes In Docker

Works anywhere Docker works

Started in 2019

Was designed for automated testing of Kubernetes itself (CI)

Uses “container nodes” with systemd, a CRI, Kubernetes

Multi-node cluster

Page 29: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

kind

Page 30: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

kind

Page 31: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

kindkind: ClusterapiVersion: kind.x-k8s.io/v1alpha4nodes:- role: control-plane image: kindest/node:v1.18.0- role: worker image: kindest/node:v1.18.0

Page 32: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 33: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 34: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 35: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 36: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

microK8s

Page 37: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

microk8s

Made by Canonical and packaged as a snap

K8s distribution aimed for developers & IoT devices

Better tested in Ubuntu than other distributions

flanneld CNI by default

Multi-node clusters

Add-ons based

Page 38: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

microk8s

Page 39: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

microK8s

Page 40: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

microK8s

Page 41: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 42: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 43: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 44: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 45: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 46: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 47: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

k3s / k3d

Page 48: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

k3s

Made by Rancher and packaged as a single binary

Lightweight K8s distro aimed for developers & IoT devices

flanneld CNI by default

Multi-node clusters

Experimental k3d for container nodes

Page 49: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

k3s

Page 50: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

k3s

Page 51: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 52: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 53: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 54: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 55: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 56: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

k3d

Nodes will be run as docker containers

Easy for devs wrapper to launch k3s clusters in Docker

Installation script detects your OS and installs a k3d binary

Page 57: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 58: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 59: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 60: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

firekube

Page 61: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

GitOps

Page 62: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

firekube

Using ignite and firecraker for lightweight VMs (only Linux)

GitOps ready Kubernetes cluster

Using docker in docker (footloose) if not in Linux

Based on kubeadm

Page 63: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 64: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 65: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 66: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.
Page 67: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

firekube

Page 68: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

firekube

Page 69: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

firekube

Page 70: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Takeaways

Page 71: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

LOCAL CLUSTERS ARE NOT PRODUCTION

DOCKER IN DOCKER IS A GOOD COMPROMISE

KNOW HOW YOUR LOCAL CLUSTER WORKS

Page 72: Kubernetes Local Clusters Navigating the Sea of€¦ · Datadog is a monitoring and analytics platform that helps companies improve observability of their infrastructure and applications.

Thank you!

Questions?


Recommended