Score:0

Send kubernetes audit logs to multiple servers

id flag

How to send k8s audit logs to multiple servers/endpoints?
I tried to

  • pass multiple --audit-webhook-config-file arguments to kube-apiserver
  • add another cluster to the webhook config file

but these modifications are invalid and the kube-apiserver won't start up.

Score:1
id flag

It's not possible to send audit logs to multiple servers using kube-apiserver arguments or configuration.

You have to deploy another service which mirrors incoming HTTP requests to multiple servers.

Using nginx ngx_http_mirror_module:

location / {
    mirror /mirror;
    proxy_pass http://audit-server-1;
}

location = /mirror {
    internal;
    proxy_pass http://audit-server-2;
}

Using gor https://github.com/buger/goreplay

gor --input-tcp :8000 --output-http "http://audit-server-1"  --output-http "http://audit-server-1"
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.