k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/jobs/e2e_node/arm/init.yaml (about)

     1  #cloud-config
     2  
     3  package_upgrade: true
     4  package_update: true
     5  packages:
     6    - nfs-common
     7  runcmd:
     8    - echo "Test run from /tmp folder, remounting it"
     9    - mount /tmp /tmp -o remount,exec,suid
    10  
    11    - echo "This will configure built-in containerd for k8s tests. Containerd version is:"
    12    - ctr version # current version of containerd
    13  
    14    - echo "Download and install CNI configuration to /home/containerd"
    15    - mkdir -p /home/containerd
    16    - mount --bind /home/containerd /home/containerd
    17    - mount -o remount,exec /home/containerd
    18    - 'curl --fail --retry 5 --retry-delay 3 --silent --show-error -H "X-Google-Metadata-Request: True" -o /home/containerd/cni.template http://metadata.google.internal/computeMetadata/v1/instance/attributes/cni-template'
    19  
    20    - echo "Download and install CNI to /home/containerd"
    21    - 'curl -sSL --fail --retry 5 --retry-delay 3 --silent --show-error -o /home/containerd/cni.tgz https://storage.googleapis.com/k8s-artifacts-cni/release/v1.0.1/cni-plugins-linux-arm64-v1.0.1.tgz'
    22    - tar xzf /home/containerd/cni.tgz -C /home/containerd --overwrite
    23  
    24    - echo "Set containerd configuration"
    25    - mkdir -p /etc/containerd
    26    - 'curl --fail --retry 5 --retry-delay 3 --silent --show-error -H "X-Google-Metadata-Request: True" -o /etc/containerd/config.toml http://metadata.google.internal/computeMetadata/v1/instance/attributes/containerd-config'
    27  
    28    - echo "Restarting containerd"
    29    - systemctl restart containerd
    30  
    31    - echo "Increasing the limit of inotify watches"
    32    - sysctl -w fs.inotify.max_user_watches=524288
    33  
    34    - echo "Configuration complete"
    35