Show / Hide Table of Contents

Class PodSecurityPolicySpecArgs

PodSecurityPolicySpec defines the policy enforced.

Inheritance
System.Object
InputArgs
ResourceArgs
PodSecurityPolicySpecArgs
Inherited Members
ResourceArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Kubernetes.Types.Inputs.Policy.V1Beta1
Assembly: Pulumi.Kubernetes.dll
Syntax
public class PodSecurityPolicySpecArgs : ResourceArgs

Properties

View Source

AllowedCapabilities

allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.

Declaration
public InputList<string> AllowedCapabilities { get; set; }
Property Value
Type Description
InputList<System.String>
View Source

AllowedCSIDrivers

AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.

Declaration
public InputList<AllowedCSIDriverArgs> AllowedCSIDrivers { get; set; }
Property Value
Type Description
InputList<AllowedCSIDriverArgs>
View Source

AllowedFlexVolumes

allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field.

Declaration
public InputList<AllowedFlexVolumeArgs> AllowedFlexVolumes { get; set; }
Property Value
Type Description
InputList<AllowedFlexVolumeArgs>
View Source

AllowedHostPaths

allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used.

Declaration
public InputList<AllowedHostPathArgs> AllowedHostPaths { get; set; }
Property Value
Type Description
InputList<AllowedHostPathArgs>
View Source

AllowedProcMountTypes

AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.

Declaration
public InputList<string> AllowedProcMountTypes { get; set; }
Property Value
Type Description
InputList<System.String>
View Source

AllowedUnsafeSysctls

allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection.

Examples: e.g. "foo/" allows "foo/bar", "foo/baz", etc. e.g. "foo." allows "foo.bar", "foo.baz", etc.

Declaration
public InputList<string> AllowedUnsafeSysctls { get; set; }
Property Value
Type Description
InputList<System.String>
View Source

AllowPrivilegeEscalation

allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.

Declaration
public Input<bool> AllowPrivilegeEscalation { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

DefaultAddCapabilities

defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.

Declaration
public InputList<string> DefaultAddCapabilities { get; set; }
Property Value
Type Description
InputList<System.String>
View Source

DefaultAllowPrivilegeEscalation

defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.

Declaration
public Input<bool> DefaultAllowPrivilegeEscalation { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

ForbiddenSysctls

forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.

Examples: e.g. "foo/" forbids "foo/bar", "foo/baz", etc. e.g. "foo." forbids "foo.bar", "foo.baz", etc.

Declaration
public InputList<string> ForbiddenSysctls { get; set; }
Property Value
Type Description
InputList<System.String>
View Source

FsGroup

fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.

Declaration
public Input<FSGroupStrategyOptionsArgs> FsGroup { get; set; }
Property Value
Type Description
Input<FSGroupStrategyOptionsArgs>
View Source

HostIPC

hostIPC determines if the policy allows the use of HostIPC in the pod spec.

Declaration
public Input<bool> HostIPC { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

HostNetwork

hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.

Declaration
public Input<bool> HostNetwork { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

HostPID

hostPID determines if the policy allows the use of HostPID in the pod spec.

Declaration
public Input<bool> HostPID { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

HostPorts

hostPorts determines which host port ranges are allowed to be exposed.

Declaration
public InputList<HostPortRangeArgs> HostPorts { get; set; }
Property Value
Type Description
InputList<HostPortRangeArgs>
View Source

Privileged

privileged determines if a pod can request to be run as privileged.

Declaration
public Input<bool> Privileged { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

ReadOnlyRootFilesystem

readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.

Declaration
public Input<bool> ReadOnlyRootFilesystem { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

RequiredDropCapabilities

requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.

Declaration
public InputList<string> RequiredDropCapabilities { get; set; }
Property Value
Type Description
InputList<System.String>
View Source

RunAsGroup

RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled.

Declaration
public Input<RunAsGroupStrategyOptionsArgs> RunAsGroup { get; set; }
Property Value
Type Description
Input<RunAsGroupStrategyOptionsArgs>
View Source

RunAsUser

runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.

Declaration
public Input<RunAsUserStrategyOptionsArgs> RunAsUser { get; set; }
Property Value
Type Description
Input<RunAsUserStrategyOptionsArgs>
View Source

RuntimeClass

runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled.

Declaration
public Input<RuntimeClassStrategyOptionsArgs> RuntimeClass { get; set; }
Property Value
Type Description
Input<RuntimeClassStrategyOptionsArgs>
View Source

SeLinux

seLinux is the strategy that will dictate the allowable labels that may be set.

Declaration
public Input<SELinuxStrategyOptionsArgs> SeLinux { get; set; }
Property Value
Type Description
Input<SELinuxStrategyOptionsArgs>
View Source

SupplementalGroups

supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.

Declaration
public Input<SupplementalGroupsStrategyOptionsArgs> SupplementalGroups { get; set; }
Property Value
Type Description
Input<SupplementalGroupsStrategyOptionsArgs>
View Source

Volumes

volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.

Declaration
public InputList<string> Volumes { get; set; }
Property Value
Type Description
InputList<System.String>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.