# Examples --- ## Merging multiple configuration objects When using the IMDS configuration source (`--config-source=imds://user-data`), `nodeadm` will merge any configuration objects it discovers before configuring your node. With the following user data: ``` 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: cluster: name: my-cluster apiServerEndpoint: https://example.com certificateAuthority: Y2VydGlmaWNhdGVBdXRob3JpdHk= cidr: 10.100.0.0/16 --BOUNDARY-- Content-Type: application/node.eks.aws --- apiVersion: node.eks.aws/v1alpha1 kind: NodeConfig spec: kubelet: config: shutdownGracePeriod: 30s featureGates: DisableKubeletCloudCredentialProviders: true --BOUNDARY-- ``` The configuration `nodeadm` will use is: ``` --- apiVersion: node.eks.aws/v1alpha1 kind: NodeConfig spec: cluster: name: my-cluster apiServerEndpoint: https://example.com certificateAuthority: Y2VydGlmaWNhdGVBdXRob3JpdHk= cidr: 10.100.0.0/16 kubelet: config: shutdownGracePeriod: 30s featureGates: DisableKubeletCloudCredentialProviders: true ``` The configuration objects will be merged in the order they appear in the MIME multi-part document, meaning the value in the lattermost configuration object will take precedence. --- ## Configuring `containerd` Additional `containerd` configuration can be supplied in your `NodeConfig`. The values in your inline TOML document will overwrite any default value set by `nodeadm`. The following configuration object: ``` --- apiVersion: node.eks.aws/v1alpha1 kind: NodeConfig spec: cluster: ... containerd: config: | [plugins."io.containerd.grpc.v1.cri".containerd] discard_unpacked_layers = false ``` Can be used to disable deletion of unpacked image layers in the `containerd` content store.