https://github.com/fischerscode/k8s-mongodb-sharded-cluster
All the config for setting a a sharded mongodb cluster in kubernetes.
https://github.com/fischerscode/k8s-mongodb-sharded-cluster
Last synced: about 1 month ago
JSON representation
All the config for setting a a sharded mongodb cluster in kubernetes.
- Host: GitHub
- URL: https://github.com/fischerscode/k8s-mongodb-sharded-cluster
- Owner: fischerscode
- Created: 2020-09-07T14:27:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T20:14:07.000Z (over 5 years ago)
- Last Synced: 2025-03-06T08:57:35.745Z (about 1 year ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Work in progress!
### Setup ca (for ssl)
1. make sure cert-manager is installed
2. `openssl genrsa -out ca.key 8192`
3. `openssl req -x509 -new -nodes -key ca.key -sha256 -subj "/CN=mongodb-cluster-ca.local" -days 36500 -reqexts v3_req -extensions v3_ca -out ca.crt`
4. `kubectl create secret tls mongodb-cluster-ca-key-pair --key=ca.key --cert=ca.crt`
### Setup mongodb config server
Have a look at the [config-server directory](./config-server)