Interface IPodSpec

    • Method Detail

      • getContainers

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

        Use addContainer to add containers.

      • getDns

        @Stability(Stable)
        @NotNull
        PodDns getDns()
        The pod's DNS settings.
      • getHostAliases

        @Stability(Stable)
        @NotNull
        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.

      • getInitContainers

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

        Use addInitContainer to add init containers.

      • getSecurityContext

        @Stability(Stable)
        @NotNull
        PodSecurityContext getSecurityContext()
        The pod's security context.
      • 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.
      • addInitContainer

        @Stability(Stable)
        @NotNull
        Container addInitContainer​(@NotNull
                                   ContainerProps container)
        Add an init 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.