Package org.cdk8s.plus20
Interface IPodTemplate.Jsii$Default
-
- All Superinterfaces:
IPodSpec,IPodSpec.Jsii$Default,IPodTemplate,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IPodTemplate.Jsii$Proxy
- Enclosing interface:
- IPodTemplate
@Internal public static interface IPodTemplate.Jsii$Default extends IPodTemplate, IPodSpec.Jsii$Default
Internal default implementation forIPodTemplate.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IPodSpec
IPodSpec.Jsii$Default, IPodSpec.Jsii$Proxy
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.IPodTemplate
IPodTemplate.Jsii$Default, IPodTemplate.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 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 org.cdk8s.ApiObjectMetadataDefinitiongetPodMetadata()Provides read/write access to the underlying pod metadata of the resource.default RestartPolicygetRestartPolicy()Restart policy for all containers within the pod.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- Specified by:
getContainersin interfaceIPodSpec.Jsii$Default
-
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- Specified by:
getHostAliasesin interfaceIPodSpec.Jsii$Default
-
getInitContainers
@Stability(Stable) @NotNull default List<Container> getInitContainers()
The init containers belonging to the pod.Use
addInitContainerto add init containers.- Specified by:
getInitContainersin interfaceIPodSpec- Specified by:
getInitContainersin interfaceIPodSpec.Jsii$Default
-
getVolumes
@Stability(Stable) @NotNull default List<Volume> getVolumes()
The volumes associated with this pod.Use
addVolumeto add volumes.- Specified by:
getVolumesin interfaceIPodSpec- Specified by:
getVolumesin interfaceIPodSpec.Jsii$Default
-
getRestartPolicy
@Stability(Stable) @Nullable default RestartPolicy getRestartPolicy()
Restart policy for all containers within the pod.- Specified by:
getRestartPolicyin interfaceIPodSpec- Specified by:
getRestartPolicyin interfaceIPodSpec.Jsii$Default
-
getServiceAccount
@Stability(Stable) @Nullable default IServiceAccount getServiceAccount()
The service account used to run this pod.- Specified by:
getServiceAccountin interfaceIPodSpec- Specified by:
getServiceAccountin interfaceIPodSpec.Jsii$Default
-
getPodMetadata
@Stability(Stable) @NotNull default org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
Provides read/write access to the underlying pod metadata of the resource.- Specified by:
getPodMetadatain interfaceIPodTemplate
-
addContainer
@Stability(Stable) @NotNull default Container addContainer(@NotNull ContainerProps container)
Add a container to the pod.- Specified by:
addContainerin interfaceIPodSpec- Specified by:
addContainerin interfaceIPodSpec.Jsii$Default- 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- Specified by:
addInitContainerin interfaceIPodSpec.Jsii$Default- Parameters:
container- The container. This parameter is required.
-
addVolume
@Stability(Stable) default void addVolume(@NotNull Volume volume)Add a volume to the pod.- Specified by:
addVolumein interfaceIPodSpec- Specified by:
addVolumein interfaceIPodSpec.Jsii$Default- Parameters:
volume- The volume. This parameter is required.
-
-