Files
kubescape/httphandler/examples/microservice
2022-03-16 15:26:59 +02:00
..
2022-03-16 15:26:59 +02:00
2022-03-16 15:26:59 +02:00

Kubescape as a microservice

  1. Deploy kubescape microservice

    kubectl apply -f ks-deployment.yaml
    

    Note

    Make sure the configurations suit your cluster (e.g. serviceType, namespace, etc.)

  2. Trigger scan

    curl --header "Content-Type: application/json" \
    --request POST \
    --data '{"account":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","hostScanner":true, "submit":true}' \
    http://127.0.0.1:8080/v1/scan
    
  3. Get results

    curl --request GET http://127.0.0.1:8080/v1/results -o results.json