Skip to content

Unable to ensure load balancer due to service name #41

@chebykinn

Description

@chebykinn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions