Class NodegroupRemoteAccess
The remote access (SSH) configuration to use with your node group.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NodegroupRemoteAccess : Object, INodegroupRemoteAccess
Syntax (vb)
Public Class NodegroupRemoteAccess
Inherits Object
Implements INodegroupRemoteAccess
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.EKS;
SecurityGroup securityGroup;
var nodegroupRemoteAccess = new NodegroupRemoteAccess {
SshKeyName = "sshKeyName",
// the properties below are optional
SourceSecurityGroups = new [] { securityGroup }
};
Synopsis
Constructors
NodegroupRemoteAccess() |
Properties
SourceSecurityGroups | The security groups that are allowed SSH access (port 22) to the worker nodes. |
SshKeyName | The Amazon EC2 SSH key that provides access for SSH communication with the worker nodes in the managed node group. |
Constructors
NodegroupRemoteAccess()
public NodegroupRemoteAccess()
Properties
SourceSecurityGroups
The security groups that are allowed SSH access (port 22) to the worker nodes.
public ISecurityGroup[] SourceSecurityGroups { get; set; }
Property Value
Remarks
If you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the worker nodes is opened to the internet (0.0.0.0/0).
Default: - port 22 on the worker nodes is opened to the internet (0.0.0.0/0)
SshKeyName
The Amazon EC2 SSH key that provides access for SSH communication with the worker nodes in the managed node group.
public string SshKeyName { get; set; }
Property Value
System.String