How to Allow Unsafe Sysctls on a PMK Cluster
Problem
How to Allow Unsafe Sysctls on a PMK Cluster?
Environment
Platform9 Managed Kubernetes - All Versions
Kubelet
Procedure
Depending on whether the change is needed to be done on a single node or all nodes part of the cluster, refer to
How To Change Configuration for Kubelet Service on a Single Worker or Master Node in a PMK Cluster
OR
How To Change Configuration for Kubelet Service on All Worker or Master Nodes in a PMK Cluster
Stop the pf9-hostagent & pf9-nodeletd services on ALL the worker/master nodes depending on which configmap is being edited.
Edit the ConfigMap as needed and save it. Here as an example, we are editing it master-default-kubelet-config ConfigMap for the single master node cluster.
Start the pf9-hostagent service ALL the worker/master nodes where it was initially stopped.
Deployed a pod with security context.
Pod has been created and is in running state.
If we deploy the same pod on a different cluster which does not have the Kubelet setting for allowedUnsafeSysctls added.
Additional Information
