# ECK Fleet TLS Disabled NOT Working

**URL:** <https://discuss.elastic.co/t/eck-fleet-tls-disabled-not-working/309706>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [July 15, 2022, 6:10am UTC](https://discuss.elastic.co/t/eck-fleet-tls-disabled-not-working/309706 "2022-07-15T06:10:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aung.mm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aung.mm/32/108335_2.png) [@aung.mm](https://discuss.elastic.co/u/aung.mm)\
**Post date:** [July 15, 2022, 6:10am UTC](https://discuss.elastic.co/t/eck-fleet-tls-disabled-not-working/309706/1 "2022-07-15T06:10:41Z")

</div>

I would like to disable TLS in the fleet server that I deployed with eck. According to documentation, I should be able to disable with "http" configuration. But it is not working at all.  
Please see the following configuration. Thanks.

```auto
apiVersion: agent.k8s.elastic.co/v1alpha1
kind: Agent
metadata:
  name: test-fleet-server
  namespace: test
spec:
  http:
    service:
      spec:
        type: NodePort  
    tls:
      selfSignedCertificate:
        disabled: true

  version: 8.2.2
  kibanaRef:
    name: test
  elasticsearchRefs:
  - name: test
  mode: fleet
  fleetServerEnabled: true
  deployment:
    replicas: 1
    podTemplate:
      spec:
        serviceAccountName: test-elastic-agent
        automountServiceAccountToken: true
        securityContext:
          runAsUser: 0
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: elastic-agent
rules:
- apiGroups: [""] # "" indicates the core API group
  resources:
  - pods
  - nodes
  - namespaces
  verbs:
  - get
  - watch
  - list
- apiGroups: ["coordination.k8s.io"]
  resources:
  - leases
  verbs:
  - get
  - create
  - update
# ---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: test-elastic-agent
  namespace: test
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: test-elastic-agent
subjects:
- kind: ServiceAccount
  name: test-elastic-agent
  namespace: test
roleRef:
  kind: ClusterRole
  name: elastic-agent
  apiGroup: rbac.authorization.k8s.io

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 12, 2022, 6:11am UTC](https://discuss.elastic.co/t/eck-fleet-tls-disabled-not-working/309706/2 "2022-08-12T06:11:17Z")

</div>

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