MicroK8s 1.28 - MicroCeph on MicroK8s.pdf

Ceph storage on MicroK8s!
Angelos Kolaitis
Senior Engineer @MicroK8s
1.29 Release Lead Shadow
MicroK8s
Friday 1st of September, 1:30 pm GMT
https://meet.google.com/hjy-uogt-tax
Philip Williams
Product Manager
Ceph
&
Agenda
● What is MicroCeph?
● MicroCeph advantages
● Deployment of MicroCeph
● MicroCeph on MicroK8s
What is MicroCeph?
Consistent, Isolated and Upgrade Friendly
● Streamlined and effortless deployment
● Minimal setup and maintenance overheads
● MicroCeph is containerised snap with all of its
dependencies and runs fully isolated from the
underlying host
● Using channels for the distribution, going from
latest/stable to latest/edge is easy
MicroCeph advantages
Storage for non-experts
● Easiest way to deploy Ceph, just a few commands
● Designed for non-experts
● Highly scalable
○ dev workstation, to edge, to datacenter
● Reliable and resilient
● Open-source distributed storage system
● Flexibility for object, block, and file-level storage
● Supports encryption at rest too!
snap install microceph
microceph cluster bootstrap
microceph cluster add node[x]
microceph cluster join pasted-output-from-node1
microceph.ceph status
microceph disk add /dev/sd[x] --wipe
microceph.ceph status
microceph.ceph osd status
MicroCeph deployment
microceph.com
QR Code?
MicroCeph demo
MicroK8s 1.28 - MicroCeph on MicroK8s.pdf
Ceph Storage in MicroK8s
MicroK8s +
- Kubernetes solves container orchestration issues at scale
- I can run my massive distributed workloads at scale (machine learning, video
transcoding, my SaaS business)
- Where can I store the end results?
- We need persistent storage!
- CSI (Container Storage Interface)
- Kubernetes does not solve the problem of distributed storage, since
performance, stability requirements might differ
- Instead, it defines a standard interface to consume any storage
- Which CSI driver? Depends!
- On a public cloud? aws-ebs-csi-driver, azurefile-csi-driver, …
- On a private cloud? cinder-csi-driver, …
- On bare-metal? BYOS!
- Ceph
Distributed Storage In Kubernetes
- Ceph CSI!
- Supports CephRBD (ideal
for RWO volumes)
- Supports CephFS (supports
RWX volumes)
Ceph storage in Kubernetes
sudo microk8s enable rook-ceph
Deploy rook-operator on the
MicroK8s cluster
Rook can:
- deploy a Ceph cluster inside
the MicroK8s cluster, using
disks from the hosts
- integrate with external
Ceph clusters and manage
them as citizens in
Kubernetes
MicroK8s Rook Ceph addon (1/2)
sudo microk8s enable rook-ceph
Why Rook?
- Can detect the right CSI
version depending on running
K8s and Ceph
- (Optionally) Can be used to
manage Ceph from
Kubernetes
- (Optionally) Simplifies ceph
auth clients and keyrings
- (Optionally) Can deploy a
Ceph cluster on top of the
Kubernetes nodes
MicroK8s Rook Ceph addon (2/2)
Install MicroCeph
$ sudo snap install microceph --channel quincy/stable
$ sudo microceph cluster bootstrap
$ sudo microceph disk add $disks --wipe --encrypt
MicroK8s / MicroCeph (1/4)
Install MicroK8s
$ sudo snap install microk8s --classic --channel 1.28/stable
MicroK8s / MicroCeph (2/4)
Enable Ceph addon
$ sudo microk8s enable rook-ceph
MicroK8s / MicroCeph (3/4)
Consume MicroCeph
$ sudo microk8s connect-external-ceph
MicroK8s / MicroCeph (4/4)
microk8s connect-external-ceph
- Connect to Ceph cluster and initialize RBD pool
- Detect appropriate Ceph CSI version to deploy
- Generate Ceph client keyrings for ceph-csi
- Create Kubernetes resources for connecting to Ceph (ceph mons, keyrings)
- Create StorageClasses for consuming Ceph storage
MicroK8s / MicroCeph
Deploy microceph and microk8s on an edge environment and use Ceph for
storage
$ sudo snap install microceph --channel quincy/stable
$ sudo snap install microk8s --classic --channel 1.28/stable
$ sudo microk8s enable rook-ceph
$ sudo microk8s connect-external-ceph
Scenarios (1/4)
More complex Ceph configuration, use an RBD pool backed by specific OSDs
(e.g. tenant separation, use only SSD disks, …)
$ ceph osd crush rule create-replicated replicated_ssd default host ssd
$ rbd pool create microk8s-ssd-pool
$ ceph osd pool set microk8s-ssd-pool crush_rule replicated_ssd
$ microk8s connect-external-ceph --rbd-pool microk8s-ssd-pool
Scenarios (2/4)
CephFS for RWX support
$ ceph fs volume create microk8s-cephfs0
$ microk8s connect-external-ceph
Scenarios (3/4)
Integrate with any Ceph cluster
$ microk8s connect-external-ceph 
--ceph-conf ./ceph.conf 
--ceph-keyring ./keyring.conf
Scenarios (4/4)
Can I Try This Out?
Sure!
1.28 cluster in 5 min
$ sudo snap install microk8s --classic --channel 1.28/stable
MicroK8s releases on 1.28/edge within 24 hours after upstream release
MicroK8s
Thank you
Interaction
• Websites
https://microk8s.io/
https://github.com/canonical/microk8s
• Discussion on
https://discuss.kubernetes.io/tag/microk8s
or in Slack on the #microk8s channel
• Report Issues
https://github.com/canonical/microk8s/issues
• MicroK8s Community Sync
Every Friday, 1:30pm GMT
Video call link: https://meet.google.com/hjy-uogt-tax
Upcoming sessions from MicroK8s 1.28
- 1.28 Upstream Updates
- MicroK8s CIS conformance
- MicroK8s Dual Stack
- MicroK8s Ceph integration (feat MicroCeph)
Upcoming sessions calendar
https://www.meetup.com/microk8s-meetup-group/
MicroK8s
Thank you. Questions?
1 von 24

Recomendados

Working with JSON Data in PostgreSQL vs. MongoDB von
Working with JSON Data in PostgreSQL vs. MongoDBWorking with JSON Data in PostgreSQL vs. MongoDB
Working with JSON Data in PostgreSQL vs. MongoDBScaleGrid.io
830 views46 Folien
elasticsearch_적용 및 활용_정리 von
elasticsearch_적용 및 활용_정리elasticsearch_적용 및 활용_정리
elasticsearch_적용 및 활용_정리Junyi Song
74.7K views246 Folien
Massive Data Processing in Adobe Using Delta Lake von
Massive Data Processing in Adobe Using Delta LakeMassive Data Processing in Adobe Using Delta Lake
Massive Data Processing in Adobe Using Delta LakeDatabricks
719 views25 Folien
Spark 의 핵심은 무엇인가? RDD! (RDD paper review) von
Spark 의 핵심은 무엇인가? RDD! (RDD paper review)Spark 의 핵심은 무엇인가? RDD! (RDD paper review)
Spark 의 핵심은 무엇인가? RDD! (RDD paper review)Yongho Ha
87.2K views40 Folien
Apache Druid 101 von
Apache Druid 101Apache Druid 101
Apache Druid 101Data Con LA
250 views32 Folien
RHEL7/CentOS7 NetworkManager徹底入門 von
RHEL7/CentOS7 NetworkManager徹底入門RHEL7/CentOS7 NetworkManager徹底入門
RHEL7/CentOS7 NetworkManager徹底入門Etsuji Nakai
52.5K views30 Folien

Más contenido relacionado

Was ist angesagt?

BlueStore: a new, faster storage backend for Ceph von
BlueStore: a new, faster storage backend for CephBlueStore: a new, faster storage backend for Ceph
BlueStore: a new, faster storage backend for CephSage Weil
5.7K views48 Folien
Yarn by default (Spark on YARN) von
Yarn by default (Spark on YARN)Yarn by default (Spark on YARN)
Yarn by default (Spark on YARN)Ferran Galí Reniu
878 views85 Folien
Time-Series Apache HBase von
Time-Series Apache HBaseTime-Series Apache HBase
Time-Series Apache HBaseHBaseCon
5.6K views17 Folien
Hadoop入門 von
Hadoop入門Hadoop入門
Hadoop入門Preferred Networks
18.2K views46 Folien
Learned from KIND von
Learned from KIND Learned from KIND
Learned from KIND HungWei Chiu
102 views56 Folien
Introduction to elasticsearch von
Introduction to elasticsearchIntroduction to elasticsearch
Introduction to elasticsearchpmanvi
6.7K views26 Folien

Was ist angesagt?(20)

BlueStore: a new, faster storage backend for Ceph von Sage Weil
BlueStore: a new, faster storage backend for CephBlueStore: a new, faster storage backend for Ceph
BlueStore: a new, faster storage backend for Ceph
Sage Weil5.7K views
Time-Series Apache HBase von HBaseCon
Time-Series Apache HBaseTime-Series Apache HBase
Time-Series Apache HBase
HBaseCon5.6K views
Introduction to elasticsearch von pmanvi
Introduction to elasticsearchIntroduction to elasticsearch
Introduction to elasticsearch
pmanvi6.7K views
Introduction to Apache Spark Developer Training von Cloudera, Inc.
Introduction to Apache Spark Developer TrainingIntroduction to Apache Spark Developer Training
Introduction to Apache Spark Developer Training
Cloudera, Inc.31.7K views
Ceph and RocksDB von Sage Weil
Ceph and RocksDBCeph and RocksDB
Ceph and RocksDB
Sage Weil13.6K views
PostgreSQL共有バッファと関連ツール von Masahiko Sawada
PostgreSQL共有バッファと関連ツールPostgreSQL共有バッファと関連ツール
PostgreSQL共有バッファと関連ツール
Masahiko Sawada3.7K views
[211] HBase 기반 검색 데이터 저장소 (공개용) von NAVER D2
[211] HBase 기반 검색 데이터 저장소 (공개용)[211] HBase 기반 검색 데이터 저장소 (공개용)
[211] HBase 기반 검색 데이터 저장소 (공개용)
NAVER D28.5K views
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had... von Simplilearn
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Simplilearn3.9K views
How We Optimize Spark SQL Jobs With parallel and sync IO von Databricks
How We Optimize Spark SQL Jobs With parallel and sync IOHow We Optimize Spark SQL Jobs With parallel and sync IO
How We Optimize Spark SQL Jobs With parallel and sync IO
Databricks572 views
Introduction to Datasource V2 API von datamantra
Introduction to Datasource V2 APIIntroduction to Datasource V2 API
Introduction to Datasource V2 API
datamantra1.6K views
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang von Databricks
Apache Spark Data Source V2 with Wenchen Fan and Gengliang WangApache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Databricks5.8K views
Speed up UDFs with GPUs using the RAPIDS Accelerator von Databricks
Speed up UDFs with GPUs using the RAPIDS AcceleratorSpeed up UDFs with GPUs using the RAPIDS Accelerator
Speed up UDFs with GPUs using the RAPIDS Accelerator
Databricks260 views
Monitor Apache Spark 3 on Kubernetes using Metrics and Plugins von Databricks
Monitor Apache Spark 3 on Kubernetes using Metrics and PluginsMonitor Apache Spark 3 on Kubernetes using Metrics and Plugins
Monitor Apache Spark 3 on Kubernetes using Metrics and Plugins
Databricks683 views
Improving Apache Spark's Reliability with DataSourceV2 von Databricks
Improving Apache Spark's Reliability with DataSourceV2Improving Apache Spark's Reliability with DataSourceV2
Improving Apache Spark's Reliability with DataSourceV2
Databricks1K views
Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks) von Spark Summit
Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks)Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks)
Data Storage Tips for Optimal Spark Performance-(Vida Ha, Databricks)
Spark Summit22.7K views
Apache Spark on K8S and HDFS Security with Ilan Flonenko von Databricks
Apache Spark on K8S and HDFS Security with Ilan FlonenkoApache Spark on K8S and HDFS Security with Ilan Flonenko
Apache Spark on K8S and HDFS Security with Ilan Flonenko
Databricks758 views

Similar a MicroK8s 1.28 - MicroCeph on MicroK8s.pdf

CERN OpenStack Cloud Control Plane - From VMs to K8s von
CERN OpenStack Cloud Control Plane - From VMs to K8sCERN OpenStack Cloud Control Plane - From VMs to K8s
CERN OpenStack Cloud Control Plane - From VMs to K8sBelmiro Moreira
313 views35 Folien
Andrija Panic - Ceph with CloudStack von
Andrija Panic - Ceph with CloudStackAndrija Panic - Ceph with CloudStack
Andrija Panic - Ceph with CloudStackShapeBlue
284 views29 Folien
OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological... von
OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological...OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological...
OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological...OpenNebula Project
550 views22 Folien
Webinar - Getting Started With Ceph von
Webinar - Getting Started With CephWebinar - Getting Started With Ceph
Webinar - Getting Started With CephCeph Community
2.4K views34 Folien
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES von
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESJan Kalcic
2.7K views57 Folien
Ceph with CloudStack von
Ceph with CloudStackCeph with CloudStack
Ceph with CloudStackShapeBlue
730 views29 Folien

Similar a MicroK8s 1.28 - MicroCeph on MicroK8s.pdf(20)

CERN OpenStack Cloud Control Plane - From VMs to K8s von Belmiro Moreira
CERN OpenStack Cloud Control Plane - From VMs to K8sCERN OpenStack Cloud Control Plane - From VMs to K8s
CERN OpenStack Cloud Control Plane - From VMs to K8s
Belmiro Moreira313 views
Andrija Panic - Ceph with CloudStack von ShapeBlue
Andrija Panic - Ceph with CloudStackAndrija Panic - Ceph with CloudStack
Andrija Panic - Ceph with CloudStack
ShapeBlue284 views
OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological... von OpenNebula Project
OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological...OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological...
OpenNebulaConf 2016 - OpenNebula, a story about flexibility and technological...
OpenNebula Project550 views
Webinar - Getting Started With Ceph von Ceph Community
Webinar - Getting Started With CephWebinar - Getting Started With Ceph
Webinar - Getting Started With Ceph
Ceph Community 2.4K views
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES von Jan Kalcic
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Jan Kalcic2.7K views
Ceph with CloudStack von ShapeBlue
Ceph with CloudStackCeph with CloudStack
Ceph with CloudStack
ShapeBlue730 views
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph von Ceph Community
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Community 113 views
Automating Your CloudStack Cloud with Puppet von buildacloud
Automating Your CloudStack Cloud with PuppetAutomating Your CloudStack Cloud with Puppet
Automating Your CloudStack Cloud with Puppet
buildacloud981 views
TUT18972: Unleash the power of Ceph across the Data Center von Ettore Simone
TUT18972: Unleash the power of Ceph across the Data CenterTUT18972: Unleash the power of Ceph across the Data Center
TUT18972: Unleash the power of Ceph across the Data Center
Ettore Simone3.4K views
Kubernetes Architecture and Introduction – Paris Kubernetes Meetup von Stefan Schimanski
Kubernetes Architecture and Introduction – Paris Kubernetes MeetupKubernetes Architecture and Introduction – Paris Kubernetes Meetup
Kubernetes Architecture and Introduction – Paris Kubernetes Meetup
Stefan Schimanski5.5K views
Who is afraid of privileged containers ? von Marko Bevc
Who is afraid of privileged containers ?Who is afraid of privileged containers ?
Who is afraid of privileged containers ?
Marko Bevc22 views
SUSE - performance analysis-with_ceph von inwin stack
SUSE - performance analysis-with_cephSUSE - performance analysis-with_ceph
SUSE - performance analysis-with_ceph
inwin stack285 views
Ceph and Mirantis OpenStack von Mirantis
Ceph and Mirantis OpenStackCeph and Mirantis OpenStack
Ceph and Mirantis OpenStack
Mirantis19.5K views
[BarCamp2018][20180915][Tips for Virtual Hosting on Kubernetes] von Wong Hoi Sing Edison
[BarCamp2018][20180915][Tips for Virtual Hosting on Kubernetes][BarCamp2018][20180915][Tips for Virtual Hosting on Kubernetes]
[BarCamp2018][20180915][Tips for Virtual Hosting on Kubernetes]
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019 von Sean Cohen
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Sean Cohen1.7K views
CEPH technical analysis 2014 von Erwan Quigna
CEPH technical analysis 2014CEPH technical analysis 2014
CEPH technical analysis 2014
Erwan Quigna322 views
Performance analysis with_ceph von Alex Lau
Performance analysis with_cephPerformance analysis with_ceph
Performance analysis with_ceph
Alex Lau2.2K views
Open vStorage Road show 2015 Q1 von wim_provoost
Open vStorage Road show 2015 Q1Open vStorage Road show 2015 Q1
Open vStorage Road show 2015 Q1
wim_provoost3.4K views
TechWiseTV Workshop: Application Hosting on Catalyst 9000 Series Switches von Robb Boyd
TechWiseTV Workshop: Application Hosting on Catalyst 9000 Series SwitchesTechWiseTV Workshop: Application Hosting on Catalyst 9000 Series Switches
TechWiseTV Workshop: Application Hosting on Catalyst 9000 Series Switches
Robb Boyd1.2K views
In-Ceph-tion: Deploying a Ceph cluster on DreamCompute von Patrick McGarry
In-Ceph-tion: Deploying a Ceph cluster on DreamComputeIn-Ceph-tion: Deploying a Ceph cluster on DreamCompute
In-Ceph-tion: Deploying a Ceph cluster on DreamCompute
Patrick McGarry1.6K views

Último

Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ... von
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...marksimpsongw
74 views34 Folien
Tridens DevOps von
Tridens DevOpsTridens DevOps
Tridens DevOpsTridens
9 views28 Folien
How to Install and Activate Email-Researcher von
How to Install and Activate Email-ResearcherHow to Install and Activate Email-Researcher
How to Install and Activate Email-ResearchereGrabber
19 views8 Folien
DSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - Afternoon von
DSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - AfternoonDSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - Afternoon
DSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - AfternoonDeltares
11 views43 Folien
DevsRank von
DevsRankDevsRank
DevsRankdevsrank786
10 views1 Folie
Unleash The Monkeys von
Unleash The MonkeysUnleash The Monkeys
Unleash The MonkeysJacob Duijzer
7 views28 Folien

Último(20)

Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ... von marksimpsongw
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
Mark Simpson - UKOUG23 - Refactoring Monolithic Oracle Database Applications ...
marksimpsongw74 views
Tridens DevOps von Tridens
Tridens DevOpsTridens DevOps
Tridens DevOps
Tridens9 views
How to Install and Activate Email-Researcher von eGrabber
How to Install and Activate Email-ResearcherHow to Install and Activate Email-Researcher
How to Install and Activate Email-Researcher
eGrabber19 views
DSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - Afternoon von Deltares
DSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - AfternoonDSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - Afternoon
DSD-INT 2023 - Delft3D User Days - Welcome - Day 3 - Afternoon
Deltares11 views
Software testing company in India.pptx von SakshiPatel82
Software testing company in India.pptxSoftware testing company in India.pptx
Software testing company in India.pptx
SakshiPatel827 views
Roadmap y Novedades de producto von Neo4j
Roadmap y Novedades de productoRoadmap y Novedades de producto
Roadmap y Novedades de producto
Neo4j43 views
Neo4j : Graphes de Connaissance, IA et LLMs von Neo4j
Neo4j : Graphes de Connaissance, IA et LLMsNeo4j : Graphes de Connaissance, IA et LLMs
Neo4j : Graphes de Connaissance, IA et LLMs
Neo4j46 views
A first look at MariaDB 11.x features and ideas on how to use them von Federico Razzoli
A first look at MariaDB 11.x features and ideas on how to use themA first look at MariaDB 11.x features and ideas on how to use them
A first look at MariaDB 11.x features and ideas on how to use them
Federico Razzoli44 views
El Arte de lo Possible von Neo4j
El Arte de lo PossibleEl Arte de lo Possible
El Arte de lo Possible
Neo4j34 views
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge... von Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
DSD-INT 2023 Delft3D FM Suite 2024.01 2D3D - New features + Improvements - Ge...
Deltares16 views
MariaDB stored procedures and why they should be improved von Federico Razzoli
MariaDB stored procedures and why they should be improvedMariaDB stored procedures and why they should be improved
MariaDB stored procedures and why they should be improved
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J... von Deltares
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
Deltares7 views
What Can Employee Monitoring Software Do?​ von wAnywhere
What Can Employee Monitoring Software Do?​What Can Employee Monitoring Software Do?​
What Can Employee Monitoring Software Do?​
wAnywhere18 views
DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan... von Deltares
DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan...DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan...
DSD-INT 2023 Baseline studies for Strategic Coastal protection for Long Islan...
Deltares10 views
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ... von Donato Onofri
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Donato Onofri643 views

MicroK8s 1.28 - MicroCeph on MicroK8s.pdf

  • 1. Ceph storage on MicroK8s! Angelos Kolaitis Senior Engineer @MicroK8s 1.29 Release Lead Shadow MicroK8s Friday 1st of September, 1:30 pm GMT https://meet.google.com/hjy-uogt-tax Philip Williams Product Manager Ceph &
  • 2. Agenda ● What is MicroCeph? ● MicroCeph advantages ● Deployment of MicroCeph ● MicroCeph on MicroK8s
  • 3. What is MicroCeph? Consistent, Isolated and Upgrade Friendly ● Streamlined and effortless deployment ● Minimal setup and maintenance overheads ● MicroCeph is containerised snap with all of its dependencies and runs fully isolated from the underlying host ● Using channels for the distribution, going from latest/stable to latest/edge is easy
  • 4. MicroCeph advantages Storage for non-experts ● Easiest way to deploy Ceph, just a few commands ● Designed for non-experts ● Highly scalable ○ dev workstation, to edge, to datacenter ● Reliable and resilient ● Open-source distributed storage system ● Flexibility for object, block, and file-level storage ● Supports encryption at rest too!
  • 5. snap install microceph microceph cluster bootstrap microceph cluster add node[x] microceph cluster join pasted-output-from-node1 microceph.ceph status microceph disk add /dev/sd[x] --wipe microceph.ceph status microceph.ceph osd status MicroCeph deployment microceph.com QR Code?
  • 8. Ceph Storage in MicroK8s MicroK8s +
  • 9. - Kubernetes solves container orchestration issues at scale - I can run my massive distributed workloads at scale (machine learning, video transcoding, my SaaS business) - Where can I store the end results? - We need persistent storage! - CSI (Container Storage Interface) - Kubernetes does not solve the problem of distributed storage, since performance, stability requirements might differ - Instead, it defines a standard interface to consume any storage - Which CSI driver? Depends! - On a public cloud? aws-ebs-csi-driver, azurefile-csi-driver, … - On a private cloud? cinder-csi-driver, … - On bare-metal? BYOS! - Ceph Distributed Storage In Kubernetes
  • 10. - Ceph CSI! - Supports CephRBD (ideal for RWO volumes) - Supports CephFS (supports RWX volumes) Ceph storage in Kubernetes
  • 11. sudo microk8s enable rook-ceph Deploy rook-operator on the MicroK8s cluster Rook can: - deploy a Ceph cluster inside the MicroK8s cluster, using disks from the hosts - integrate with external Ceph clusters and manage them as citizens in Kubernetes MicroK8s Rook Ceph addon (1/2)
  • 12. sudo microk8s enable rook-ceph Why Rook? - Can detect the right CSI version depending on running K8s and Ceph - (Optionally) Can be used to manage Ceph from Kubernetes - (Optionally) Simplifies ceph auth clients and keyrings - (Optionally) Can deploy a Ceph cluster on top of the Kubernetes nodes MicroK8s Rook Ceph addon (2/2)
  • 13. Install MicroCeph $ sudo snap install microceph --channel quincy/stable $ sudo microceph cluster bootstrap $ sudo microceph disk add $disks --wipe --encrypt MicroK8s / MicroCeph (1/4)
  • 14. Install MicroK8s $ sudo snap install microk8s --classic --channel 1.28/stable MicroK8s / MicroCeph (2/4)
  • 15. Enable Ceph addon $ sudo microk8s enable rook-ceph MicroK8s / MicroCeph (3/4)
  • 16. Consume MicroCeph $ sudo microk8s connect-external-ceph MicroK8s / MicroCeph (4/4)
  • 17. microk8s connect-external-ceph - Connect to Ceph cluster and initialize RBD pool - Detect appropriate Ceph CSI version to deploy - Generate Ceph client keyrings for ceph-csi - Create Kubernetes resources for connecting to Ceph (ceph mons, keyrings) - Create StorageClasses for consuming Ceph storage MicroK8s / MicroCeph
  • 18. Deploy microceph and microk8s on an edge environment and use Ceph for storage $ sudo snap install microceph --channel quincy/stable $ sudo snap install microk8s --classic --channel 1.28/stable $ sudo microk8s enable rook-ceph $ sudo microk8s connect-external-ceph Scenarios (1/4)
  • 19. More complex Ceph configuration, use an RBD pool backed by specific OSDs (e.g. tenant separation, use only SSD disks, …) $ ceph osd crush rule create-replicated replicated_ssd default host ssd $ rbd pool create microk8s-ssd-pool $ ceph osd pool set microk8s-ssd-pool crush_rule replicated_ssd $ microk8s connect-external-ceph --rbd-pool microk8s-ssd-pool Scenarios (2/4)
  • 20. CephFS for RWX support $ ceph fs volume create microk8s-cephfs0 $ microk8s connect-external-ceph Scenarios (3/4)
  • 21. Integrate with any Ceph cluster $ microk8s connect-external-ceph --ceph-conf ./ceph.conf --ceph-keyring ./keyring.conf Scenarios (4/4)
  • 22. Can I Try This Out? Sure! 1.28 cluster in 5 min $ sudo snap install microk8s --classic --channel 1.28/stable MicroK8s releases on 1.28/edge within 24 hours after upstream release MicroK8s
  • 23. Thank you Interaction • Websites https://microk8s.io/ https://github.com/canonical/microk8s • Discussion on https://discuss.kubernetes.io/tag/microk8s or in Slack on the #microk8s channel • Report Issues https://github.com/canonical/microk8s/issues • MicroK8s Community Sync Every Friday, 1:30pm GMT Video call link: https://meet.google.com/hjy-uogt-tax Upcoming sessions from MicroK8s 1.28 - 1.28 Upstream Updates - MicroK8s CIS conformance - MicroK8s Dual Stack - MicroK8s Ceph integration (feat MicroCeph) Upcoming sessions calendar https://www.meetup.com/microk8s-meetup-group/ MicroK8s