diff --git a/assets/terraform-modules/packet/flatcar-linux/kubernetes/cl/controller.yaml.tmpl b/assets/terraform-modules/packet/flatcar-linux/kubernetes/cl/controller.yaml.tmpl index 4ec75eb59..e60ec265b 100644 --- a/assets/terraform-modules/packet/flatcar-linux/kubernetes/cl/controller.yaml.tmpl +++ b/assets/terraform-modules/packet/flatcar-linux/kubernetes/cl/controller.yaml.tmpl @@ -79,6 +79,8 @@ systemd: Description=Flatcar Metadata Agent [Service] Type=oneshot + Restart=on-failure + RestartSec=5s Environment=COREOS_METADATA_OPT_PROVIDER=--cmdline ExecStart=/usr/bin/coreos-metadata $${COREOS_METADATA_OPT_PROVIDER} --attributes=/run/metadata/flatcar [Install] diff --git a/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl/worker.yaml.tmpl b/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl/worker.yaml.tmpl index 4638ef05b..38af8c8ee 100644 --- a/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl/worker.yaml.tmpl +++ b/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl/worker.yaml.tmpl @@ -41,6 +41,8 @@ systemd: Description=Flatcar Container Linux Metadata Agent [Service] Type=oneshot + Restart=on-failure + RestartSec=5s Environment=COREOS_METADATA_OPT_PROVIDER=--cmdline ExecStart=/usr/bin/coreos-metadata $${COREOS_METADATA_OPT_PROVIDER} --attributes=/run/metadata/flatcar [Install]