Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deploy redis in kubesphere #193

Closed
wants to merge 21 commits into from
66 changes: 66 additions & 0 deletions sig-docs/app-docs/Deploy Redis in KubeSphere.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Deploy Redis in KubeSphere

本文介绍在kubesphere中通过应用商店部署Redis的操作步骤。

## 前提条件

- 已安装了 OpenPitrix(应用商店)功能组件。若未开启**应用商店**功能组件,可参考[开启组件](https://kubesphere.io/docs/pluggable-components/app-store/)进行开启。
- 已创建了单集群企业空间、单集群项目和普通用户 `project-regular`账号。
- 使用项目管理员 `project-admin`邀请项目普通用户 `project-regular`加入项目并授予 `operator`角色。

## 操作说明

1. 使用 `project-regular`账号进入已创建的项目 `demo-project `后,选择**应用负载**,点击**应用**,点击 **部署新应用**,然后在弹窗中选择 **来自应用商店**。

![image-20201021143257502](./images/image-20201021143257502.png)

2. 进入应用商店页面。

![image-20201021143546762](./images/image-20201021143546762.png)

3. 选择并点击**redis**应用,进入应用信息页面。

![image-20201022112823164](./images/image-20201022112823164.png)

在**应用详情**--**配置文件**中,可以查看redis应用的helm chart的配置文件。

![image-20201022113156240](./images/image-20201022113156240.png)

4. 点击页面右上角的部署按钮,进入基本信息设置页面。

在此页面中,你可进行如下设置:

- 在应用名称输入框中,可修改应用名称;
- 当应用包含多个版本时,可点击应用版本下拉框,选择所需的版本进行部署;
- 在描述信息中,可设置部署应用的描述信息;
- 点击部署位置,可选择应用部署的企业空间和项目。

![image-20201022113349510](./images/image-20201022113349510.png)

5. 点击**下一步**,进入到应用配置页面。

目前,支持2种配置方式:可视化配置和yaml配置。通过点击**YAML**按钮,来实现配置方式的转换。

在应用配置页面中,可设置redis的密码。

![image-20201022120204884](./images/image-20201022120204884.png)

![image-20201022120448986](./images/image-20201022120448986.png)

6. 点击**部署**,自动跳转到`demo-project`的应用列表页面。

在应用列表中,可以查看应用状态为**创建中**;

待应用部署完成后,应用的状态会更新为**活跃**状态。

![image-20201022120632898](./images/image-20201022120632898.png)

## 使用redis

1. 在容器组列表中,选择redis应用对应的容器组,点击进入详情页面中。点击**终端**图标,进入容器终端。

![image-20201022134207395](./images/image-20201022134207395.png)

2. 在容器终端中,可以直接使用`redis-cli`命令来操作部署的redis应用。

![image-20201022134258742](./images/image-20201022134258742.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201021143257502.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201021143316670.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201021143546762.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022112823164.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022113156240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022113349510.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022113353449.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022120204884.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022120448986.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022120632898.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022120644789.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sig-docs/images/image-20201022134207395.png
Binary file added sig-docs/images/image-20201022134258742.png
Binary file added sig-docs/images/image-20201022135630726.png