I have installed rancher desktop and created a Kubernetes pod.
Inside the pod I have installed Apache Airflow and created some DAG's tested and saved them.
When I exit rancher desktop and switch off my PC and restart rancher desktop next day all the data is lost which I saved inside the pod.
Can you please help how can we save the data even when we restart the rancher-desktop
Kubernetes pods are based on docker containers which are stateless by default, in order to create stateful applications on K8S, we use persistent volumes to store all the data we want to persist when the pod restart. So you need to add a persistent volumes by creating a persistent volume claim, then load and mount the claim to the Airflow container in the pod, and write the dags files to the mount path.