I’d like to know if anyone has managed to cofigure Rancher 2.x wuth terraform, but specifically the audit logs, Ive tried using following but while it doesn’t fail therefore syntax must be right, it doesn’t configure the logs. If anyone has a working example or git repo that would be appreciated.
services {
kube_api {
audit_log {
enabled = true
configuration {
max_age = 7
max_backup = 10
max_size = 200
path = “/var/log/rancher/audit/rancher-api-audit.log”
format = “json”
policy = jsonencode({“rules”:[{“level”: “Metadata”}], “apiVersion”: “audit.k8s.io/v1”, “kind”: “Policy”})
}
}
}
}