Crash of ECK Operator after disabling TLS on elastic agent in fleet mode

Disable TLS on Fleet Server agent leads to panic runtime error (invalid memory address or nil pointer dereference) for the ECK Operator. I can't deploy anything after this crash until I delete the configuration.
Moreover, I cannot use Fleet Server without TLS.

apiVersion: agent.k8s.elastic.co/v1alpha1
kind: Agent        
metadata:                                                                                                             
  name: fleet-server                 
  namespace: default
spec:
  version: 8.4.2
  kibanaRef:
    name: quickstart
  elasticsearchRefs:
  - name: quickstart
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  mode: fleet
  fleetServerEnabled: true
  deployment:
    replicas: 1
    podTemplate:
      spec:
        serviceAccountName: elastic-agent
        automountServiceAccountToken: true
        securityContext:
          runAsUser: 0

ECK Operator logs :

ECK Operator statefulset :
eck-operator-sts

Elasticsearch stays in init phase :

Using ECK 2.4

Thanks for help.

Hey @p0sql we are aware of that issue. There is unfortunately currently no workaround, sorry about that. However a fix is in the works Allow Fleet Server to be run without TLS. by naemono · Pull Request #6020 · elastic/cloud-on-k8s · GitHub

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