JobDefinitionPodPropertiesArgs

data class JobDefinitionPodPropertiesArgs(val containers: Output<List<JobDefinitionEksContainerArgs>>? = null, val dnsPolicy: Output<String>? = null, val hostNetwork: Output<Boolean>? = null, val imagePullSecrets: Output<List<JobDefinitionImagePullSecretArgs>>? = null, val initContainers: Output<List<JobDefinitionEksContainerArgs>>? = null, val metadata: Output<JobDefinitionMetadataArgs>? = null, val serviceAccountName: Output<String>? = null, val shareProcessNamespace: Output<Boolean>? = null, val volumes: Output<List<JobDefinitionEksVolumeArgs>>? = null) : ConvertibleToJava<JobDefinitionPodPropertiesArgs>

Constructors

Link copied to clipboard
constructor(containers: Output<List<JobDefinitionEksContainerArgs>>? = null, dnsPolicy: Output<String>? = null, hostNetwork: Output<Boolean>? = null, imagePullSecrets: Output<List<JobDefinitionImagePullSecretArgs>>? = null, initContainers: Output<List<JobDefinitionEksContainerArgs>>? = null, metadata: Output<JobDefinitionMetadataArgs>? = null, serviceAccountName: Output<String>? = null, shareProcessNamespace: Output<Boolean>? = null, volumes: Output<List<JobDefinitionEksVolumeArgs>>? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard
val dnsPolicy: Output<String>? = null

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

Link copied to clipboard
val hostNetwork: Output<Boolean>? = null

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

Link copied to clipboard
Link copied to clipboard

These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation .

Link copied to clipboard
val metadata: Output<JobDefinitionMetadataArgs>? = null

Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation .

Link copied to clipboard
val serviceAccountName: Output<String>? = null

The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation .

Link copied to clipboard
val shareProcessNamespace: Output<Boolean>? = null

Indicates if the processes in a container are shared, or visible, to other containers in the same pod. For more information, see Share Process Namespace between Containers in a Pod .

Link copied to clipboard

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

Functions

Link copied to clipboard
open override fun toJava(): JobDefinitionPodPropertiesArgs