Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

K8s-ceph-rbd

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

K8s uses ceph to implement dynamic persistent storage https://juejin.im/post/5b766b5bf265da27e36efdfa

96 CountingStars_

2018.08.17 14 37 * number of words 435 read 3432 comments 1 like 3

Brief introduction

This article describes how to use ceph to provide dynamic pv application for K8s. Ceph provides underlying storage function, and cephfs supports three access modes of K8s pv: ReadWriteOnce,ReadOnlyMany, ReadWriteMany and RBD support ReadWriteOnce,ReadOnlyMany.

The access pattern is only a description of capabilities and is not enforced, and the storage provider should be responsible for running errors at access if pv is not used as declared by pvc. For example, if you set the access mode of pvc to ReadOnlyMany, you can still write after pod is mounted. If you need to be truly unwritable, you need to specify the parameter readOnly: true to apply for pvc.

Deployment

Deploy k8s

Centos7 uses kubeadm to install the k8s-1.11 version

Deploy ceph

Centos7 installs ceph distributed storage cluster

Configure the use of ceph in a k8s cluster

Use Ceph RBD

Use kubeadm to install the additional configuration of the cluster

If a cluster deployed with kubeadm requires these additional steps, because controller-manager needs to use the rbd command to create an image when using dynamic storage, controller-manager needs to use the rbd command because there is no rbd command in the official controller-manager image. If you do not use the following methods, you will not be able to successfully create pvc-related issue https://github.com/kubernetes/kubernetes/issues/38923cat > external-storage-rbd-provisioner.yaml.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report