SlideShare a Scribd company logo
1 of 25
Download to read offline
757
Welcome!
$kubectl apply -f meetup.yaml -n 757
757
757
Thanks to our Sponsor
757
$ > whoami
● Matthew Bach
● Sr. Specialist Solution Architect @Red Hat
○ Middleware, OpenShift, Ansible
● Gopher / Pythonista
● Favorite Open Source Tool: Ansible
@matthewjbach
@mbach04
757
$ > whoami
● Brandon Gulla
● Cloud Solutions Architect @ Booz Allen
○ Does cloudy things for federal customers
● Home Automation Enthusiast
● Spaces > Tabs
● Favorite Open Source tool: Home-Assistant
@gullatec
@bgulla
757
What is the CNCF?
Cloud Native Compute Foundation
“The Cloud Native Computing Foundation builds sustainable ecosystems and fosters
communities to support the growth and health of cloud native open source software.”
757
757
K8s history
- v1.0 release July 2015
- Started as an internal project at Google (borg) and is now maintained by the CNCF
- Kubernetes means helmsman or Captain in Greek
- Abbreviated as k8s
757
K8s enables
- Container orchestration
- Distributed computing
- Resource scaling
- Infrastructure abstraction
- Modern Devops workflows
757
Kubernetes Master Node Components
- etcd
- kube-controller-manager
- kube-scheduler
- kube-apiserver
757
Kubernetes Worker Node Components
- kubelet
- kube-proxy
- container runtime
757
*an SDN overlay connects all nodes
757
Minishift / Container Development Kit
- Single hyperconverged OpenShift 3.11.x node
- Runs on MacOS, Linux, Windows
- Requires a hypervisor: VirtualBox, HyperV, KVM
- Full featured OpenShift / K8s cluster to start developing with
- Based on the CNCF compliant Kubernetes distro: OpenShift
- Includes a container registry, OpenShift Console, templates, S2i, Loggins, Metrics,
RBAC, Jenkins...Many productive abstractions
Download: https://developers.redhat.com/products/cdk/overview
757
757
Installing minishift -
First download the VM from: https://developers.redhat.com/products/cdk/hello-world
$ mkdir -p ~/bin
$ cp ~/Downloads/minishift ~/bin
$ chmod +x ~/bin/minishift
$ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
$ export PATH=$PATH:$HOME/bin
$ minishift setup-cdk
...
$ minishift start
...
$ minishift console
...
$ minishift stop
$ minishift delete
757
Demo time
757
K3s - Lightweight Kubernetes
● Single Binary (~50mb)
● Small memory footprint (~300mb)
● Designed for the edge (or your raspberry pi)
● Uses sqlite (multi-master!) instead of etcd
● Uses containerD as default but can use Docker easily
● Fully CNCF certified
● v1.0 GA’ed Nov 19, 2019
○ 10k+ Github Stars
○ 500k+ Downloads
○ 800k+ Installs
757
K3s - Architecture
See? It’s just Kubernetes without all the bloat.
757
Installing k3s -
> curl -sfL https://get.k3s.io | sh -
# Check for Ready node, takes maybe 30 seconds
> sudo k3s agent --server https://myserver:6443 --token ${NODE_TOKEN}
> k3s kubectl get node
> echo “profit!”
757
Installing k3s- k3sup.dev
● Automated installer for k3s
● Pronounced “Ketchup”
● Written by Alex Ellis @alexellisuk
● Bootstraps install process via ssh
● Includes helm chart installer
○ > k3sup app install nginx-ingress
● Makes the easy…. easier.
757
k3s - Live Demo
● K3s installation on fresh centos 7 VM (x86)
via k3sup
● Heterogeneous k8s cluster consisting of:
○ 1 x86 VM
○ 2 Raspberry Pi 3b
○ 4 Raspberry Pi 4 (4GB)
● Rancher UI
● Daemonset deployment with node-label
targeting to deploy a UPS-Power
aggregator with InfluxDB/Grafana
integration
●
757
Demo time
757
Kind
- Ultra lightweight
- Kubernetes in docker (Kind) architecture style
- Appropriate for quick prototyping
- Intended for testing of Kubernetes 1.11+
- Requires docker on your host
https://kind.sigs.k8s.io/
757
Installing Kind
#MacOS / Linux
> curl -Lo ./kind
https://github.com/kubernetes-sigs/kind/releases/download/v0.6.1/kind-$(uname)-amd64
> chmod +x ./kind
> mv ./kind /some-dir-in-your-PATH/kind
> kind create cluster
#Windows
> curl.exe -Lo kind-windows-amd64.exe
https://github.com/kubernetes-sigs/kind/releases/download/v0.6.1/kind-windows-amd64
> Move-Item .kind-windows-amd64.exe c:some-dir-in-your-PATHkind.exe
> kind create cluster
# Or with Package managers
# MacOS
> brew install kind
# Windows
> choco install kind
757
Demo time
757
Other ways to get started
We showed you a few, but there are several options out there:
- Minikube (single VM converged K8s)
- Code Ready Containers (OpenShift 4.2+ on a single VM)
- Deploy a single node cluster locally, and schedule workloads to the master
`kubectl taint nodes $(hostname) node-role.kubernetes.io/master:NoSchedule-`
- Docker Kubernetes desktop
- microk8s

More Related Content

What's hot

What is serveless?
What is serveless? What is serveless?
What is serveless? Provectus
 
Cluster api devopscon berlin
Cluster api devopscon berlinCluster api devopscon berlin
Cluster api devopscon berlinGuus van Weelden
 
KubeCon EU 2016 Keynote: Kubernetes State of the Union
KubeCon EU 2016 Keynote: Kubernetes State of the UnionKubeCon EU 2016 Keynote: Kubernetes State of the Union
KubeCon EU 2016 Keynote: Kubernetes State of the UnionKubeAcademy
 
k8s NodeSet
k8s NodeSet k8s NodeSet
k8s NodeSet loodse
 
Kubecon and cloudnative summit aAustin recap
Kubecon and cloudnative summit aAustin recapKubecon and cloudnative summit aAustin recap
Kubecon and cloudnative summit aAustin recapCloud Technology Experts
 
Google Cloud Computing compares GCE, GAE and GKE
Google Cloud Computing compares GCE, GAE and GKEGoogle Cloud Computing compares GCE, GAE and GKE
Google Cloud Computing compares GCE, GAE and GKESimon Su
 
Kubernetes & Google Kubernetes Engine (GKE)
Kubernetes & Google Kubernetes Engine (GKE)Kubernetes & Google Kubernetes Engine (GKE)
Kubernetes & Google Kubernetes Engine (GKE)Akash Agrawal
 
Resilient Microservices Architecture with kubernetes
Resilient Microservices Architecture with kubernetesResilient Microservices Architecture with kubernetes
Resilient Microservices Architecture with kubernetesNilesh Gule
 
Tu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò Raspa
Tu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò RaspaTu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò Raspa
Tu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò RaspaKCDItaly
 
One cluster to serve them all
One cluster to serve them allOne cluster to serve them all
One cluster to serve them allloodse
 
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...VMware Tanzu
 
AKS - Azure Kubernetes Services - kubernetes meetup may 2018
AKS - Azure Kubernetes Services  - kubernetes meetup may 2018AKS - Azure Kubernetes Services  - kubernetes meetup may 2018
AKS - Azure Kubernetes Services - kubernetes meetup may 2018Jorge Arteiro
 
Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...
Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...
Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...StreamNative
 
Spinnaker on Kubernetes
Spinnaker on KubernetesSpinnaker on Kubernetes
Spinnaker on KubernetesJinwoong Kim
 
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, PuppetPuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, PuppetPuppet
 
AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018
AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018
AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018Jorge Arteiro
 
Google Cloud Platform Special Training
Google Cloud Platform Special TrainingGoogle Cloud Platform Special Training
Google Cloud Platform Special TrainingSimon Su
 
Scaling containers with KEDA
Scaling containers with KEDAScaling containers with KEDA
Scaling containers with KEDANilesh Gule
 
Getting started with Azure Container Service (AKS)
Getting started with Azure Container Service (AKS)Getting started with Azure Container Service (AKS)
Getting started with Azure Container Service (AKS)Janakiram MSV
 
Google Cloud Platform and Kubernetes
Google Cloud Platform and KubernetesGoogle Cloud Platform and Kubernetes
Google Cloud Platform and KubernetesKasper Nissen
 

What's hot (20)

What is serveless?
What is serveless? What is serveless?
What is serveless?
 
Cluster api devopscon berlin
Cluster api devopscon berlinCluster api devopscon berlin
Cluster api devopscon berlin
 
KubeCon EU 2016 Keynote: Kubernetes State of the Union
KubeCon EU 2016 Keynote: Kubernetes State of the UnionKubeCon EU 2016 Keynote: Kubernetes State of the Union
KubeCon EU 2016 Keynote: Kubernetes State of the Union
 
k8s NodeSet
k8s NodeSet k8s NodeSet
k8s NodeSet
 
Kubecon and cloudnative summit aAustin recap
Kubecon and cloudnative summit aAustin recapKubecon and cloudnative summit aAustin recap
Kubecon and cloudnative summit aAustin recap
 
Google Cloud Computing compares GCE, GAE and GKE
Google Cloud Computing compares GCE, GAE and GKEGoogle Cloud Computing compares GCE, GAE and GKE
Google Cloud Computing compares GCE, GAE and GKE
 
Kubernetes & Google Kubernetes Engine (GKE)
Kubernetes & Google Kubernetes Engine (GKE)Kubernetes & Google Kubernetes Engine (GKE)
Kubernetes & Google Kubernetes Engine (GKE)
 
Resilient Microservices Architecture with kubernetes
Resilient Microservices Architecture with kubernetesResilient Microservices Architecture with kubernetes
Resilient Microservices Architecture with kubernetes
 
Tu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò Raspa
Tu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò RaspaTu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò Raspa
Tu non puoi passare! Policy compliance con OPA Gatekeeper | Niccolò Raspa
 
One cluster to serve them all
One cluster to serve them allOne cluster to serve them all
One cluster to serve them all
 
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...
How to Live in a Post-Spring-Cloud-Netflix World - Olga Maciaszek-Sharma & Ja...
 
AKS - Azure Kubernetes Services - kubernetes meetup may 2018
AKS - Azure Kubernetes Services  - kubernetes meetup may 2018AKS - Azure Kubernetes Services  - kubernetes meetup may 2018
AKS - Azure Kubernetes Services - kubernetes meetup may 2018
 
Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...
Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...
Manage Pulsar Cluster Lifecycles with Kubernetes Operators - Pulsar Summit NA...
 
Spinnaker on Kubernetes
Spinnaker on KubernetesSpinnaker on Kubernetes
Spinnaker on Kubernetes
 
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, PuppetPuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
 
AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018
AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018
AKS Azure Kubernetes Services - Azure Nights melbourne feb 2018
 
Google Cloud Platform Special Training
Google Cloud Platform Special TrainingGoogle Cloud Platform Special Training
Google Cloud Platform Special Training
 
Scaling containers with KEDA
Scaling containers with KEDAScaling containers with KEDA
Scaling containers with KEDA
 
Getting started with Azure Container Service (AKS)
Getting started with Azure Container Service (AKS)Getting started with Azure Container Service (AKS)
Getting started with Azure Container Service (AKS)
 
Google Cloud Platform and Kubernetes
Google Cloud Platform and KubernetesGoogle Cloud Platform and Kubernetes
Google Cloud Platform and Kubernetes
 

Similar to 3 ways to get started with Kubernetes locally

Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212Angel Borroy López
 
[Hands-on] Kubernetes | Nov 18, 2017
[Hands-on] Kubernetes | Nov 18, 2017[Hands-on] Kubernetes | Nov 18, 2017
[Hands-on] Kubernetes | Nov 18, 2017Oracle Korea
 
Container orchestration and microservices world
Container orchestration and microservices worldContainer orchestration and microservices world
Container orchestration and microservices worldKarol Chrapek
 
Flowable on Kubenetes
Flowable on KubenetesFlowable on Kubenetes
Flowable on KubenetesFlowable
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes IntroductionEric Gustafson
 
Kubernetes Operability Tooling (GOTO Chicago 2019)
Kubernetes Operability Tooling (GOTO Chicago 2019)Kubernetes Operability Tooling (GOTO Chicago 2019)
Kubernetes Operability Tooling (GOTO Chicago 2019)bridgetkromhout
 
Kubernetes in kubernetes 搭建高可用環境
Kubernetes in kubernetes 搭建高可用環境Kubernetes in kubernetes 搭建高可用環境
Kubernetes in kubernetes 搭建高可用環境inwin stack
 
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingK8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingPiotr Perzyna
 
Mattia Gandolfi - Improving utilization and portability with Containers and C...
Mattia Gandolfi - Improving utilization and portability with Containers and C...Mattia Gandolfi - Improving utilization and portability with Containers and C...
Mattia Gandolfi - Improving utilization and portability with Containers and C...Codemotion
 
Kubered -Recipes for C2 Operations on Kubernetes
Kubered -Recipes for C2 Operations on KubernetesKubered -Recipes for C2 Operations on Kubernetes
Kubered -Recipes for C2 Operations on KubernetesJeffrey Holden
 
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-step
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-stepSetting up CI/CD Pipeline with Kubernetes and Kublr step by-step
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-stepKublr
 
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-stepSetting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-stepOleg Chunikhin
 
Kubernetes - Sailing a Sea of Containers
Kubernetes - Sailing a Sea of ContainersKubernetes - Sailing a Sea of Containers
Kubernetes - Sailing a Sea of ContainersKel Cecil
 
DevEx | there’s no place like k3s
DevEx | there’s no place like k3sDevEx | there’s no place like k3s
DevEx | there’s no place like k3sHaggai Philip Zagury
 
Pydata 2020 containers meetup
Pydata  2020 containers meetup Pydata  2020 containers meetup
Pydata 2020 containers meetup Walid Shaari
 
Deploying WSO2 API Manager in Production-Grade Kubernetes
Deploying WSO2 API Manager in Production-Grade KubernetesDeploying WSO2 API Manager in Production-Grade Kubernetes
Deploying WSO2 API Manager in Production-Grade KubernetesWSO2
 
Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple Wojciech Barczyński
 
Pro2516 10 things about oracle and k8s.pptx-final
Pro2516   10 things about oracle and k8s.pptx-finalPro2516   10 things about oracle and k8s.pptx-final
Pro2516 10 things about oracle and k8s.pptx-finalMichel Schildmeijer
 

Similar to 3 ways to get started with Kubernetes locally (20)

Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212
 
[Hands-on] Kubernetes | Nov 18, 2017
[Hands-on] Kubernetes | Nov 18, 2017[Hands-on] Kubernetes | Nov 18, 2017
[Hands-on] Kubernetes | Nov 18, 2017
 
Kubernetes security with AWS
Kubernetes security with AWSKubernetes security with AWS
Kubernetes security with AWS
 
Container orchestration and microservices world
Container orchestration and microservices worldContainer orchestration and microservices world
Container orchestration and microservices world
 
Flowable on Kubenetes
Flowable on KubenetesFlowable on Kubenetes
Flowable on Kubenetes
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes Introduction
 
Kubernetes Operability Tooling (GOTO Chicago 2019)
Kubernetes Operability Tooling (GOTO Chicago 2019)Kubernetes Operability Tooling (GOTO Chicago 2019)
Kubernetes Operability Tooling (GOTO Chicago 2019)
 
Kubernetes in kubernetes 搭建高可用環境
Kubernetes in kubernetes 搭建高可用環境Kubernetes in kubernetes 搭建高可用環境
Kubernetes in kubernetes 搭建高可用環境
 
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingK8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals Training
 
Mattia Gandolfi - Improving utilization and portability with Containers and C...
Mattia Gandolfi - Improving utilization and portability with Containers and C...Mattia Gandolfi - Improving utilization and portability with Containers and C...
Mattia Gandolfi - Improving utilization and portability with Containers and C...
 
Kubered -Recipes for C2 Operations on Kubernetes
Kubered -Recipes for C2 Operations on KubernetesKubered -Recipes for C2 Operations on Kubernetes
Kubered -Recipes for C2 Operations on Kubernetes
 
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-step
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-stepSetting up CI/CD Pipeline with Kubernetes and Kublr step by-step
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-step
 
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-stepSetting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
 
Kubernetes - Sailing a Sea of Containers
Kubernetes - Sailing a Sea of ContainersKubernetes - Sailing a Sea of Containers
Kubernetes - Sailing a Sea of Containers
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
DevEx | there’s no place like k3s
DevEx | there’s no place like k3sDevEx | there’s no place like k3s
DevEx | there’s no place like k3s
 
Pydata 2020 containers meetup
Pydata  2020 containers meetup Pydata  2020 containers meetup
Pydata 2020 containers meetup
 
Deploying WSO2 API Manager in Production-Grade Kubernetes
Deploying WSO2 API Manager in Production-Grade KubernetesDeploying WSO2 API Manager in Production-Grade Kubernetes
Deploying WSO2 API Manager in Production-Grade Kubernetes
 
Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple Effective Building your Platform with Kubernetes == Keep it Simple
Effective Building your Platform with Kubernetes == Keep it Simple
 
Pro2516 10 things about oracle and k8s.pptx-final
Pro2516   10 things about oracle and k8s.pptx-finalPro2516   10 things about oracle and k8s.pptx-final
Pro2516 10 things about oracle and k8s.pptx-final
 

Recently uploaded

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 

Recently uploaded (20)

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 

3 ways to get started with Kubernetes locally

  • 1. 757 Welcome! $kubectl apply -f meetup.yaml -n 757 757
  • 3. 757 $ > whoami ● Matthew Bach ● Sr. Specialist Solution Architect @Red Hat ○ Middleware, OpenShift, Ansible ● Gopher / Pythonista ● Favorite Open Source Tool: Ansible @matthewjbach @mbach04
  • 4. 757 $ > whoami ● Brandon Gulla ● Cloud Solutions Architect @ Booz Allen ○ Does cloudy things for federal customers ● Home Automation Enthusiast ● Spaces > Tabs ● Favorite Open Source tool: Home-Assistant @gullatec @bgulla
  • 5. 757 What is the CNCF? Cloud Native Compute Foundation “The Cloud Native Computing Foundation builds sustainable ecosystems and fosters communities to support the growth and health of cloud native open source software.”
  • 6. 757
  • 7. 757 K8s history - v1.0 release July 2015 - Started as an internal project at Google (borg) and is now maintained by the CNCF - Kubernetes means helmsman or Captain in Greek - Abbreviated as k8s
  • 8. 757 K8s enables - Container orchestration - Distributed computing - Resource scaling - Infrastructure abstraction - Modern Devops workflows
  • 9. 757 Kubernetes Master Node Components - etcd - kube-controller-manager - kube-scheduler - kube-apiserver
  • 10. 757 Kubernetes Worker Node Components - kubelet - kube-proxy - container runtime
  • 11. 757 *an SDN overlay connects all nodes
  • 12. 757 Minishift / Container Development Kit - Single hyperconverged OpenShift 3.11.x node - Runs on MacOS, Linux, Windows - Requires a hypervisor: VirtualBox, HyperV, KVM - Full featured OpenShift / K8s cluster to start developing with - Based on the CNCF compliant Kubernetes distro: OpenShift - Includes a container registry, OpenShift Console, templates, S2i, Loggins, Metrics, RBAC, Jenkins...Many productive abstractions Download: https://developers.redhat.com/products/cdk/overview
  • 13. 757
  • 14. 757 Installing minishift - First download the VM from: https://developers.redhat.com/products/cdk/hello-world $ mkdir -p ~/bin $ cp ~/Downloads/minishift ~/bin $ chmod +x ~/bin/minishift $ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc $ export PATH=$PATH:$HOME/bin $ minishift setup-cdk ... $ minishift start ... $ minishift console ... $ minishift stop $ minishift delete
  • 16. 757 K3s - Lightweight Kubernetes ● Single Binary (~50mb) ● Small memory footprint (~300mb) ● Designed for the edge (or your raspberry pi) ● Uses sqlite (multi-master!) instead of etcd ● Uses containerD as default but can use Docker easily ● Fully CNCF certified ● v1.0 GA’ed Nov 19, 2019 ○ 10k+ Github Stars ○ 500k+ Downloads ○ 800k+ Installs
  • 17. 757 K3s - Architecture See? It’s just Kubernetes without all the bloat.
  • 18. 757 Installing k3s - > curl -sfL https://get.k3s.io | sh - # Check for Ready node, takes maybe 30 seconds > sudo k3s agent --server https://myserver:6443 --token ${NODE_TOKEN} > k3s kubectl get node > echo “profit!”
  • 19. 757 Installing k3s- k3sup.dev ● Automated installer for k3s ● Pronounced “Ketchup” ● Written by Alex Ellis @alexellisuk ● Bootstraps install process via ssh ● Includes helm chart installer ○ > k3sup app install nginx-ingress ● Makes the easy…. easier.
  • 20. 757 k3s - Live Demo ● K3s installation on fresh centos 7 VM (x86) via k3sup ● Heterogeneous k8s cluster consisting of: ○ 1 x86 VM ○ 2 Raspberry Pi 3b ○ 4 Raspberry Pi 4 (4GB) ● Rancher UI ● Daemonset deployment with node-label targeting to deploy a UPS-Power aggregator with InfluxDB/Grafana integration ●
  • 22. 757 Kind - Ultra lightweight - Kubernetes in docker (Kind) architecture style - Appropriate for quick prototyping - Intended for testing of Kubernetes 1.11+ - Requires docker on your host https://kind.sigs.k8s.io/
  • 23. 757 Installing Kind #MacOS / Linux > curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.6.1/kind-$(uname)-amd64 > chmod +x ./kind > mv ./kind /some-dir-in-your-PATH/kind > kind create cluster #Windows > curl.exe -Lo kind-windows-amd64.exe https://github.com/kubernetes-sigs/kind/releases/download/v0.6.1/kind-windows-amd64 > Move-Item .kind-windows-amd64.exe c:some-dir-in-your-PATHkind.exe > kind create cluster # Or with Package managers # MacOS > brew install kind # Windows > choco install kind
  • 25. 757 Other ways to get started We showed you a few, but there are several options out there: - Minikube (single VM converged K8s) - Code Ready Containers (OpenShift 4.2+ on a single VM) - Deploy a single node cluster locally, and schedule workloads to the master `kubectl taint nodes $(hostname) node-role.kubernetes.io/master:NoSchedule-` - Docker Kubernetes desktop - microk8s