Skip to content

Commit

Permalink
required
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghongxi committed Nov 16, 2022
1 parent 204d85b commit 2579ad2
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions olm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Catalog Operator: 负责解析和安装集群服务版本 ( CSV ) 以及它们
两个Operator其分别管理以下几个基础 CRD 模型:
```

![img.png](img/1.jpg)
![img.png](picture/1.jpg)

## 使用场景:
OLM 可以帮助用户,安装,更新,和管理所有Operator ( 如: redis-operator , mongodb-operator ) 的生命周期.
Expand All @@ -44,7 +44,7 @@ chmod +x install.sh
./install.sh v0.19.1
```

![img](img/install.png)
![img](picture/install.png)

##### `安装过程解析`

Expand All @@ -63,11 +63,11 @@ https://olm.operatorframework.io/docs/getting-started/
```text
kubectl get ns
```
![img](img/ns.png)
![img](picture/ns.png)
```text
kubectl -n olm get deployments
```
![img](img/deploy.png)
![img](picture/deploy.png)

## UnInstall
```shell
Expand Down
Binary file removed olm/img/deploy.png
Binary file not shown.
File renamed without changes
Binary file added olm/picture/deploy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
12 changes: 6 additions & 6 deletions olm/postgres-Operators/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ https://github.com/CrunchyData/postgres-operator
```shell
1. kubectl create -f https://operatorhub.io/install/postgresql.yaml
```
![img](img/postgres-Operator.png)
![img](picture/postgres-Operator.png)


[postgres-operator.yaml](yml/postgres-operator.yaml)

```shell
2. kubectl get csv -n operators
```
![img](img/operator.png)
![img](picture/operator.png)

```shell
3. kubectl create -f sc.yml
4. kubectl create -f sc1.yml
```
![img](img/sc.png)
![img](picture/sc.png)

[sc.yml](yml/sc.yml)

Expand All @@ -38,7 +38,7 @@ https://github.com/CrunchyData/postgres-operator
5. kubectl create -f local-pv.yml
6. kubectl create -f local-pv1.yml
```
![img](img/pv.png)
![img](picture/pv.png)

[local-pv.yml](yml/local-pv.yml)

Expand All @@ -51,7 +51,7 @@ https://github.com/CrunchyData/postgres-operator

`hippo-repo-host-0` `pod` 中会创建几个容器,分别为:`pgbackrest`, `pgbackrest-config`, `pgbackrest-log-dir (init)`, `nss-wrapper-init (init)`

![img](img/po.png)
![img](picture/po.png)

[Postgres-cluster.yml](yml/Postgres-cluster.yml)

Expand All @@ -61,7 +61,7 @@ https://github.com/CrunchyData/postgres-operator
2. psql
```

![img](img/validation.png)
![img](picture/validation.png)



Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions olm/rabbitmq-operators/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ https://github.com/rabbitmq/cluster-operator
```shell
1. kubectl create -f https://operatorhub.io/install/rabbitmq-cluster-operator.yaml
```
![img](img/rabbitmq-cluster-operator.png)
![img](picture/rabbitmq-cluster-operator.png)


[rabbitmq-cluster-operator.yaml](yml/rabbitmq-cluster-operator.yaml)

```shell
2. kubectl get csv -n operators
```
![img](img/csv.png)
![img](picture/csv.png)

```shell
3. kubectl create -f https://raw.githubusercontent.com/chenghongxi/kubernetes-learning/master/olm/rabbitmq-operators/yml/create-rabbitmq-cluster.yaml
```
![img](img/create-rabbitmq-cluster.png)
![img](picture/create-rabbitmq-cluster.png)

[create-rabbitmq-cluster.yaml](https://raw.githubusercontent.com/chenghongxi/kubernetes-learning/master/olm/rabbitmq-operators/yml/create-rabbitmq-cluster.yaml)

## Validation
```shell
1. kubectl get po,sc,pv,pvc,secret
```
![img](img/validation.png)
![img](picture/validation.png)
## UnInstall
- `删除步骤 3 中的资源`
```shell
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit 2579ad2

Please sign in to comment.