One time command which must be executed before the first MongoDB deployment
make helm-repo-mongodb
make deploy-mongodb
Since the database instances created by mongodb operator, it is necessary to wait while the creation is over. In other words, database is not available when command execution is complete.
make delete-mongodb-deploy
Before deleting the operator it is required to wait that MongoDB deploymnet is deleted. Deletion of CRs just triggers the deleting process of MongoDB deploymnet. At the moment when CRs are deleted MongoDB deployment still exists. That's why MongoDB operator cannot be removed immediately, it should finish MongoDB deployement deletion.
make delete-mongodb-operator
make delete-mongodb-operator-keep-ns
This command helps to keep PV (Persistent Volumes) used for database storage.
If the configuration of the deployment itself does not change the next deployment will pick up the volumes and the data will persist between database restarts.
One time command which must be executed before the first NATS deployment
make helm-repo-nats
make deploy-nats
make delete-nats-deploy
make nats-stream-ls
One time command which must be executed before the first Postgres deployment
make helm-repo-postgres-operator
make deploy-postgres
Since the database instances created by postgres operator, it is necessary to wait while the creation is over. In other words, database is not available when command execution is complete.
Complete CR reference is here
make delete-postgres-deploy
make delete-postgres-operator
make postgres-password-show-root
kubectl run psql-client --rm --tty -i --restart='Never' --namespace default --image bitnami/postgresql -- bash
export PGSSLMODE=require
export PGPASSWORD=A....
psql -U postgres -h chat-postgres.postgres.svc.cluster.local -p 5432
Install psql client
brew install libpq
Connect
psql -U postgres -h localhost -p 30432