Interface IServiceAccountOptions
Options for ServiceAccount
.
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IServiceAccountOptions
Syntax (vb)
Public Interface IServiceAccountOptions
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
// add service account with annotations and labels
var serviceAccount = cluster.AddServiceAccount("MyServiceAccount", new ServiceAccountOptions {
Annotations = new Dictionary<string, string> {
{ "eks.amazonaws.com/sts-regional-endpoints", "false" }
},
Labels = new Dictionary<string, string> {
{ "some-label", "with-some-value" }
}
});
Synopsis
Properties
Annotations | Additional annotations of the service account. |
Labels | Additional labels of the service account. |
Name | The name of the service account. |
Namespace | The namespace of the service account. |
Properties
Annotations
Additional annotations of the service account.
virtual IDictionary<string, string> Annotations { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - no additional annotations
Labels
Additional labels of the service account.
virtual IDictionary<string, string> Labels { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - no additional labels
Name
The name of the service account.
virtual string Name { get; }
Property Value
System.String
Remarks
The name of a ServiceAccount object must be a valid DNS subdomain name. https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
Default: - If no name is given, it will use the id of the resource.
Namespace
The namespace of the service account.
virtual string Namespace { get; }
Property Value
System.String
Remarks
All namespace names must be valid RFC 1123 DNS labels. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#namespaces-and-dns
Default: "default"