Profile applicability: Level 1 - Master Node
Disable profiling, if not needed.
Profiling allows for the identification of specific performance bottlenecks. It generates
a
significant amount of program data that could potentially be exploited to uncover
system and
program details. If you are not experiencing any bottlenecks and do not need the profiler
for
troubleshooting purposes, it is recommended to turn it off to reduce the potential
attack
surface.
NoteBy default, profiling is enabled.
|
Impact
Profiling information would not be available.
Audit
Run the following command on the Control Plane node:
ps -ef | grep kube-controller-manager
Verify that the
--profiling
argument is set to false
.Remediation
Edit the Controller Manager pod specification file
/etc/kubernetes/manifests/kube-controller-manager.yaml
on the Control Plane
node and set the below parameter.--profiling=false