Deploy Memcached on KubeSphere
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. Its API is available for the majority of popular languages.
This tutorial walks you through an example of deploying Memcached from the App Store of KubeSphere.
- 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 the
operatorrole. In this tutorial, you log in as
project-regularand work in the project
demo-projectin the workspace
demo-workspace. For more information, see Create Workspaces, Projects, Users and Roles.
Step 1: Deploy Memcached from the App Store
On the Overview page of the project
demo-project, click App Store in the upper-left corner.
Find Memcached and click Install on the App Information page.
Set a name and select an app version. Make sure Memcached is deployed in
demo-projectand click Next.
In App Settings, you can use the default configuration or customize the configuration by editing the YAML file directly. Click Install to continue.
Wait until Memcached is up and running.
Step 2: Access Memcached
Navigate to Services, and click the service name of Memcached.
On the detail page, you can find the port number and Pod's IP address under Ports and Pods respectively.
As the Memcached service is headless, access it inside the cluster through the Pod IP and port number. The basic syntax of Memcached
telnet HOST PORT. For example:
# telnet 10.10.235.3 11211 Trying 10.10.235.3... Connected to 10.10.235.3. Escape character is '^]'. set runoob 0 900 9 memcached STORED
For more information, see Memcached.
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.