Interface IPodSpec

    • Method Detail

      • getContainers

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

        Use addContainer to add containers.

      • getVolumes

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

        Use addVolume to add volumes.

      • getRestartPolicy

        @Stability(Stable)
        @Nullable
        default RestartPolicy getRestartPolicy()
        Restart policy for all containers within the pod.
      • getServiceAccount

        @Stability(Stable)
        @Nullable
        default IServiceAccount getServiceAccount()
        The service account used to run this pod.
      • addContainer

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

        Parameters:
        container - The container. This parameter is required.
      • addVolume

        @Stability(Stable)
        void addVolume​(@NotNull
                       Volume volume)
        Add a volume to the pod.

        Parameters:
        volume - The volume. This parameter is required.