@Tanul · All kubernetes objects (pods, replica set, daemonset, statefulset, deployment, service, ingress, network policies, role, clusterrole, rolebinding, clusterrolebinding, persistent volumes, persistent volume claims, storage classes, CRDs etc.) will be retained.
If your node becomes NotReady workloads (pods) will be evicted from the bad node and scheduled on an available node (if no other node is available the pods will be in a Pending State until a functioning node is available for scheduling). The pod configuration is stored in the highly available ETCD server.
Best practice: Use PodDisruptionBudgets [Ref: https://learn.microsoft.com/en-us/azure/aks/operator-best-practices-scheduler#plan-for-availability-using-pod-disruption-budgets]
Data stored on disks for PVCs will not be affected if the node runs into an error. There can be data loss only if the disks are deleted by the customer.
But if a pod is transferred to a new node the PVC disk might take a while to detach from the earlier node and attach to the new node
Additional Links:
https://learn.microsoft.com/en-us/azure/aks/node-auto-repair
https://kubernetes.io/docs/tasks/run-application/configure-pdb/
Hope it helps :)
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics