Skip to content
Snippets Groups Projects
Verified Commit f47865be authored by Eunhak Lee's avatar Eunhak Lee
Browse files

feat: hwinfo-daemon 재시작 지원

parent 4ade8a75
No related branches found
No related tags found
No related merge requests found
......@@ -17,3 +17,10 @@ def be():
output = output.decode()
return output
@app.route("/hwinfo")
def be():
print("Restarting hwinfo-daemon")
output = subprocess.check_output(["bash", "-c", "./update_hwinfo.sh"], stderr=subprocess.STDOUT)
output = output.decode()
return output
microk8s kubectl rollout restart deploy/hwinfo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment