Defining Kubernetes Observer jobs
Using this observer, you can configure jobs that discover the structure of your Kubernetes clusters, including pods, worker nodes and containers.
Before you begin
- For Kubernetes load jobs, ensure you have the Kubernetes service details to hand, such as the Kubernetes host IP and SSL Certificate details.
- For Weave Scope listen jobs, first install Weave Scope, and then configure a job using the Weave
Scope IP and port parameters.Restriction: Deprecated from Agile Service Manage Version 1.1.21.
- The Kubernetes Observer Weave Scope listen job has been deprecated from Agile Service Manage Version 1.1.21
- The Kubernetes Observer Local job has been deprecated as of Agile Service Manager Version 1.1.14. Use the Load job instead
About this task
kubernetes_observer_common.sh
- The configuration file you use to customize Kubernetes Observer settings.
- Load
- A transient (one-off) job that loads all requested topology data.
- Listen
- A long-running job that monitors the Kubernetes REST API for updated resources, and loads them in the topology service.
- Weave Scope Listen
-
Remember: Deprecated from Agile Service Manage Version 1.1.21.
- Kubeconfig Load
- A stand-alone load job that accepts kubeconfig data in JSON format to performs a one-off
discovery.Restriction: The manual scripts do not support Kubeconfig Load jobs. To run these, use the UI instead
encrypt_password.sh
script in the
ASM_HOME/bin directory: ./bin/encrypt_password.sh
Enter
and then confirm the password. The encryption utility will return an encrypted
version.To define Kubernetes load jobs
Before you begin
Before defining a Kubernetes Observer Load job, you must create a service account in the Kubernetes environment and obtain its token. The following example uses the 'default' namespace. Edit the command based on the kubectl configuration.
Ensure you have the Kubernetes service details to hand, such as the Kubernetes host IP and SSL Certificate details.
Procedure
Create a service account in the Kubernetes environment and obtain its token
Define the SSL certificate
The Load job requires an SSL Certificate, and for it to be in a specific location.
Edit the parameters in the configuration file
To start the job
What to do next
- kubernetes_observer_query_stop.sh
- Stops the Load job
- kubernetes_observer_job_list.sh
- Lists the status of current jobs
To define Kubernetes listen jobs
Before you begin
Before defining a Kubernetes Observer Listen job, you must define and then run a Load job.
This means you will have created a service account in the Kubernetes environment, obtained its token, and also defined an SSL Certificate.
Ensure you have the Kubernetes service details to hand, such as the Kubernetes host IP and SSL Certificate details.
Procedure
Update the ClusterRole and Role configuration
Edit the parameters in the configuration file
To start the job
What to do next
- kubernetes_observer_query_stop.sh
- Stops the Load job
- kubernetes_observer_job_list.sh
- Lists the status of current jobs
To define Kubernetes Weave Scope listen jobs
Before you begin
Before defining a Kubernetes Observer Weave Scope Listen job, you must install Weave Scope in your Kubernetes environment. For more information on Weave Scope, see the following location: https://www.weave.works/docs/scope/latest/introducing/
Procedure
Deploy Weave Scope in your Kubernetes environment
Edit the parameters in the configuration file
To start the Weave Scope Listen job
What to do next
- kubernetes_observer_listen_stop.sh
- Stops the Weave Scope Listener job
- kubernetes_observer_job_list.sh
- Lists the status of current jobs
- kubernetes_observer_log_level.sh
- Sets the log level