- Execute the below command to create a new serviceaccount:
- Create an applicareapi-cluster-role.yml file with the below content:
- Execute the below command in the same directory where the file was created:
- Create an applicareapi-cluster-role-binding.yml file with the below content:
- Rolebinding is created for the serviceaccount by executing the below command:
- Execute kubectl top nodes in the kubernetes.
- If you are not able to view the below details, then: Install metrics pod in Kubernetes. Execute the below command to install metrics pod:
- Check if the metrics server is running by executing the below command.
- kubectl get pods -n kube-system
If it is still not running, then follow the below steps:
- Step 1: Edit the configuration file by executing the below command.
- Step 2: Add the below lines in the spec: container: args: and save the file.
-
Step 3: After a few minutes, execute the command kubectl get pods -n kube-system and check if the metrics server is running.
- If it is not running, then: Edit the configuration file by executing the command kubectl edit deployments.apps -n kube-system metrics-server and modify the below lines in the spec: container: args: and save it.
- Step 4: To verify the metrics API server is running, execute the below command and check kubectl top nodes.
- Refer here to install SingleAgent and start.
- Once we start the agent it will be added to Applicare Console.
- Execute the below command one by one to get the Cluster IP and Token. Copy the $APISERVER and $TOKEN value for configuration.
- Login into the Applicare console and go to the Overview screen. Select the newly added server and click the Edit button.
- Enable the Add Kubernetes Monitoring checkbox and add the configuration details.
- Remove the "https:// (or) http://" in $APISERVER value and Paste the remaining value in the ClusterIP field.
- Copy the $TOKEN value and paste it in the Token field.
- Enter the Kubernetes running port in the Port field.
- Select the Kubernetes protocol from the Protocol dropdown. Protocol details will be available in the $APISERVER. "https:// (or) http://"
- Click the Update button.
-
Note: We can edit or delete the Kubernetes configuration from both the Overview or Kubernetes menu.
Overview Menu
Update
- Select the row and click the Edit button to update details and then click the Update button.
Delete
- Select the row and click the Edit button and Uncheck the Add the Kubernetes Monitoring checkbox. Then, click the Update button.
Kubernetes Menu
Update
- Select the row and click the Edit button to update details. Then, click the Save button.
Delete
- Select the row and click the Delete button.
Note: We can edit or delete the Kubernetes configuration from both the Overview or Kubernetes menu.
Comments
0 comments
Please sign in to leave a comment.