This guides shows you how to use Redis, an open-source in-memory storage,
used as a distributed, in-memory keyβvalue database, cache and message broker, with optional durability.
To run it example, follow these steps:
Install the kraft CLI tool and a container runtime engine, e.g. Docker.
When done, invoke the following command to deploy this application on KraftCloud:
The output shows the instance URL and other details:
In this case, the instance name is redis-alb4r and the service group rough-wind-8vxrd1ms.
They are different for each run.
To test the deployment, first forward the port with the kraft cloud tunnel command. Be sure to use the
service group returned by the kraft cloud deploy command:
Then, from another console, you can now use the redis-benchmark client to connect to Redis, for example:
You should see output similar to:
To disconnect, simply kill the tunnel command with ctrl-C
At any point in time, you can list information about the instance:
When done, you can remove the instance:
Customize your Application
To customize the application, update the files in the repository, listed below:
Kraftfile: the KraftCloud specification, including command-line arguments
Dockerfile: In case you need to add files to your instanceβs rootfs