Skip to content

Export of Kubernetes Audit logs to Yandex Data Streams (YDS) or Kinesis Data Streams.

License

Notifications You must be signed in to change notification settings

yandex-cloud-examples/yc-export-mk8s-auditlogs-to-yds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Export of kubernetes audit logs to Yandex Data Streams/Kinesis Data Streams

image

Prerequisites:

  1. If you doing this from Russia just create the file and fill it out like this to use yandex network mirror:
cat ~/.terraformrc
provider_installation {
  network_mirror {
    url = "https://terraform-network-mirror.storage.yandexcloud.net/"
  }
}
  1. Fill out the fields in the provider.tf file.
  2. Fill out the fields in the terraform.tfvars.example file. (example below)
  3. Run:
terraform init
terraform apply

Example of terraform.tfvars.example file:

folder_id                      = "b1gvnphpkgt8oechmpo0"
cloud_id                       = "b1g3o4minpkuh10pd2rj"
cluster_name                   = "k8s-for-export"

yds_stream_name = "stream-for-k8s-audit"
yds_id = "b1g3o4minpkuh10pd2rj" 
yds_ydb_id = "etnrmbadnrson5algn3s"

Releases

No releases published

Packages

No packages published