Hi , I have few basic questions regarding how pod name is decided .

  1. how is pod-template-hash decided ?? ( i understand that it is a random string generated by deployment controller). But exactly what are the inputs which the deployment controller considers before generating this random string .
  2. is there a maximum length this hash string will limit to ??

Labels info are available here -

It’s a hash of the pod spec. Thats how the controller knows if anything about the podspec changes.