How to add Redis livenessProbe/readinessProbe to Kubernetes

- name: redis
  image: "bitnami/redis:4.0"
  imagePullPolicy: IfNotPresent
  ports:
    - name: http
      containerPort: 5601
      protocol: TCP
  livenessProbe:
    exec:
      command:
      - sh
      - -c
      - redis-cli -a {{ .Values.app.env.REDIS_PASSWORD }} ping
    initialDelaySeconds: 10
    timeoutSeconds: 5
  readinessProbe:
    exec:
      command:
      - sh
      - -c
      - redis-cli -a {{ .Values.app.env.REDIS_PASSWORD }} ping
    initialDelaySeconds: 10
    timeoutSeconds: 5