diff --git a/templates/cluster-template-flatcar.yaml b/templates/cluster-template-flatcar.yaml index d94618f160..5fcca67eff 100644 --- a/templates/cluster-template-flatcar.yaml +++ b/templates/cluster-template-flatcar.yaml @@ -73,6 +73,8 @@ spec: # kubeadm must run after coreos-metadata populated /run/metadata directory. Requires=coreos-metadata.service After=coreos-metadata.service + # kubeadm must run after containerd - see https://github.com/kubernetes-sigs/image-builder/issues/939. + After=containerd.service [Service] # To make metadata environment variables available for pre-kubeadm commands. EnvironmentFile=/run/metadata/* @@ -155,6 +157,8 @@ spec: # kubeadm must run after coreos-metadata populated /run/metadata directory. Requires=coreos-metadata.service After=coreos-metadata.service + # kubeadm must run after containerd - see https://github.com/kubernetes-sigs/image-builder/issues/939. + After=containerd.service [Service] # To make metadata environment variables available for pre-kubeadm commands. EnvironmentFile=/run/metadata/* diff --git a/test/e2e/data/infrastructure-aws/withoutclusterclass/e2e_test_templates/cluster-template-ignition.yaml b/test/e2e/data/infrastructure-aws/withoutclusterclass/e2e_test_templates/cluster-template-ignition.yaml index 25330e2968..58d94be315 100644 --- a/test/e2e/data/infrastructure-aws/withoutclusterclass/e2e_test_templates/cluster-template-ignition.yaml +++ b/test/e2e/data/infrastructure-aws/withoutclusterclass/e2e_test_templates/cluster-template-ignition.yaml @@ -61,6 +61,8 @@ spec: # kubeadm must run after coreos-metadata populated /run/metadata directory. Requires=coreos-metadata.service After=coreos-metadata.service + # kubeadm must run after containerd - see https://github.com/kubernetes-sigs/image-builder/issues/939. + After=containerd.service [Service] # To make metadata environment variables available for pre-kubeadm commands. EnvironmentFile=/run/metadata/* @@ -154,6 +156,8 @@ spec: # kubeadm must run after coreos-metadata populated /run/metadata directory. Requires=coreos-metadata.service After=coreos-metadata.service + # kubeadm must run after containerd - see https://github.com/kubernetes-sigs/image-builder/issues/939. + After=containerd.service [Service] # To make metadata environment variables available for pre-kubeadm commands. EnvironmentFile=/run/metadata/* diff --git a/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/control-plane-ignition.yaml b/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/control-plane-ignition.yaml index 14836cca43..c949856880 100644 --- a/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/control-plane-ignition.yaml +++ b/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/control-plane-ignition.yaml @@ -29,6 +29,8 @@ spec: # kubeadm must run after coreos-metadata populated /run/metadata directory. Requires=coreos-metadata.service After=coreos-metadata.service + # kubeadm must run after containerd - see https://github.com/kubernetes-sigs/image-builder/issues/939. + After=containerd.service [Service] # To make metadata environment variables available for pre-kubeadm commands. EnvironmentFile=/run/metadata/* diff --git a/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/worker-ignition.yaml b/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/worker-ignition.yaml index 3f11a9d6e1..1f2dc3c644 100644 --- a/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/worker-ignition.yaml +++ b/test/e2e/data/infrastructure-aws/withoutclusterclass/kustomize_sources/ignition/patches/worker-ignition.yaml @@ -25,6 +25,8 @@ spec: # kubeadm must run after coreos-metadata populated /run/metadata directory. Requires=coreos-metadata.service After=coreos-metadata.service + # kubeadm must run after containerd - see https://github.com/kubernetes-sigs/image-builder/issues/939. + After=containerd.service [Service] # To make metadata environment variables available for pre-kubeadm commands. EnvironmentFile=/run/metadata/*