<p>When trying to deploy Clickhouse operator on Kubernetes, by default access_management is commented out in users.xml file. Is there a way to uncomment it when installing kubernetes operator?</p>
<p>Clickhouse Operator deployment:</p>
<pre><code>kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/0.18.3/deploy/operator/clickhouse-operator-install-bundle.yaml
</code></pre>
<p>I have tried to do that through &quot;ClickHouseInstallation&quot; but that didn't work.</p>
<p>Furthermore, Clickhouse operator source code doesn't contain parameter for access_management</p>

<p>look to <code>kubectl explain chi.spec.configuration.files</code> and <code>kubectl explain chi.spec.configuration.users</code></p>
<p>try</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: clickhouse.altinity.com/v1
kind: ClickHouseInstallation
metadata:
  name: access-management-example
spec:
  configuration:
    files:
      users.d/access_management.xml: | 
         &lt;clickhouse&gt;&lt;users&gt;
           &lt;default&gt;&lt;access_management&gt;1&lt;/access_management&gt;&lt;/default&gt;
         &lt;/users&gt;&lt;/clickhouse&gt;

</code></pre>
<p>you shall carry on itself about replicate RBAC objects during change cluster layout (scale-up)</p>
