ECK - Internal Load Balancer unable to create

Hi Team,

I am following the below document to add internal load balancer for routing the traffic from data proc, but i am unable to create one:

please find the config i applied:

spec:
  http:
    service:
      spec:
        type: LoadBalancer
        annotations: 
              cloud.google.com/load-balancer-type: "Internal"
              networking.gke.io/internal-load-balancer-allow-global-access: "true"

elastic operator is not picking up the annotations, can you help me on this

The structure of your service spec is incorrect. Annotations are always part of the metadata section of any Kubernetes resource.

See https://github.com/elastic/cloud-on-k8s/blob/master/config/recipes/gclb/01-elastic-stack.yaml for an example service section with metadata annotations and labels.

Hey thanks a lot pebrc, i was putting the annotation at wrong place , following the link fixed the issue