Send node startup scripts to console and journal

This commit is contained in:
Karan Goel 2020-10-05 13:25:28 -07:00
parent 5e44d8ebaf
commit f707db32cc

View File

@ -19,6 +19,7 @@ write_files:
ExecStartPre=/bin/bash -c 'OPT=""; if curl --help | grep -q -- "--retry-connrefused"; then OPT="--retry-connrefused"; fi; /usr/bin/curl --fail --retry 5 --retry-delay 3 $OPT --silent --show-error -H "X-Google-Metadata-Request: True" -o /home/kubernetes/bin/configure.sh http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh'
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure.sh
ExecStart=/home/kubernetes/bin/configure.sh
StandardOutput=journal+console
[Install]
WantedBy=kubernetes.target
@ -36,6 +37,7 @@ write_files:
RemainAfterExit=yes
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure-helper.sh
ExecStart=/home/kubernetes/bin/configure-helper.sh
StandardOutput=journal+console
[Install]
WantedBy=kubernetes.target