interface ServiceAccountProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.ServiceAccountProps |
Java | software.amazon.awscdk.services.eks.ServiceAccountProps |
Python | aws_cdk.aws_eks.ServiceAccountProps |
TypeScript (source) | @aws-cdk/aws-eks » ServiceAccountProps |
Properties for defining service accounts.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as eks from '@aws-cdk/aws-eks';
declare const cluster: eks.Cluster;
const serviceAccountProps: eks.ServiceAccountProps = {
cluster: cluster,
// the properties below are optional
annotations: {
annotationsKey: 'annotations',
},
labels: {
labelsKey: 'labels',
},
name: 'name',
namespace: 'namespace',
};
Properties
Name | Type | Description |
---|---|---|
cluster | ICluster | The cluster to apply the patch to. |
annotations? | { [string]: string } | Additional annotations of 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. |
cluster
Type:
ICluster
The cluster to apply the patch to.
annotations?
Type:
{ [string]: string }
(optional, default: no additional annotations)
Additional annotations of 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