Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 1.09 KB

File metadata and controls

27 lines (25 loc) · 1.09 KB

Example of AKS cluster connected to CAST AI with enabled Kvisor security agent

Following example creates AKS cluster and its supporting resources.
After AKS cluster is created it is onboarded to CAST AI.
Kvisor security agent is deployed to the cluster and security policies are enabled.
See install_security_agent and kvisor_values variables in castai.tf file.
Example configuration should be analysed in the following order:

  1. Create Virtual network - vnet.tf
  2. Create AKS cluster - aks.tf
  3. Create CAST AI related resources to connect AKS cluster to CAST AI - castai.tf

Usage

  1. Rename tf.vars.example to tf.vars
  2. Update tf.vars file with your cluster name, cluster region and CAST AI API token.
  3. Initialize Terraform. Under example root folder run:
terraform init
  1. Run Terraform apply:
terraform apply -var-file=tf.vars
  1. To destroy resources created by this example:
terraform destroy -var-file=tf.vars

Please refer to this guide if you run into any issues https://docs.cast.ai/docs/terraform-troubleshooting