You can add external Kubernetes clusters using the Cloud Assembly API as an alternative to the user interface.

API calls can be executed from a remote physical machine with connectivity to Automation Assembler. Here is an example of an API call to add an external cluster.


Note that docId is the ID of the data collector for accessing the on-prem resource. You can fetch all data collectors from the IaaS API at /iaas/api/data-collectors. The caCertificate property is the issuing certificate signed on the cluster's api certificate in PEM format.

After registering the cluster, you can list the namespaces and download the kube config file for them.