Automatic import/deletion of Kubernetes workloads projects

With the same integration id, you can import many clusters to one Snyk organization by giving clusters a unique cluster name during installation.

The auto-import/delete also allows you to import from one cluster to multiple Snyk organizations, read Advance use of automatic import/deletion.

It is important to note that 1 Snyk organization has a limit of 25,000 projects, please consult your SCM for more information.

Prerequisites

You must have an account with Snyk and be onboarded to your organization by an administrator.

In addition the integration must be configured between Snyk and your Kubernetes environment per organization. To verify the integration is configured, ensure you have an Integration ID****

You can configure the Snyk controller to automatically import and update scanned workloads directly in Snyk to test and monitor for vulnerabilities. You can also automatically delete imported projects once workloads are deleted from the cluster.

Enabling workload auto-import and auto-delete

The Helm chart of the Snyk controller is already provisioned with a default policy to process events for any workload except Jobs and Pods. To enable this feature, provide your Snyk Organization public ID in the Helm chart installation.

helm upgrade --install snyk-monitor snyk-charts/snyk-monitor \
    --namespace snyk-monitor \
    --set clusterName="Production cluster" \
    --set policyOrgs={19982df2-0ed5-4a16-b355-e6535cfc41ef}

Note that policyOrgs is a list of organization public IDs. You can add more than one organization to use the auto-import and auto-delete capabilities. You can locate this public ID under your organization's settings page.

Only Snyk organizations that share the same Kubernetes integration ID can provision the Snyk controller to do so. More information on how to share the same integration ID can be found in Clone an integration across your Snyk orgs.

Last updated

Was this helpful?

#4707: More info: Update pricing plans page

Change request updated