Skip to content

Commit 4281f8f

Browse files
committed
Integrate PVC and persistent volume management k8s
1 parent 2eac374 commit 4281f8f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

k8s/delete-deployments.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
kubectl delete all --all
22
kubectl delete ingress --all
3+
# Comment out the following line if you want to keep the persistent volumes
4+
kubectl delete pvc --all && kubectl delete pv --all

k8s/deploy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ else
3939
echo "Secret 'postgres-secret' created successfully."
4040
fi
4141

42+
# Be careful with the following commands
43+
kubectl delete pvc --all && kubectl delete pv --all
44+
4245
kubectl apply -f ndb-deployment.yml
4346

4447
kubectl apply -f ndb-rest-api-deployment.yml

0 commit comments

Comments
 (0)