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.
Casie
4 months agoCatalina
4 months agoLovetta
4 months agoYuriko
5 months agoVerdell
5 months agoKina
5 months agoRobt
5 months agoAlberta
5 months agoShay
6 months agoAlecia
6 months agoSamira
6 months agoIvan
6 months agoQuiana
6 months agoLashandra
6 months agoIzetta
6 months agoAdolph
10 months agoFredric
9 months agoAnnmarie
9 months agoEnola
9 months agoCorinne
10 months agoSina
9 months agoAmie
9 months agoTimothy
9 months agoPok
11 months agoBrandee
9 months agoRolland
9 months agoJess
9 months agoMelissa
9 months agoEileen
9 months agoGraham
9 months agoBrock
9 months agoOlen
9 months agoElouise
11 months agoKate
11 months agoElouise
12 months ago