Score:1

Re-enabling commands in a cluster environment

mn flag

we are running Redis as a container in a Kubernetes cluster (v1.21.14-gke.3000) where it is installed via Helm. Helm uses the Bitnami image, which disables the FLUSHALL command. As with this article, we want to re-enable Redis command but editing the configuration file is not feasible. is there an alternative?

below is my helmfile.yaml:

repositories:
- name: bitnami
  url: https://charts.bitnami.com/bitnami

environments:
  dev:
    values:
      - existingSecret: 'redis-secret'
      - redisVersion: 17.3.8
  prod:
    values:
      - existingSecret: 'redis-secret'
      - redisVersion: 17.3.8

releases:
- name: redis
  namespace: gitlab-managed-apps
  chart: bitnami/redis
  version: "{{ .Values.redisVersion }}"
  installed: true
  recreatePods: true
  values:
    - values.yaml.gotmpl

and the corresponding values.yaml.gotmpl:

auth:
  enabled: true
  existingSecret: {{ .Values.existingSecret }}

global:
  storageClass: 'premium-rwo'
  redis:
    password: "***"
replica:
  replicaCount: 1
master:
in flag
Hi Erick Calder welcome to S.F. You'll want to [edit your question](https://serverfault.com/posts/1114927/edit) and include the details of your install, such as the chart version and any `--values` or `--set` you used, since as written no one can *guess* what you've done or look up the docker image to have any context for your question. Good luck
Erick Calder avatar
mn flag
@mdaniel thanks for the constructive criticism. I've added the relevant files, which should be enough (I think) as context
Score:0
mn flag

after pulling my hair for a time I figured out the answer. I can use the disableCommands value, which has to be handed to both the master and the replica like this: and the corresponding values.yaml.gotmpl:

master:
  disableCommands: []
replica:
  disableCommands: []
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.