You are viewing documentation for KubeSphere version:v3.0.0
KubeSphere v3.0.0 documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see the latest version.
Deploy Redis on KubeSphere
Redis is an open-source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.
This tutorial walks you through an example of deploying Redis from the App Store of KubeSphere.
Prerequisites
- Please make sure you enable the OpenPitrix system.
- You need to create a workspace, a project, and a user account (
project-regular
) for this tutorial. The account needs to be a platform regular user and to be invited as the project operator with theoperator
role. In this tutorial, you log in asproject-regular
and work in the projectdemo-project
in the workspacedemo-workspace
. For more information, see Create Workspaces, Projects, Accounts and Roles.
Hands-on Lab
Step 1: Deploy Redis from the App Store
-
On the Overview page of the project
demo-project
, click App Store in the top left corner. -
Find Redis and click Deploy on the App Info page.
-
Set a name and select an app version. Make sure Redis is deployed in
demo-project
and click Next. -
In App Config, specify persistent volumes and a password for the app. When you finish, click Deploy.
Note
To specify more values for Redis, use the toggle switch to see the app’s manifest in YAML format and edit its configurations. -
Wait until Redis is up and running.
Step 2: Access the Redis Terminal
-
Go to Services and click the service name of Redis.
-
Under Pods, expand the menu to see container details, and then click the Terminal icon.
-
In the pop-up window, use the
redis-cli
command in the terminal to use the app. -
For more information, see the official documentation of Redis.