Relationship between node status and Pod Running status

Hello experts,

I would like to know how is node state and pod state are related. By saying node state, I am talking about kubectl get node, by saying pod state, I am talking about kubectl get pod. The reason I am asking is that I would like to implement a running dependency between two different types of pods (A, B). 

Currently my implementation has two conditions

  1. both pod and node are running
  2. pod’s ready condition should be later than node’s ready condition

the reason for the second condition is to make sure false positive during node reboots. but the difficulty is that I am not 100% percent sure node status affects pod’s conditions’ timestamp.

Thank you very much for helping.

Best,
Jiatong Shen

Cluster information:

Kubernetes version: any
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS:
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.