sigs.k8s.io/cluster-api-provider-azure@v1.14.3/templates/test/ci/patches/kubeadm-bootstrap-windows-containerd.yaml (about)

     1  - op: add
     2    path: /spec/template/spec/files/-
     3    value:
     4      content: |
     5        $ErrorActionPreference = 'Stop'
     6  
     7        $$CONTAINERD_URL="${WINDOWS_CONTAINERD_URL}"
     8        if($$CONTAINERD_URL -ne ""){
     9          # Kubelet service depends on contianerd service so make a best effort attempt to stop it
    10          Stop-Service kubelet -Force -ErrorAction SilentlyContinue
    11          Stop-Service containerd -Force
    12          echo "downloading containerd: $$CONTAINERD_URL"
    13          curl.exe --retry 10 --retry-delay 5 -L "$$CONTAINERD_URL" --output "c:/k/containerd.tar.gz"
    14          tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1
    15  
    16          Start-Service containerd
    17        }
    18  
    19        containerd.exe --version
    20        containerd-shim-runhcs-v1.exe --version
    21      path: C:/replace-containerd.ps1
    22      permissions: "0744"
    23  - op: add
    24    path: /spec/template/spec/preKubeadmCommands/-
    25    value:
    26      powershell C:/replace-containerd.ps1