Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create EC2 Launch Template for the cluster nodes.

  • In the Launch Template Advanced details -> User data add the following configuration:
    Change the configuration according to your environment (at least the host attribute).

    Code Block
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="//"
    
    --//
    Content-Type: text/x-shellscript; charset="us-ascii"
    #!/bin/bash
    
    mkdir -p /etc/containerd/certs.d/icr.io
    printf 'server = "https://icr.io"\n[host."https://my-container-registry.example.com/v2/dpod-cloud-agent"]\n    capabilities = ["pull", "resolve"]\n    skip_verify = false\n    override_path = true\n' | tee /etc/containerd/certs.d/icr.io/hosts.toml
    mkdir -p /etc/containerd/certs.d/cp.icr.io
    printf 'server = "https://cp.icr.io"\n[host."https://my-container-registry.example.com/v2/dpod-cloud-agent"]\n    capabilities = ["pull", "resolve"]\n    skip_verify = false\n    override_path = true\n' | tee /etc/containerd/certs.d/cp.icr.io/hosts.toml
    systemctl restart containerd
    
    --//--
  • Make sure to create the cluster with Node Group that uses the new Launch Template

...