<p>I am installing redis cluster using helm v3.2.1 via this command :</p>

<pre><code>./helm install stable/redis-ha --generate-name -n middleware
</code></pre>

<p>But, when I start the redis cluster, It gives me error :</p>

<pre><code>*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 12
&gt;&gt;&gt; 'slaveof 10.111.179.78 6379'
replicaof directive not allowed in cluster mode
</code></pre>

<p>Can you help me find the issue and what should I do to make it work? </p>

<p>Some people said to turn <code>cluster-enabled</code> to no but I do not think it is a wise decision.</p>

Dolphin
<p>You should comment <code>slaveof 10.111.179.78 6379</code>.</p>

<p>With Redis Cluster, in order to make a node be a replica of another, you should call the <a href="https://redis.io/commands/cluster-replicate" rel="nofollow noreferrer">CLUSTER REPLICATE</a> command, NOT specifying the <code>slaveof</code> config.</p>

<p>I'm not familiar with Kubernetes-helm, and not sure if it will automatically call this command. You can remove the <code>slaveof</code> config, and try again.</p>
