Integrating Kube Detector
Last updated
Last updated
The following steps provide instructions on how to integrate kube-detector in the cluster. Kube-detector can be integrated in two ways as listed below:
In this method, you need to install the Kube Detector service in the cluster where the applications are running. Choose this if you do not wish to share your Kubernetes cluster’s kubeconfig file with Delivery Shield.
Create a new namespace in the target cluster by executing the command given below:
Navigate to Setup > Clusters.
Click on the three vertical dots in the cluster details page as shown below:
Download the In-cluster file.
Edit the downloaded incluster file and update the new namespace value in the ClusterRoleBinding section as shown below:
Apply the file in the target cluster namespace by executing the command given below:
The Kubernetes cluster is successfully integrated with SSD. It starts collecting data for the services that are added in the namespaces and the applications appear in the Delivery Shield UI.
In this method, you can install the Kube-detector service in the Delivery Shield namespace. If you select this method, your target cluster's kubeconfig file will be shared with Delivery Shield.
Navigate to Setup > Clusters.
Click on the three vertical dots in the cluster details page as shown below:
Click on the three vertical dots in the cluster details below and download the remote file.
Next, create a Kubernetes secret in the SSD namespace and store your target cluster's kubeconfig file in it using the following command:
Open the downloaded remote file, and update the following fields.
secretName - The name of the secret created in the previous step.
key - The key in the secret that points to the kubeconfig data.
path - The value in the secret that points to the kubeconfig.
Add the namespace values that you want to monitor, in the kube-detector secret section of the downloaded remote file.
Apply the kube-detector file in the SSD namespace by executing the command given below:
The Kubernetes cluster is now successfully integrated with SSD.