aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/mongodb/deploy.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-02 02:11:15 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-02 02:11:15 +0000
commit14da00b30d18b2728d16fc12d6a2a374d9cc27be (patch)
tree43d27b41566989ab2bf9b2c497d60f4f82c42f2e /kubernetes/mongodb/deploy.sh
parentupdates (diff)
downloadscripts-14da00b30d18b2728d16fc12d6a2a374d9cc27be.tar.gz
scripts-14da00b30d18b2728d16fc12d6a2a374d9cc27be.zip
updates
Diffstat (limited to '')
-rwxr-xr-xkubernetes/mongodb/deploy.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/kubernetes/mongodb/deploy.sh b/kubernetes/mongodb/deploy.sh
new file mode 100755
index 0000000..db60298
--- /dev/null
+++ b/kubernetes/mongodb/deploy.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+
+kubectl apply -f ./mongodb-secret.yaml
+kubectl apply -f ./mongodb-configmap.yaml
+kubectl apply -f ./mongodb-data-volume.yaml
+kubectl create configmap mongodb-config-file --from-file=mongod.conf
+kubectl apply -f ./mongodb-deployment.yaml
+
+# kubectl delete pod mongodb
+# kubectl delete pvc
+# kubectl delete pv