Redis master

There was nothing wrong with the previous deployment. In practical use cases, it would be rare that you would launch an application without some configuration settings. In this case, we are going to set the following configuration settings for redis-master (from the example in https://Kubernetes.io/docs/tutorials/configuration/configure-redis-using-configmap/ ).

Copy and paste the following two lines into the Azure Cloud Shell editor and save it as redis-config:

maxmemory 2mbmaxmemory-policy allkeys-lru
The online editor is limited and surprisingly doesn't have support for creating a new file, not to worry. In this case, type touch redis-config. Then code redis-config works. Or you can open the empty file using the open file ...

Get Hands-On Kubernetes on Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.