fixes #3168 for kubernetes/openshift. huge thanks for @rawlingsj  for figuring out the very cryptic error message!!!