interface ServiceAccountOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EKS.ServiceAccountOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awseks#ServiceAccountOptions |
![]() | software.amazon.awscdk.services.eks.ServiceAccountOptions |
![]() | aws_cdk.aws_eks.ServiceAccountOptions |
![]() | aws-cdk-lib » aws_eks » ServiceAccountOptions |
Options for ServiceAccount
.
Example
declare const cluster: eks.Cluster;
// add service account with annotations and labels
const serviceAccount = cluster.addServiceAccount('MyServiceAccount', {
annotations: {
'eks.amazonaws.com/sts-regional-endpoints': 'false',
},
labels: {
'some-label': 'with-some-value',
},
});
Properties
Name | Type | Description |
---|---|---|
annotations? | { [string]: string } | Additional annotations of the service account. |
identity | Identity | The identity type to use for the service account. |
labels? | { [string]: string } | Additional labels of the service account. |
name? | string | The name of the service account. |
namespace? | string | The namespace of the service account. |
annotations?
Type:
{ [string]: string }
(optional, default: no additional annotations)
Additional annotations of the service account.
identityType?
Type:
Identity
(optional, default: IdentityType.IRSA)
The identity type to use for the service account.
labels?
Type:
{ [string]: string }
(optional, default: no additional labels)
Additional labels of the service account.
name?
Type:
string
(optional, default: If no name is given, it will use the id of the resource.)
The name of the service account.
The name of a ServiceAccount object must be a valid DNS subdomain name. https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
namespace?
Type:
string
(optional, default: "default")
The namespace of the service account.
All namespace names must be valid RFC 1123 DNS labels. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#namespaces-and-dns