Handler for externaltraffic definition not working

Hi all,

WIth ECK 2.7.0, I've created a cluster and specifying the type LoadBalancer on http service Spec for elasticsearch object, but the externalTrafficPolicy directive is not handled correctly

here is the sample of manifest for specifying the http service

spec:
  version: 8.7.0
  http:
    service:
      metadata:
        name: sophie-int-es-http
        namespace: cdn-bigdata
      spec:
        type: LoadBalancer
        externalTrafficPolicy: Local
        selector:
          elasticsearch.k8s.elastic.co/cluster-name: "sophie-int"
          elasticsearch.k8s.elastic.co/node-master: "false"

And here is the result of operator service creation :

spec:
  allocateLoadBalancerNodePorts: true
  clusterIP: 10.233.46.236
  clusterIPs:
  - 10.233.46.236
  externalTrafficPolicy: Cluster
  internalTrafficPolicy: Cluster
  ipFamilies:
  - IPv4
  ipFamilyPolicy: SingleStack
  ports:
  - name: https
    nodePort: 31595
    port: 9200
    protocol: TCP
    targetPort: 9200
  selector:
    elasticsearch.k8s.elastic.co/cluster-name: sophie-int
    elasticsearch.k8s.elastic.co/node-master: "false"
  sessionAffinity: None
  type: LoadBalancer

Is it a bug or a feature ? :slight_smile:

Thanks by advance for your reply.

Regards,
Christophe

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.