Kubernetes Discovery

suresh90
Kilo Contributor

HI Team,

Does anyone implemented kubernetes discovery  and open shift components.

Could you please share me the steps how to make to discovery successful.

I got the credentials I'm paused at creating  Serverless discovery schedules .

 

Thanks & Regards,

Suresh.

 

 

 

7 REPLIES 7

Venky VA
ServiceNow Employee
ServiceNow Employee

if you are using bearer token in kubernetes credentials then clear username field.

Hi Severin,

Are you suggesting to totally create separate execution patterns for each of below. can you please confirm.

  1. Provide a user with the permissions to run the following /api/v1 elements:
    • https://<url>/api/v1/namespaces/
    • https://<url>/api/v1/namespaces/<namespace>
    • https://<url>/api/v1/namespaces/kube-system/endpoints/kube-controller-manager
    • https://<url>/api/v1/services
    • https://<url>/api/v1/pods
    • https://<url>/api/v1/nodes
  2. To discover the OpenShift components of the Kubernetes deployment, provide a user with the permissions to run the following /api/v1 elements:
    • /apis/apps.openshift.io/v1/deploymentconfigs
    • ​/apis/build.openshift.io/v1/buildconfigs​
    • /apis/route.openshift.io/v1/routes​
    • /apis/user.openshift.io/v1/groups​
    • /apis/user.openshift.io/v1/users​
    • /apis/project.openshift.io/v1/projects​
    • /apis/image.openshift.io/v1/images​
    • /apis/image.openshift.io/v1/imagestream

Venky VA
ServiceNow Employee
ServiceNow Employee

Steps to Create serverless discovery:

  • Go to Discovery Schedules
  • Click on New button.
  • on the new discovery schedule windows enter name and select discover as serverless then select mid server.
  • Click Submit button

find_real_file.png

Configuring Serverless Discovery using kubernetes pattern:

  • Open above created schedule.
  • Go to Serverless Execution Patterns tab.
  • Click New button.
  • Enter name and select Kubernetes pattern.
  • Click on Submit button.

find_real_file.png

 

Configuring kubernetes pattern parameters:

  • Open the above created server execution record.
  • Enter URL, credentialAlias and namespace as * one or more namespaces names[coma separated in case of mult].
  • Click update button.
  • Click Discover Now button to discover kubernetes.

find_real_file.png