File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2
2
Working mongodb replica sets with kubernetes
3
3
4
4
5
- First generate a secret using the generate secret script ` sh generate-secret.sh `
5
+ You'll need a secret for your mongodb key if you don't have one already: ` sh generate-secret.sh `
6
6
7
7
```
8
8
kubectl create -f mongodb.yaml
@@ -14,6 +14,7 @@ This will create a mongodb replica set across three nodes with an admin account
14
14
Other useful things:
15
15
Statefulsets aren't deleted in the same way as other things so here is an easy teardown for debugging stuff:
16
16
```
17
+ # Note you wouldn't want to do this normally.
17
18
kubectl delete statefulsets mongod --force --grace-period=0 --cascade=false;
18
19
kubectl delete services mongodb-service;
19
20
kubectl delete pods all --grace-period=0 --force;
You can’t perform that action at this time.
0 commit comments