Prepare the nodes
Create and apply a machine config patch with the contents below:audit.json on the node at /var/lib/kubelet/seccomp/profiles.
The profiles can be used by Kubernetes pods by specifying the pod securityContext as below:
The
localhostProfile uses the name of the profile created under profiles directory. So make sure to use path as profiles/<profile-name.json>Create a Kubernetes workload that uses the custom Seccomp profile
Here we’ll be using an example workload from the Kubernetes documentation. First open up a second terminal and run the following talosctl command so that we can view the Syscalls being logged in realtime:talosctl dmesg command from above should log similar to below: