How to setup camunda as a cluster with community edition?

Do you mean two running processes or two versions of the process definition? If the latter, both pods are probably individually deploying the process BPMN file on startup.

If you are using process.xml for deployment, you should be able set isDeployChangedOnly for process archive as in https://docs.camunda.org/manual/7.14/reference/deployment-descriptors/tags/process-archive/.

I have not tried that with auto deploy from resources-directory (which is probably mainly there for development convenience), but seemingly some one has: Configure isDeployChangedOnly for embedded engine in Spring - #3 by rudi