# Enable Authorized Cluster Endpoint

**URL:** <https://forums.suse.com/t/enable-authorized-cluster-endpoint/42927>\
**Category:** SUSE Rancher Prime\
**Created:** [April 11, 2024, 6:19am UTC](https://forums.suse.com/t/enable-authorized-cluster-endpoint/42927 "2024-04-11T06:19:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![azzid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/azzid/32/10876_2.png) [@azzid](https://forums.suse.com/u/azzid)\
**Post date:** [April 11, 2024, 6:19am UTC](https://forums.suse.com/t/enable-authorized-cluster-endpoint/42927/1 "2024-04-11T06:19:28Z")

</div>

I’d like to be able to login to my cluster directly, without needing access to Rancher.

I’ve read about [enabling ACE](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters) but struggle with implementing it.

The documentation states that you should tweak some config files on the control-plane nodes - so I figured I could use cloud-init to do that:

```auto
#cloud-config
write_files:
  - path: /var/lib/rancher/rke2/kube-api-authn-webhook.yaml
    content: |
      apiVersion: v1
      kind: Config
      clusters:
      - name: Default
        cluster:
          insecure-skip-tls-verify: true
          server: http://127.0.0.1:6440/v1/authenticate
      users:
      - name: Default
        user:
          insecure-skip-tls-verify: true
      current-context: webhook
      contexts:
      - name: webhook
        context:
          user: Default
          cluster: Default
  - path: /etc/rancher/rke2/config.yaml
    content: |
      kube-apiserver-arg:
        - authentication-token-webhook-config-file=/var/lib/rancher/rke2/kube-api-authn-webhook.yaml

```

It seems however to work poorly, as node got stuck reconciling over night:

 ![Screenshot 2024-04-11 at 08.16.08](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/c/cebd396f7dd1bd22f3ebbea3029d6ecb01197a2d.png)

How am I supposed to make the setting part of the image? The node is based on a [jammy ubuntu cloud image](https://cloud-images.ubuntu.com/jammy/).

---

<div class="post-metadata">

**Author:** ![azzid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/azzid/32/10876_2.png) [@azzid](https://forums.suse.com/u/azzid)\
**Post date:** [April 11, 2024, 7:23am UTC](https://forums.suse.com/t/enable-authorized-cluster-endpoint/42927/2 "2024-04-11T07:23:10Z")

</div>

Seems I had an additional issue with my etcd database which prevented nodes from reconciling. Still interested in feedback on the way I suggest to enable ACE though.

---

<div class="post-metadata">

**Author:** ![vaishnav](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vaishnav/32/10688_2.png) [@vaishnav](https://forums.suse.com/u/vaishnav)\
**Post date:** [April 15, 2024, 12:20pm UTC](https://forums.suse.com/t/enable-authorized-cluster-endpoint/42927/3 "2024-04-15T12:20:04Z")

</div>

Have you enabled ACE from the Networking section in the cluster configuration?

---

<div class="post-metadata">

**Author:** ![azzid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/azzid/32/10876_2.png) [@azzid](https://forums.suse.com/u/azzid)\
**Post date:** [April 16, 2024, 12:48pm UTC](https://forums.suse.com/t/enable-authorized-cluster-endpoint/42927/4 "2024-04-16T12:48:31Z")

</div>

Are you saying that I don’t need these lines in cloud-config:

 ![Screenshot 2024-04-16 at 14.47.06](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/3/342008f0d5cd48652bc56763f087a3fe353462c7.png)

But do need to set FQDN here:

 ![Screenshot 2024-04-16 at 14.47.30](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/b/b18efc4c4eb1b95a4dff734a2d2c53092c9291d3.jpeg)

?

I don’t necessarily infer that from [the documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/manage-clusters/access-clusters/use-kubectl-and-kubeconfig#authenticating-directly-with-a-downstream-cluster).

---

<div class="post-metadata">

**Author:** ![vaishnav](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vaishnav/32/10688_2.png) [@vaishnav](https://forums.suse.com/u/vaishnav)\
**Post date:** [April 16, 2024, 1:04pm UTC](https://forums.suse.com/t/enable-authorized-cluster-endpoint/42927/5 "2024-04-16T13:04:24Z")

</div>

Hi @azzid , you need to do both. In addition to your cloud-config configuration, you need to enable ACE from the networking tab in the cluster configuration.  
Please refer [these](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#manual-steps-to-be-taken-on-the-control-plane-of-each-downstream-cluster-to-enable-ace) steps in the official documentation. The step 4 indicates that you need to enable ACE from the networking tab in the cluster configuration.
