Interface EksPodProperties.Builder

    • Method Detail

      • hostNetwork

        EksPodProperties.Builder hostNetwork​(Boolean hostNetwork)

        Indicates if the pod uses the hosts' network IP address. The default value is true. Setting this to false enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.

        Parameters:
        hostNetwork - Indicates if the pod uses the hosts' network IP address. The default value is true. Setting this to false enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dnsPolicy

        EksPodProperties.Builder dnsPolicy​(String dnsPolicy)

        The DNS policy for the pod. The default value is ClusterFirst. If the hostNetwork parameter is not specified, the default is ClusterFirstWithHostNet. ClusterFirst indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.

        Valid values: Default | ClusterFirst | ClusterFirstWithHostNet

        Parameters:
        dnsPolicy - The DNS policy for the pod. The default value is ClusterFirst. If the hostNetwork parameter is not specified, the default is ClusterFirstWithHostNet. ClusterFirst indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.

        Valid values: Default | ClusterFirst | ClusterFirstWithHostNet

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • containers

        EksPodProperties.Builder containers​(Collection<EksContainer> containers)

        The properties of the container that's used on the Amazon EKS pod.

        Parameters:
        containers - The properties of the container that's used on the Amazon EKS pod.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • containers

        EksPodProperties.Builder containers​(EksContainer... containers)

        The properties of the container that's used on the Amazon EKS pod.

        Parameters:
        containers - The properties of the container that's used on the Amazon EKS pod.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • volumes

        EksPodProperties.Builder volumes​(Collection<EksVolume> volumes)

        Specifies the volumes for a job definition that uses Amazon EKS resources.

        Parameters:
        volumes - Specifies the volumes for a job definition that uses Amazon EKS resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • volumes

        EksPodProperties.Builder volumes​(EksVolume... volumes)

        Specifies the volumes for a job definition that uses Amazon EKS resources.

        Parameters:
        volumes - Specifies the volumes for a job definition that uses Amazon EKS resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.