SecurityContextDefinition Class
The security context for the container.
Constructor
SecurityContextDefinition(*, privileged: bool | None = None, allow_privilege_escalation: bool | None = None, capabilities: _models.SecurityContextCapabilitiesDefinition | None = None, run_as_group: int | None = None, run_as_user: int | None = None, seccomp_profile: str | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
privileged
|
The flag to determine if the container permissions is elevated to Privileged. Default value: None
|
|
allow_privilege_escalation
|
A boolean value indicating whether the init process can elevate its privileges. Default value: None
|
|
capabilities
|
The capabilities to add or drop from a container. Default value: None
|
|
run_as_group
|
Sets the User GID for the container. Default value: None
|
|
run_as_user
|
Sets the User UID for the container. Default value: None
|
|
seccomp_profile
|
a base64 encoded string containing the contents of the JSON in the seccomp profile. Default value: None
|
Variables
| Name | Description |
|---|---|
|
privileged
|
The flag to determine if the container permissions is elevated to Privileged. |
|
allow_privilege_escalation
|
A boolean value indicating whether the init process can elevate its privileges. |
|
capabilities
|
The capabilities to add or drop from a container. |
|
run_as_group
|
Sets the User GID for the container. |
|
run_as_user
|
Sets the User UID for the container. |
|
seccomp_profile
|
a base64 encoded string containing the contents of the JSON in the seccomp profile. |