Package org.cdk8s.plus20
Interface IPodSpec.Jsii$Default
-
- All Superinterfaces:
IPodSpec,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IPodTemplate.Jsii$Default
- All Known Implementing Classes:
IPodSpec.Jsii$Proxy,IPodTemplate.Jsii$Proxy
- Enclosing interface:
- IPodSpec
@Internal public static interface IPodSpec.Jsii$Default extends IPodSpec
Internal default implementation forIPodSpec.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IPodSpec
IPodSpec.Jsii$Default, IPodSpec.Jsii$Proxy
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ContaineraddContainer(ContainerProps container)Add a container to the pod.default ContaineraddInitContainer(ContainerProps container)Add an init container to the pod.default voidaddVolume(Volume volume)Add a volume to the pod.default List<Container>getContainers()The containers belonging to the pod.default PodDnsgetDns()The pod's DNS settings.default List<HostAlias>getHostAliases()An optional list of hosts and IPs that will be injected into the pod's hosts file if specified.default List<Container>getInitContainers()The init containers belonging to the pod.default RestartPolicygetRestartPolicy()Restart policy for all containers within the pod.default PodSecurityContextgetSecurityContext()The pod's security context.default IServiceAccountgetServiceAccount()The service account used to run this pod.default List<Volume>getVolumes()The volumes associated with this pod.
-
-
-
Method Detail
-
getContainers
@Stability(Stable) @NotNull default List<Container> getContainers()
The containers belonging to the pod.Use
addContainerto add containers.- Specified by:
getContainersin interfaceIPodSpec
-
getDns
@Stability(Stable) @NotNull default PodDns getDns()
The pod's DNS settings.
-
getHostAliases
@Stability(Stable) @NotNull default List<HostAlias> getHostAliases()
An optional list of hosts and IPs that will be injected into the pod's hosts file if specified.This is only valid for non-hostNetwork pods.
- Specified by:
getHostAliasesin interfaceIPodSpec
-
getInitContainers
@Stability(Stable) @NotNull default List<Container> getInitContainers()
The init containers belonging to the pod.Use
addInitContainerto add init containers.- Specified by:
getInitContainersin interfaceIPodSpec
-
getSecurityContext
@Stability(Stable) @NotNull default PodSecurityContext getSecurityContext()
The pod's security context.- Specified by:
getSecurityContextin interfaceIPodSpec
-
getVolumes
@Stability(Stable) @NotNull default List<Volume> getVolumes()
The volumes associated with this pod.Use
addVolumeto add volumes.- Specified by:
getVolumesin interfaceIPodSpec
-
getRestartPolicy
@Stability(Stable) @Nullable default RestartPolicy getRestartPolicy()
Restart policy for all containers within the pod.- Specified by:
getRestartPolicyin interfaceIPodSpec
-
getServiceAccount
@Stability(Stable) @Nullable default IServiceAccount getServiceAccount()
The service account used to run this pod.- Specified by:
getServiceAccountin interfaceIPodSpec
-
addContainer
@Stability(Stable) @NotNull default Container addContainer(@NotNull ContainerProps container)
Add a container to the pod.- Specified by:
addContainerin interfaceIPodSpec- Parameters:
container- The container. This parameter is required.
-
addInitContainer
@Stability(Stable) @NotNull default Container addInitContainer(@NotNull ContainerProps container)
Add an init container to the pod.- Specified by:
addInitContainerin interfaceIPodSpec- Parameters:
container- The container. This parameter is required.
-
-