You can switch the cluster/configuration context using the following command: [desk@cli] $kubectl config use-context test-account Task:Enable audit logs in the cluster.
To do so, enable the log backend, and ensure that:
1. logs are stored at/var/log/Kubernetes/logs.txt
2. log files are retained for5days
3. at maximum, a number of10old audit log files are retained
A basic policy is provided at/etc/Kubernetes/logpolicy/audit-policy.yaml. It only specifies what not to log. Note: The base policy is located on the cluster's master node.
Edit and extend the basic policy to log: 1.Nodeschanges atRequestResponselevel 2. The request body ofpersistentvolumeschanges in the namespacefrontend 3.ConfigMapandSecretchanges in all namespaces at theMetadatalevel
Also, add a catch-all rule to log all other requests at theMetadatalevel Note:Don't forget to apply the modified policy.
Adolph
2 months agoFredric
2 days agoAnnmarie
4 days agoEnola
9 days agoCorinne
2 months agoSina
12 days agoAmie
17 days agoTimothy
20 days agoPok
2 months agoBrandee
6 days agoRolland
7 days agoJess
10 days agoMelissa
11 days agoEileen
13 days agoGraham
17 days agoBrock
21 days agoOlen
24 days agoElouise
3 months agoKate
3 months agoElouise
3 months ago