PodSecurityPolicyTemplate
Create a PodSecurityPolicyTemplate Resource
new PodSecurityPolicyTemplate(name: string, args?: PodSecurityPolicyTemplateArgs, opts?: CustomResourceOptions);def PodSecurityPolicyTemplate(resource_name, opts=None, allow_privilege_escalation=None, allowed_capabilities=None, allowed_csi_drivers=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, annotations=None, default_add_capabilities=None, default_allow_privilege_escalation=None, description=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, labels=None, name=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_group=None, volumes=None, __props__=None);func NewPodSecurityPolicyTemplate(ctx *Context, name string, args *PodSecurityPolicyTemplateArgs, opts ...ResourceOption) (*PodSecurityPolicyTemplate, error)public PodSecurityPolicyTemplate(string name, PodSecurityPolicyTemplateArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PodSecurityPolicyTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PodSecurityPolicyTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PodSecurityPolicyTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
PodSecurityPolicyTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PodSecurityPolicyTemplate resource accepts the following input properties:
- Allow
Privilege boolEscalation = (Optional)
- Allowed
Capabilities List<string> (list)
- Allowed
Csi List<PodDrivers Security Policy Template Allowed Csi Driver Args> (list)
- Allowed
Flex List<PodVolumes Security Policy Template Allowed Flex Volume Args> (list)
- Allowed
Host List<PodPaths Security Policy Template Allowed Host Path Args> (list)
- Allowed
Proc List<string>Mount Types (list)
- Allowed
Unsafe List<string>Sysctls (list)
- Annotations Dictionary<string, object>
Annotations for PodSecurityPolicyTemplate object (map)
- Default
Add List<string>Capabilities (list)
- Default
Allow boolPrivilege Escalation (list)
- Description string
The PodSecurityPolicyTemplate description (string)
- Forbidden
Sysctls List<string> (list)
- Fs
Group PodSecurity Policy Template Fs Group Args (list maxitems:1)
- Host
Ipc bool (bool)
- Host
Network bool hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- Host
Pid bool (bool)
- Host
Ports List<PodSecurity Policy Template Host Port Args> (list)
- Labels Dictionary<string, object>
Labels for PodSecurityPolicyTemplate object (map)
- Name string
The name of the PodSecurityPolicyTemplate (string)
- Privileged bool
(bool)
- Read
Only boolRoot Filesystem (bool)
- Required
Drop List<string>Capabilities (list)
- Run
As PodGroup Security Policy Template Run As Group Args (list maxitems:1)
- Run
As PodUser Security Policy Template Run As User Args (list maxitems:1)
- Runtime
Class PodSecurity Policy Template Runtime Class Args (list maxitems:1)
- Se
Linux PodSecurity Policy Template Se Linux Args (list maxitems:1)
- Supplemental
Group PodSecurity Policy Template Supplemental Group Args (list maxitems:1)
- Volumes List<string>
(list)
- Allow
Privilege boolEscalation = (Optional)
- Allowed
Capabilities []string (list)
- Allowed
Csi []PodDrivers Security Policy Template Allowed Csi Driver (list)
- Allowed
Flex []PodVolumes Security Policy Template Allowed Flex Volume (list)
- Allowed
Host []PodPaths Security Policy Template Allowed Host Path (list)
- Allowed
Proc []stringMount Types (list)
- Allowed
Unsafe []stringSysctls (list)
- Annotations map[string]interface{}
Annotations for PodSecurityPolicyTemplate object (map)
- Default
Add []stringCapabilities (list)
- Default
Allow boolPrivilege Escalation (list)
- Description string
The PodSecurityPolicyTemplate description (string)
- Forbidden
Sysctls []string (list)
- Fs
Group PodSecurity Policy Template Fs Group (list maxitems:1)
- Host
Ipc bool (bool)
- Host
Network bool hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- Host
Pid bool (bool)
- Host
Ports []PodSecurity Policy Template Host Port (list)
- Labels map[string]interface{}
Labels for PodSecurityPolicyTemplate object (map)
- Name string
The name of the PodSecurityPolicyTemplate (string)
- Privileged bool
(bool)
- Read
Only boolRoot Filesystem (bool)
- Required
Drop []stringCapabilities (list)
- Run
As PodGroup Security Policy Template Run As Group (list maxitems:1)
- Run
As PodUser Security Policy Template Run As User (list maxitems:1)
- Runtime
Class PodSecurity Policy Template Runtime Class (list maxitems:1)
- Se
Linux PodSecurity Policy Template Se Linux (list maxitems:1)
- Supplemental
Group PodSecurity Policy Template Supplemental Group (list maxitems:1)
- Volumes []string
(list)
- allow
Privilege booleanEscalation = (Optional)
- allowed
Capabilities string[] (list)
- allowed
Csi PodDrivers Security Policy Template Allowed Csi Driver[] (list)
- allowed
Flex PodVolumes Security Policy Template Allowed Flex Volume[] (list)
- allowed
Host PodPaths Security Policy Template Allowed Host Path[] (list)
- allowed
Proc string[]Mount Types (list)
- allowed
Unsafe string[]Sysctls (list)
- annotations {[key: string]: any}
Annotations for PodSecurityPolicyTemplate object (map)
- default
Add string[]Capabilities (list)
- default
Allow booleanPrivilege Escalation (list)
- description string
The PodSecurityPolicyTemplate description (string)
- forbidden
Sysctls string[] (list)
- fs
Group PodSecurity Policy Template Fs Group (list maxitems:1)
- host
Ipc boolean (bool)
- host
Network boolean hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- host
Pid boolean (bool)
- host
Ports PodSecurity Policy Template Host Port[] (list)
- labels {[key: string]: any}
Labels for PodSecurityPolicyTemplate object (map)
- name string
The name of the PodSecurityPolicyTemplate (string)
- privileged boolean
(bool)
- read
Only booleanRoot Filesystem (bool)
- required
Drop string[]Capabilities (list)
- run
As PodGroup Security Policy Template Run As Group (list maxitems:1)
- run
As PodUser Security Policy Template Run As User (list maxitems:1)
- runtime
Class PodSecurity Policy Template Runtime Class (list maxitems:1)
- se
Linux PodSecurity Policy Template Se Linux (list maxitems:1)
- supplemental
Group PodSecurity Policy Template Supplemental Group (list maxitems:1)
- volumes string[]
(list)
- allow_
privilege_ boolescalation = (Optional)
- allowed_
capabilities List[str] (list)
- allowed_
csi_ List[Poddrivers Security Policy Template Allowed Csi Driver] (list)
- allowed_
flex_ List[Podvolumes Security Policy Template Allowed Flex Volume] (list)
- allowed_
host_ List[Podpaths Security Policy Template Allowed Host Path] (list)
- allowed_
proc_ List[str]mount_ types (list)
- allowed_
unsafe_ List[str]sysctls (list)
- annotations Dict[str, Any]
Annotations for PodSecurityPolicyTemplate object (map)
- default_
add_ List[str]capabilities (list)
- default_
allow_ boolprivilege_ escalation (list)
- description str
The PodSecurityPolicyTemplate description (string)
- forbidden_
sysctls List[str] (list)
- fs_
group Dict[PodSecurity Policy Template Fs Group] (list maxitems:1)
- host_
ipc bool (bool)
- host_
network bool hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- host_
pid bool (bool)
- host_
ports List[PodSecurity Policy Template Host Port] (list)
- labels Dict[str, Any]
Labels for PodSecurityPolicyTemplate object (map)
- name str
The name of the PodSecurityPolicyTemplate (string)
- privileged bool
(bool)
- read_
only_ boolroot_ filesystem (bool)
- required_
drop_ List[str]capabilities (list)
- run_
as_ Dict[Podgroup Security Policy Template Run As Group] (list maxitems:1)
- run_
as_ Dict[Poduser Security Policy Template Run As User] (list maxitems:1)
- runtime_
class Dict[PodSecurity Policy Template Runtime Class] (list maxitems:1)
- se_
linux Dict[PodSecurity Policy Template Se Linux] (list maxitems:1)
- supplemental_
group Dict[PodSecurity Policy Template Supplemental Group] (list maxitems:1)
- volumes List[str]
(list)
Outputs
All input properties are implicitly available as output properties. Additionally, the PodSecurityPolicyTemplate resource produces the following output properties:
Look up an Existing PodSecurityPolicyTemplate Resource
Get an existing PodSecurityPolicyTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PodSecurityPolicyTemplateState, opts?: CustomResourceOptions): PodSecurityPolicyTemplatestatic get(resource_name, id, opts=None, allow_privilege_escalation=None, allowed_capabilities=None, allowed_csi_drivers=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, annotations=None, default_add_capabilities=None, default_allow_privilege_escalation=None, description=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, labels=None, name=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_group=None, volumes=None, __props__=None);func GetPodSecurityPolicyTemplate(ctx *Context, name string, id IDInput, state *PodSecurityPolicyTemplateState, opts ...ResourceOption) (*PodSecurityPolicyTemplate, error)public static PodSecurityPolicyTemplate Get(string name, Input<string> id, PodSecurityPolicyTemplateState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Allow
Privilege boolEscalation = (Optional)
- Allowed
Capabilities List<string> (list)
- Allowed
Csi List<PodDrivers Security Policy Template Allowed Csi Driver Args> (list)
- Allowed
Flex List<PodVolumes Security Policy Template Allowed Flex Volume Args> (list)
- Allowed
Host List<PodPaths Security Policy Template Allowed Host Path Args> (list)
- Allowed
Proc List<string>Mount Types (list)
- Allowed
Unsafe List<string>Sysctls (list)
- Annotations Dictionary<string, object>
Annotations for PodSecurityPolicyTemplate object (map)
- Default
Add List<string>Capabilities (list)
- Default
Allow boolPrivilege Escalation (list)
- Description string
The PodSecurityPolicyTemplate description (string)
- Forbidden
Sysctls List<string> (list)
- Fs
Group PodSecurity Policy Template Fs Group Args (list maxitems:1)
- Host
Ipc bool (bool)
- Host
Network bool hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- Host
Pid bool (bool)
- Host
Ports List<PodSecurity Policy Template Host Port Args> (list)
- Labels Dictionary<string, object>
Labels for PodSecurityPolicyTemplate object (map)
- Name string
The name of the PodSecurityPolicyTemplate (string)
- Privileged bool
(bool)
- Read
Only boolRoot Filesystem (bool)
- Required
Drop List<string>Capabilities (list)
- Run
As PodGroup Security Policy Template Run As Group Args (list maxitems:1)
- Run
As PodUser Security Policy Template Run As User Args (list maxitems:1)
- Runtime
Class PodSecurity Policy Template Runtime Class Args (list maxitems:1)
- Se
Linux PodSecurity Policy Template Se Linux Args (list maxitems:1)
- Supplemental
Group PodSecurity Policy Template Supplemental Group Args (list maxitems:1)
- Volumes List<string>
(list)
- Allow
Privilege boolEscalation = (Optional)
- Allowed
Capabilities []string (list)
- Allowed
Csi []PodDrivers Security Policy Template Allowed Csi Driver (list)
- Allowed
Flex []PodVolumes Security Policy Template Allowed Flex Volume (list)
- Allowed
Host []PodPaths Security Policy Template Allowed Host Path (list)
- Allowed
Proc []stringMount Types (list)
- Allowed
Unsafe []stringSysctls (list)
- Annotations map[string]interface{}
Annotations for PodSecurityPolicyTemplate object (map)
- Default
Add []stringCapabilities (list)
- Default
Allow boolPrivilege Escalation (list)
- Description string
The PodSecurityPolicyTemplate description (string)
- Forbidden
Sysctls []string (list)
- Fs
Group PodSecurity Policy Template Fs Group (list maxitems:1)
- Host
Ipc bool (bool)
- Host
Network bool hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- Host
Pid bool (bool)
- Host
Ports []PodSecurity Policy Template Host Port (list)
- Labels map[string]interface{}
Labels for PodSecurityPolicyTemplate object (map)
- Name string
The name of the PodSecurityPolicyTemplate (string)
- Privileged bool
(bool)
- Read
Only boolRoot Filesystem (bool)
- Required
Drop []stringCapabilities (list)
- Run
As PodGroup Security Policy Template Run As Group (list maxitems:1)
- Run
As PodUser Security Policy Template Run As User (list maxitems:1)
- Runtime
Class PodSecurity Policy Template Runtime Class (list maxitems:1)
- Se
Linux PodSecurity Policy Template Se Linux (list maxitems:1)
- Supplemental
Group PodSecurity Policy Template Supplemental Group (list maxitems:1)
- Volumes []string
(list)
- allow
Privilege booleanEscalation = (Optional)
- allowed
Capabilities string[] (list)
- allowed
Csi PodDrivers Security Policy Template Allowed Csi Driver[] (list)
- allowed
Flex PodVolumes Security Policy Template Allowed Flex Volume[] (list)
- allowed
Host PodPaths Security Policy Template Allowed Host Path[] (list)
- allowed
Proc string[]Mount Types (list)
- allowed
Unsafe string[]Sysctls (list)
- annotations {[key: string]: any}
Annotations for PodSecurityPolicyTemplate object (map)
- default
Add string[]Capabilities (list)
- default
Allow booleanPrivilege Escalation (list)
- description string
The PodSecurityPolicyTemplate description (string)
- forbidden
Sysctls string[] (list)
- fs
Group PodSecurity Policy Template Fs Group (list maxitems:1)
- host
Ipc boolean (bool)
- host
Network boolean hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- host
Pid boolean (bool)
- host
Ports PodSecurity Policy Template Host Port[] (list)
- labels {[key: string]: any}
Labels for PodSecurityPolicyTemplate object (map)
- name string
The name of the PodSecurityPolicyTemplate (string)
- privileged boolean
(bool)
- read
Only booleanRoot Filesystem (bool)
- required
Drop string[]Capabilities (list)
- run
As PodGroup Security Policy Template Run As Group (list maxitems:1)
- run
As PodUser Security Policy Template Run As User (list maxitems:1)
- runtime
Class PodSecurity Policy Template Runtime Class (list maxitems:1)
- se
Linux PodSecurity Policy Template Se Linux (list maxitems:1)
- supplemental
Group PodSecurity Policy Template Supplemental Group (list maxitems:1)
- volumes string[]
(list)
- allow_
privilege_ boolescalation = (Optional)
- allowed_
capabilities List[str] (list)
- allowed_
csi_ List[Poddrivers Security Policy Template Allowed Csi Driver] (list)
- allowed_
flex_ List[Podvolumes Security Policy Template Allowed Flex Volume] (list)
- allowed_
host_ List[Podpaths Security Policy Template Allowed Host Path] (list)
- allowed_
proc_ List[str]mount_ types (list)
- allowed_
unsafe_ List[str]sysctls (list)
- annotations Dict[str, Any]
Annotations for PodSecurityPolicyTemplate object (map)
- default_
add_ List[str]capabilities (list)
- default_
allow_ boolprivilege_ escalation (list)
- description str
The PodSecurityPolicyTemplate description (string)
- forbidden_
sysctls List[str] (list)
- fs_
group Dict[PodSecurity Policy Template Fs Group] (list maxitems:1)
- host_
ipc bool (bool)
- host_
network bool hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
- host_
pid bool (bool)
- host_
ports List[PodSecurity Policy Template Host Port] (list)
- labels Dict[str, Any]
Labels for PodSecurityPolicyTemplate object (map)
- name str
The name of the PodSecurityPolicyTemplate (string)
- privileged bool
(bool)
- read_
only_ boolroot_ filesystem (bool)
- required_
drop_ List[str]capabilities (list)
- run_
as_ Dict[Podgroup Security Policy Template Run As Group] (list maxitems:1)
- run_
as_ Dict[Poduser Security Policy Template Run As User] (list maxitems:1)
- runtime_
class Dict[PodSecurity Policy Template Runtime Class] (list maxitems:1)
- se_
linux Dict[PodSecurity Policy Template Se Linux] (list maxitems:1)
- supplemental_
group Dict[PodSecurity Policy Template Supplemental Group] (list maxitems:1)
- volumes List[str]
(list)
Supporting Types
PodSecurityPolicyTemplateAllowedCsiDriver
PodSecurityPolicyTemplateAllowedFlexVolume
PodSecurityPolicyTemplateAllowedHostPath
- Path
Prefix string (string)
- Read
Only bool (string)
- Path
Prefix string (string)
- Read
Only bool (string)
- path
Prefix string (string)
- read
Only boolean (string)
- path
Prefix str (string)
- read
Only bool (string)
PodSecurityPolicyTemplateFsGroup
- Ranges
List<Pod
Security Policy Template Fs Group Range Args> (list)
- Rule string
(string)
- Ranges
[]Pod
Security Policy Template Fs Group Range (list)
- Rule string
(string)
- ranges
Pod
Security Policy Template Fs Group Range[] (list)
- rule string
(string)
- ranges
List[Pod
Security Policy Template Fs Group Range] (list)
- rule str
(string)
PodSecurityPolicyTemplateFsGroupRange
PodSecurityPolicyTemplateHostPort
PodSecurityPolicyTemplateRunAsGroup
- Rule string
(string)
- Ranges
[]Pod
Security Policy Template Run As Group Range (list)
- rule string
(string)
- ranges
Pod
Security Policy Template Run As Group Range[] (list)
- rule str
(string)
- ranges
List[Pod
Security Policy Template Run As Group Range] (list)
PodSecurityPolicyTemplateRunAsGroupRange
PodSecurityPolicyTemplateRunAsUser
- Rule string
(string)
- Ranges
[]Pod
Security Policy Template Run As User Range (list)
- rule string
(string)
- ranges
Pod
Security Policy Template Run As User Range[] (list)
- rule str
(string)
- ranges
List[Pod
Security Policy Template Run As User Range] (list)
PodSecurityPolicyTemplateRunAsUserRange
PodSecurityPolicyTemplateRuntimeClass
- Allowed
Runtime []stringClass Names (list)
- Default
Runtime stringClass Name (string)
- allowed
Runtime string[]Class Names (list)
- default
Runtime stringClass Name (string)
- allowed
Runtime List[str]Class Names (list)
- default
Runtime strClass Name (string)
PodSecurityPolicyTemplateSeLinux
- Rule string
(string)
- Se
Linux PodOption Security Policy Template Se Linux Se Linux Option Args (list maxitems:1)
- Rule string
(string)
- Se
Linux PodOption Security Policy Template Se Linux Se Linux Option (list maxitems:1)
- rule string
(string)
- se
Linux PodOption Security Policy Template Se Linux Se Linux Option (list maxitems:1)
- rule str
(string)
- se
Linux Dict[PodOption Security Policy Template Se Linux Se Linux Option] (list maxitems:1)
PodSecurityPolicyTemplateSeLinuxSeLinuxOption
PodSecurityPolicyTemplateSupplementalGroup
PodSecurityPolicyTemplateSupplementalGroupRange
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.