Skip to content

Commit

Permalink
Wait for containerd installation in GCE scripts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bobbypage committed Feb 14, 2022
1 parent 0475ec3 commit 5f33a51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contrib/gce/cloud-init/master.yaml
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion contrib/gce/cloud-init/node.yaml
Expand Up @@ -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
Expand Down

0 comments on commit 5f33a51

Please sign in to comment.