Skip to content

Commit bf32989

Browse files
committed
Mention KCM configuration
1 parent 2c4e08e commit bf32989

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/en/docs/tasks/configure-pod-container/security-context.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,12 @@ only one of such pods is able to run on a node, the other one gets ContainerCrea
722722
#### SELinuxWarningController
723723
To make it easier to identify Pods that are affected by the change in SELinux volume relabeling,
724724
a new controller called `SELinuxWarningController` has been introduced in kube-controller-manager.
725-
It is disabled by default and can be enabled by setting the `--controllers=*,selinux-warning-controller` command line flag
726-
and `SELinuxChangePolicy` feature gate.
725+
It is disabled by default and can be enabled by either setting the `--controllers=*,selinux-warning-controller`
726+
[command line flag](/docs/reference/command-line-tools-reference/kube-controller-manager/),
727+
or by setting `genericControllerManagerConfiguration.controllers`
728+
[field in KubeControllerManagerConfiguration](/docs/reference/config-api/kube-controller-manager-config.v1alpha1/#controllermanager-config-k8s-io-v1alpha1-GenericControllerManagerConfiguration).
729+
This controller requires `SELinuxChangePolicy` feature gate to be enabled.
730+
727731
When enabled, the controller observes running Pods and when it detects that two Pods use the same volume
728732
with different SELinux labels:
729733
1. It emits an event to both of the Pods. `kubectl describe pod <pod-name>` the shows

0 commit comments

Comments
 (0)