<p>I am planning to deploy Keycloak on my K8S cluster but for the moment not in cluster mode as described on <a href="https://www.keycloak.org/2019/04/keycloak-cluster-setup.html" rel="nofollow noreferrer">https://www.keycloak.org/2019/04/keycloak-cluster-setup.html</a>. PostgresSQL will be use as data storage for it.  </p>

<p>My plan is:</p>

<p><a href="https://i.stack.imgur.com/2UAnk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2UAnk.png" alt="enter image description here"></a>  </p>

<p>Create a pod with Keycloak and PostgreSQL inside. Deployment replicas will be 1, because for the moment I do not need clustering.    </p>

<p>I know, that it is recommended to run one container in one pod but for my purpose will be acceptable to run 2 containers in one pod?</p>

<p>No, you should only run things in the same pod if there is no way to not do that. In this case the alternative is run separate pods so you should do that.</p>
