We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6fcf6b commit 00164c1Copy full SHA for 00164c1
spotdrain.service
@@ -8,6 +8,7 @@ Environment=SPOTDRAIN_NOMAD_TOKEN=
8
Environment=DD_CLIENT_APP_KEY=
9
Environment=DD_CLIENT_API_KEY=
10
Environment=DD_ENV=
11
+ExecCondition=/bin/sh -c 'test $(curl -s --fail http://169.254.169.254/latest/meta-data/instance-life-cycle) = "spot"'
12
ExecStart=/opt/spotdrain/bin/spotdrain
13
Restart=always
14
RestartSec=45
0 commit comments