Wait for containerd installation in GCE scripts

Prior to running the `kube-node-installation.service`, the containerd
installation should be complete as the k8s installation may have
dependencies on containerd and related binaries (e.g ctr). Add
wants/after systemd directives to ensure
`kube-node-installation.service` will only start after containerd
installation completes.

Signed-off-by: David Porter <porterdavid@google.com>
This commit is contained in:
David Porter 2022-02-10 14:55:11 -08:00
parent eb011d127b
commit 6e3cc28a66
2 changed files with 4 additions and 2 deletions

View File

@ -75,7 +75,8 @@ write_files:
content: |
[Unit]
Description=Download and install k8s binaries and configurations
After=network-online.target
After=network-online.target containerd.target
Wants=network-online.target containerd.target
[Service]
Type=oneshot

View File

@ -69,7 +69,8 @@ write_files:
content: |
[Unit]
Description=Download and install k8s binaries and configurations
After=network-online.target
After=network-online.target containerd.target
Wants=network-online.target containerd.target
[Service]
Type=oneshot