apiVersion: v1 kind: ConfigMap metadata: name: mongo-init-script namespace: overleaf data: mongodb-init.js: | rs.initiate({ _id: 'overleaf', members: [{ _id: 0, host: 'mongo:27017' }] })