
this splits the giant user-data script into smaller modules. this makes things easier to manage and also permits us to use cloud-config scripts in addition to shell scripts.
16 lines
449 B
Bash
16 lines
449 B
Bash
#!/bin/sh
|
|
|
|
# docker is already enabled and possibly running on centos atomic host
|
|
# so we need to stop it first and delete the docker0 bridge (which will
|
|
# be re-created using the flannel-provided subnet).
|
|
echo stopping docker
|
|
systemctl stop docker
|
|
ip link del docker0
|
|
|
|
echo starting services
|
|
for service in wait-for-flanneld flanneld docker.socket docker kubelet kube-proxy; do
|
|
systemctl enable $service
|
|
systemctl --no-block start $service
|
|
done
|
|
|