aboutsummaryrefslogblamecommitdiffstats
path: root/kubernetes/mongodb/deploy.sh
blob: db60298acd7fae7df730a88e536adc271c2d7b60 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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