备案敏感信息
This commit is contained in:
78
learning/k8s-intermediate/persistent/ceph/raspberry.md
Normal file
78
learning/k8s-intermediate/persistent/ceph/raspberry.md
Normal file
@ -0,0 +1,78 @@
|
||||
|
||||
# 在树莓派上安装 Ceph
|
||||
|
||||
## 安装 ubuntu
|
||||
|
||||
|
||||
|
||||
## 安装 docker
|
||||
|
||||
```sh
|
||||
wget https://repo.huaweicloud.com/docker-ce/linux/ubuntu/dists/focal/pool/stable/arm64/containerd.io_1.3.7-1_arm64.deb
|
||||
wget https://repo.huaweicloud.com/docker-ce/linux/ubuntu/dists/focal/pool/stable/arm64/docker-ce-cli_19.03.13~3-0~ubuntu-focal_arm64.deb
|
||||
wget https://repo.huaweicloud.com/docker-ce/linux/ubuntu/dists/focal/pool/stable/arm64/docker-ce_19.03.13~3-0~ubuntu-focal_arm64.deb
|
||||
dpkg -i containerd.io_1.3.7-1_arm64.deb docker-ce-cli_19.03.13~3-0~ubuntu-focal_arm64.deb docker-ce_19.03.13~3-0~ubuntu-focal_arm64.deb
|
||||
```
|
||||
|
||||
```sh
|
||||
sudo groupadd docker
|
||||
sudo usermod -aG docker $USER
|
||||
newgrp docker
|
||||
docker run hello-world
|
||||
```
|
||||
|
||||
|
||||
* 设置镜像地址
|
||||
|
||||
```sh
|
||||
sudo vim /etc/docker/daemon.json
|
||||
```
|
||||
* 添加 registry-mirrors 字段
|
||||
``` json
|
||||
{
|
||||
"registry-mirrors": ["https://05f073ad3c0010ea0f4bc00b7105ec20.mirror.swr.myhuaweicloud.com"]
|
||||
}
|
||||
```
|
||||
```sh
|
||||
systemctl restart docker
|
||||
```
|
||||
|
||||
## 安装 ceph
|
||||
|
||||
``` yaml
|
||||
[ceph]
|
||||
name=Ceph packages for $basearch
|
||||
baseurl=https://download.ceph.com/rpm-octopus/el7/$basearch
|
||||
enabled=1
|
||||
priority=2
|
||||
gpgcheck=1
|
||||
type=rpm-md
|
||||
gpgkey=https://download.ceph.com/keys/release.asc
|
||||
|
||||
|
||||
[ceph-noarch]
|
||||
name=Ceph noarch packages
|
||||
baseurl=https://download.ceph.com/rpm-octopus/el7/noarch
|
||||
enabled=1
|
||||
priority=2
|
||||
gpgcheck=1
|
||||
type=rpm-md
|
||||
gpgkey=https://download.ceph.com/keys/release.asc
|
||||
|
||||
|
||||
[ceph-source]
|
||||
name=Ceph source packages
|
||||
baseurl=https://download.ceph.com/rpm-octopus/el7/SRPMS
|
||||
enabled=0
|
||||
priority=2
|
||||
gpgcheck=1
|
||||
type=rpm-md
|
||||
gpgkey=https://download.ceph.com/keys/release.asc
|
||||
```
|
||||
|
||||
|
||||
|
||||
重置磁盘
|
||||
``` sh
|
||||
sgdisk --zap-all /dev/sda
|
||||
```
|
||||
@ -107,6 +107,6 @@ Kubernetes 对 Pod 进行调度时,以当时集群中各节点的可用资源
|
||||
|
||||
* 在场景中使用存储类
|
||||
|
||||
此时您可以在自己的场景中使用刚创建的存储类。Kuboard官网上,有以下几个地方可以用到NFS存储类:
|
||||
此时您可以在自己的场景中使用刚创建的存储类。Kuboard上,有以下几个地方可以用到NFS存储类:
|
||||
* [导入 example 微服务](/guide/example/import.html)
|
||||
* [安装监控套件](/guide/example/monitor.html#安装监控套件)
|
||||
|
||||
@ -11,7 +11,7 @@ meta:
|
||||
|
||||
<AdSenseTitle/>
|
||||
|
||||
参考文档: Kubernetes 官网 [Storage Classes](https://kubernetes.io/docs/concepts/storage/storage-classes/)
|
||||
参考文档: Kubernetes [Storage Classes](https://kubernetes.io/docs/concepts/storage/storage-classes/)
|
||||
|
||||
## 存储类概述
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ meta:
|
||||
|
||||
<AdSenseTitle/>
|
||||
|
||||
> 参考文档: Kubernetes 官网文档 [Volumes](https://kubernetes.io/docs/concepts/storage/volumes/)
|
||||
> 参考文档: Kubernetes 文档 [Volumes](https://kubernetes.io/docs/concepts/storage/volumes/)
|
||||
|
||||
挂载是指将定义在 Pod 中的数据卷关联到容器,同一个 Pod 中的同一个数据卷可以被挂载到该 Pod 中的多个容器上。
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ meta:
|
||||
|
||||
<AdSenseTitle/>
|
||||
|
||||
参考文档: Kubernetes 官网文档 [Volumes](https://kubernetes.io/docs/concepts/storage/volumes/)
|
||||
参考文档: Kubernetes 文档 [Volumes](https://kubernetes.io/docs/concepts/storage/volumes/)
|
||||
|
||||
## 数据卷概述
|
||||
|
||||
|
||||
Reference in New Issue
Block a user