Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 917 Bytes

db_recreate_steps.md

File metadata and controls

40 lines (21 loc) · 917 Bytes

Steps to recreate the DB

This step is necessary when there are changes to the DB Schema in initdb-conf.yaml file and need to recreate the DB by removing all previous data and schema.

You can follow the following steps to achieve this requirement.

  1. Helm Uninstall

helm uninstall <HELM_RELEASE> -n apk

  1. Delete Existing PVC and PV.

kubectl get pvc -n apk

kubectl delete pvc <PVC_NAME> -n apk

kubectl get pv -n apk

kubectl delete pv <PV_NAME> -n apk

  1. Delete Standard Storage Claim

kubectl get sc

kubectl delete sc standard

  1. Stop K8s Cluster.

minikube stop

  1. Start K8s Cluster.

minikube start --container-runtime=docker

  1. Helm install

helm install <HELM_RELEASE> . -n apk

By following above steps, a new DB will be created using the new schema provided through helm.