apiVersion: habitat.sh/v1beta1
kind: Habitat
metadata:
  name: example-persistent-habitat
spec:
  # the core/redis habitat service packaged as a Docker image
  image: kinvolk/redis-hab
  count: 3
  # the presence of this key activates persistent storage
  persistence:
    # the size of the volume that will be mounted in each Pod
    size: 1Gi
    # a StorageClass object with name "standard" must be created beforehand by
    # the cluster administrator
    storageClassName: standard
    # the location under which the volume will be mounted
    mountPath: /tmp/foobar
  env:
    - name: HAB_REDIS
      value: '{ "protected-mode": "no" }'
  service:
    name: redis
    topology: leader
    # if not present, defaults to "default"
    group: foobar

apiVersion: habitat.sh/v1beta1
kind: Habitat
metadata:
  name: example-persistent-habitat
spec:
  # the core/redis habitat service packaged as a Docker image
  image: kinvolk/redis-hab
  count: 3
  # the presence of this key activates persistent storage
  persistence:
    # the size of the volume that will be mounted in each Pod
    size: 1Gi
    # a StorageClass object with name "standard" must be created beforehand by
    # the cluster administrator
    storageClassName: standard
    # the location under which the volume will be mounted
    mountPath: /tmp/foobar
  env:
    - name: HAB_REDIS
      # this is needed to make redis accept connections from other hosts
      # see https://redis.io/topics/security#protected-mode
      # NOTE: do not use this setting in a production environment
      value: '{ "protected-mode": "no" }'
  service:
    name: redis
    topology: leader
    # if not present, defaults to "default"
    group: foobar

Add comment about redis protected mode
Add comment about redis protected mode

Signed-off-by: Lorenzo Manacorda <86995a091f8a1385082bd10715048b52ee386a6a@kinvolk.io>
