Disabling GracefulNodeShutdown on a node
Talos Linux enables Graceful Node Shutdown Kubernetes feature by default.
If this feature should be disabled, patch the KubeletConfig document of the machine configuration with:
Generating Talos Linux ISO image with custom kernel arguments
Pass additional kernel arguments using--extra-kernel-arg flag:
ISO will be output to the file talos-<arch>.iso in the current directory.
Logging Kubernetes audit logs with loki
If using loki-stack helm chart to gather logs from the Kubernetes cluster, you can use the helm values to configure loki-stack to log Kubernetes API server audit logs:Setting CPU scaling governor
While its possible to set CPU scaling governor via theSysfsConfig document, it’s sometimes cumbersome to set it for all CPU’s individually.
A more elegant approach would be set it via a kernel commandline parameter.
This also means that the options are applied way early in the boot process.
Bake the argument into the boot asset and the installer image with an Image Factory schematic instead:
Note: the node needs to be upgraded to (or installed from) an image built with this schematic for the argument to take effect.
Disable admissionControl on control plane nodes
Talos Linux enables admission control in the API Server by default.
Each admission control plugin is configured with its own KubeAdmissionControlConfig document, so removing the plugin means removing the document.
Although it is not recommended from a security point of view, the default PodSecurity plugin can be removed by patching your control plane machine configuration with: