Interface EksPodPropertiesDetail.Builder

    • Method Detail

      • hostNetwork

        EksPodPropertiesDetail.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

        EksPodPropertiesDetail.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. If no value was specified for dnsPolicy in the RegisterJobDefinition API operation, then no value will be returned for dnsPolicy by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain either ClusterFirst or ClusterFirstWithHostNet, depending on the value of the hostNetwork parameter. 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. If no value was specified for dnsPolicy in the RegisterJobDefinition API operation, then no value will be returned for dnsPolicy by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain either ClusterFirst or ClusterFirstWithHostNet, depending on the value of the hostNetwork parameter. 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.
      • imagePullSecrets

        EksPodPropertiesDetail.Builder imagePullSecrets​(Collection<ImagePullSecret> imagePullSecrets)

        Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.

        Parameters:
        imagePullSecrets - Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • imagePullSecrets

        EksPodPropertiesDetail.Builder imagePullSecrets​(ImagePullSecret... imagePullSecrets)

        Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.

        Parameters:
        imagePullSecrets - Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • containers

        EksPodPropertiesDetail.Builder containers​(Collection<EksContainerDetail> 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

        EksPodPropertiesDetail.Builder containers​(EksContainerDetail... 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.
      • initContainers

        EksPodPropertiesDetail.Builder initContainers​(Collection<EksContainerDetail> initContainers)

        The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.

        Parameters:
        initContainers - The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • initContainers

        EksPodPropertiesDetail.Builder initContainers​(EksContainerDetail... initContainers)

        The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.

        Parameters:
        initContainers - The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • volumes

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

        Specifies the volumes for a job definition using Amazon EKS resources.

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

        EksPodPropertiesDetail.Builder volumes​(EksVolume... volumes)

        Specifies the volumes for a job definition using Amazon EKS resources.

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

        EksPodPropertiesDetail.Builder podName​(String podName)

        The name of the pod for this job.

        Parameters:
        podName - The name of the pod for this job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nodeName

        EksPodPropertiesDetail.Builder nodeName​(String nodeName)

        The name of the node for this job.

        Parameters:
        nodeName - The name of the node for this job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metadata

        EksPodPropertiesDetail.Builder metadata​(EksMetadata metadata)

        Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the jobID for a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.

        Parameters:
        metadata - Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the jobID for a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.