Issue #3261694 by yas: Fix an error: "The Endpoint could not be created." while trying to create a K8s Endpoint