Interface IEksJobDefinition
A JobDefinition that uses Eks orchestration.
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEksJobDefinition : IJobDefinition, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Interface IEksJobDefinition Inherits IJobDefinition, IResource, IConstruct, IDependable, IEnvironmentAware
Synopsis
Properties
| Container | The container this Job Definition will run. |
| DnsPolicy | The DNS Policy of the pod used by this Job Definition. |
| ServiceAccount | The name of the service account that's used to run the container. |
| UseHostNetwork | If specified, the Pod used by this Job Definition will use the host's network IP address. |
Properties
Container
The container this Job Definition will run.
EksContainerDefinition Container { get; }
Property Value
DnsPolicy
The DNS Policy of the pod used by this Job Definition.
DnsPolicy? DnsPolicy { get; }
Property Value
Remarks
Default: DnsPolicy.CLUSTER_FIRST
See: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
ServiceAccount
The name of the service account that's used to run the container.
string? ServiceAccount { get; }
Property Value
Remarks
service accounts are Kubernetes method of identification and authentication, roughly analogous to IAM users.
Default: - the default service account of the container
See: https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html
UseHostNetwork
If specified, the Pod used by this Job Definition will use the host's network IP address.
bool? UseHostNetwork { get; }
Property Value
bool?
Remarks
Otherwise, the Kubernetes pod networking model is enabled. Most AWS Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections.
Default: true
See: https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking