Scan cloud infrastructure via the K8s SDK
💻 Full CloudGraph Documentation Including k8s Examples
Install the k8s provider in CloudGraph
cg init k8sAuthenticate the CloudGraph k8s Provider any of the following ways:
- Set the
KUBECONFIGenv variable pointing to your Kubernetes config file (or use the default location for your OS)
| Service | Relations |
|---|---|
| cronJob | namespace |
| deployment | namespace |
| ingress | namespace |
| job | namespace |
| namespace | ALL SERVICES |
| networkPolicy | namespace |
| node | namespace |
| persistentVolume | namespace |
| persistentVolumeClaim | namespace |
| pod | namespace |
| role | namespace |
| secret | namespace |
| service | namespace |
| serviceAccount | namespace |
| storageClass | namespace |
Please see the CONTRIBUTING.md file in CloudGraph CLI for details.
Install all the dependencies:
yarn
Generate types and compile:
yarn build