k8s.mongodb-configmap.yml Maven / Gradle / Ivy
The newest version!
kind: ConfigMap
apiVersion: v1
metadata:
labels:
app: "{{name}}"
container: mongodb
group: microcks
data:
create-user.sh: |-
#!/bin/bash
echo "Started Adding the Users..."
mongo admin --eval "db.getSiblingDB('${MONGO_INITDB_DATABASE}').createUser({user: '${MONGODB_USER}', pwd: '${MONGODB_PASSWORD}', roles: [{role: 'readWrite', db: '${MONGO_INITDB_DATABASE}'}]})"
echo "End Adding the User Roles."
© 2015 - 2025 Weber Informatics LLC | Privacy Policy