aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/mongodb/deploy.sh
diff options
context:
space:
mode:
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