kubernetes.aio.client.models.v1_security_context module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_security_context.V1SecurityContext(allow_privilege_escalation=None, app_armor_profile=None, capabilities=None, privileged=None, proc_mount=None, read_only_root_filesystem=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, seccomp_profile=None, windows_options=None, local_vars_configuration=None)¶
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property allow_privilege_escalation¶
Gets the allow_privilege_escalation of this V1SecurityContext. # noqa: E501
AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. # noqa: E501
- Returns:
The allow_privilege_escalation of this V1SecurityContext. # noqa: E501
- Return type:
- property app_armor_profile¶
Gets the app_armor_profile of this V1SecurityContext. # noqa: E501
- Returns:
The app_armor_profile of this V1SecurityContext. # noqa: E501
- Return type:
- attribute_map = {'allow_privilege_escalation': 'allowPrivilegeEscalation', 'app_armor_profile': 'appArmorProfile', 'capabilities': 'capabilities', 'privileged': 'privileged', 'proc_mount': 'procMount', 'read_only_root_filesystem': 'readOnlyRootFilesystem', 'run_as_group': 'runAsGroup', 'run_as_non_root': 'runAsNonRoot', 'run_as_user': 'runAsUser', 'se_linux_options': 'seLinuxOptions', 'seccomp_profile': 'seccompProfile', 'windows_options': 'windowsOptions'}¶
- property capabilities¶
Gets the capabilities of this V1SecurityContext. # noqa: E501
- Returns:
The capabilities of this V1SecurityContext. # noqa: E501
- Return type:
- openapi_types = {'allow_privilege_escalation': 'bool', 'app_armor_profile': 'V1AppArmorProfile', 'capabilities': 'V1Capabilities', 'privileged': 'bool', 'proc_mount': 'str', 'read_only_root_filesystem': 'bool', 'run_as_group': 'int', 'run_as_non_root': 'bool', 'run_as_user': 'int', 'se_linux_options': 'V1SELinuxOptions', 'seccomp_profile': 'V1SeccompProfile', 'windows_options': 'V1WindowsSecurityContextOptions'}¶
- property privileged¶
Gets the privileged of this V1SecurityContext. # noqa: E501
Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. # noqa: E501
- Returns:
The privileged of this V1SecurityContext. # noqa: E501
- Return type:
- property proc_mount¶
Gets the proc_mount of this V1SecurityContext. # noqa: E501
procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows. # noqa: E501
- Returns:
The proc_mount of this V1SecurityContext. # noqa: E501
- Return type:
str
- property read_only_root_filesystem¶
Gets the read_only_root_filesystem of this V1SecurityContext. # noqa: E501
Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. # noqa: E501
- Returns:
The read_only_root_filesystem of this V1SecurityContext. # noqa: E501
- Return type:
- property run_as_group¶
Gets the run_as_group of this V1SecurityContext. # noqa: E501
The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. # noqa: E501
- Returns:
The run_as_group of this V1SecurityContext. # noqa: E501
- Return type:
- property run_as_non_root¶
Gets the run_as_non_root of this V1SecurityContext. # noqa: E501
Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501
- Returns:
The run_as_non_root of this V1SecurityContext. # noqa: E501
- Return type:
- property run_as_user¶
Gets the run_as_user of this V1SecurityContext. # noqa: E501
The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. # noqa: E501
- Returns:
The run_as_user of this V1SecurityContext. # noqa: E501
- Return type:
- property se_linux_options¶
Gets the se_linux_options of this V1SecurityContext. # noqa: E501
- Returns:
The se_linux_options of this V1SecurityContext. # noqa: E501
- Return type:
- property seccomp_profile¶
Gets the seccomp_profile of this V1SecurityContext. # noqa: E501
- Returns:
The seccomp_profile of this V1SecurityContext. # noqa: E501
- Return type:
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model
- property windows_options¶
Gets the windows_options of this V1SecurityContext. # noqa: E501
- Returns:
The windows_options of this V1SecurityContext. # noqa: E501
- Return type: