Interface IPodSpec.Jsii$Default

    • Method Detail

      • getContainers

        @Stability(Stable)
        @NotNull
        default List<Container> getContainers()
        The containers belonging to the pod.

        Use addContainer to add containers.

        Specified by:
        getContainers in interface IPodSpec
      • getDns

        @Stability(Stable)
        @NotNull
        default PodDns getDns()
        The pod's DNS settings.
        Specified by:
        getDns in interface IPodSpec
      • 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:
        getHostAliases in interface IPodSpec
      • getInitContainers

        @Stability(Stable)
        @NotNull
        default List<Container> getInitContainers()
        The init containers belonging to the pod.

        Use addInitContainer to add init containers.

        Specified by:
        getInitContainers in interface IPodSpec
      • getVolumes

        @Stability(Stable)
        @NotNull
        default List<Volume> getVolumes()
        The volumes associated with this pod.

        Use addVolume to add volumes.

        Specified by:
        getVolumes in interface IPodSpec
      • getRestartPolicy

        @Stability(Stable)
        @Nullable
        default RestartPolicy getRestartPolicy()
        Restart policy for all containers within the pod.
        Specified by:
        getRestartPolicy in interface IPodSpec
      • addContainer

        @Stability(Stable)
        @NotNull
        default Container addContainer​(@NotNull
                                       ContainerProps container)
        Add a container to the pod.

        Specified by:
        addContainer in interface IPodSpec
        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:
        addInitContainer in interface IPodSpec
        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:
        addVolume in interface IPodSpec
        Parameters:
        volume - The volume. This parameter is required.