diff --git a/setup/kubernetes/02-angles-config.yaml b/setup/kubernetes/02-angles-config.yaml index 9eceeba..0229347 100644 --- a/setup/kubernetes/02-angles-config.yaml +++ b/setup/kubernetes/02-angles-config.yaml @@ -8,6 +8,7 @@ data: REACT_APP_SWAGGER_SCHEMES: "http" PORT: "3002" BUILD_CLEAN_UP_AGE_IN_DAYS: "90" + # change these credentials MONGO_ANGLES_USERNAME: "angleshq" MONGO_ANGLES_PASSWORD: "Password123" @@ -20,6 +21,7 @@ metadata: namespace: angles data: MONGO_INITDB_ROOT_USERNAME: "admin" + # change the admin password MONGO_INITDB_ROOT_PASSWORD: "@nglesPassword" MONGO_INITDB_DATABASE: "angles" @@ -31,27 +33,29 @@ metadata: name: mongo-init namespace: angles data: - mongo-init.js: | - // Change the pwd value - db.createUser({ user: 'angleshq', pwd: 'Password123', roles: ['readWrite'] }); - db.auth('angleshq', 'Password123'); + mongo-init.sh: | + mongo -- "$MONGO_INITDB_DATABASE" <