Skip to content

nodeadm

Initializes a node in an EKS cluster.


Usage

To initialize a node:

nodeadm init

Configuration

nodeadm uses a YAML configuration schema that will look familiar to Kubernetes users.

This is an example of the minimum required parameters:

---
apiVersion: node.eks.aws/v1alpha1
kind: NodeConfig
spec:
  cluster:
    name: my-cluster
    apiServerEndpoint: https://example.com
    certificateAuthority: Y2VydGlmaWNhdGVBdXRob3JpdHk=
    cidr: 10.100.0.0/16

You'll typically provide this configuration in your EC2 instance's user data, either as-is or embedded within a MIME multi-part document:

MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="BOUNDARY"

--BOUNDARY
Content-Type: application/node.eks.aws

---
apiVersion: node.eks.aws/v1alpha1
kind: NodeConfig
spec: ...

--BOUNDARY--

A different source for the configuration object can be specified with the --config-source flag.

The API reference documentation contains the details of the configuration types.