kubectl) over SSH or API interface to collect the inventory of Kubernetes resources such as pods, nodes, services, deployments etc.. on-demand or on schedule basis.
kubectlis installed) to collect the inventory data. The user should have privileges to run the below command.
kubectlis enabled only for
rootuser, provide sudo privileges to service user account that was created in the above step.
/etc/sudoersfile and add the
kubetctlcommand for the user account that is used for data collection. Below configuration setting restricts the service user account to execute only the
kubectl get *commands and does not allow any other administrative commands.
<user_name> ALL=(root) NOPASSWD: /usr/bin/kubectl get *
cfx-api-access' is provided in the command's output executed in Step-5
curlcommand which should list all namespaces that are configured in the Kubernetes cluster.
alt (or option) + Enterto open datasource administration menu.