kubeflow / pytorch-operator

PyTorch on Kubernetes
Apache License 2.0
307 stars 143 forks source link

why worker need initContainer in pytorch-operator? #349

Closed zqz-net closed 3 years ago

zqz-net commented 3 years ago

Hi, I wonder why worker need initContainer in pytorch-operator ,and master dont need it?

johnugeorge commented 3 years ago

It is ensure that master service is up before the workers start. Else, Workers see restarts in pytorch

zqz-net commented 3 years ago

I understand. Thank you!!!