yandex-cloud-controller-manager icon indicating copy to clipboard operation
yandex-cloud-controller-manager copied to clipboard

Unable to ensure load balancer due to service name

Open chebykinn opened this issue 4 years ago • 0 comments

Hi, I'm trying to use ccm to setup load balancer, but service is failing to ensure load balancer with an error:

E1216 22:05:37.836237 1 controller.go:307] error processing service traefik/traefik (will retry): failed to ensure load balancer: rpc error: code = InvalidArgument desc = Validation failed:
- name: Field does not match the pattern /|[a-z][-a-z0-9]{1,61}[a-z0-9]/
I1216 22:05:37.836298 1 event.go:291] "Event occurred" object="traefik/traefik" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: rpc error: code = InvalidArgument desc = Validation failed:\n - name: Field does not match the pattern /|[a-z][-a-z0-9]{1,61}[a-z0-9]/"

It looks like kubernetes concatenates namespace and service and Yandex Cloud API doesn't allow such names.

cluster version: v1.21.6

chebykinn avatar Dec 16 '21 22:12 chebykinn