зеркало из https://github.com/microsoft/pai.git
refactor watchdog folder (#1342)
This commit is contained in:
Родитель
a92ad3c37a
Коммит
a949680ddf
|
@ -1,20 +0,0 @@
|
|||
# Copyright (c) Microsoft Corporation
|
||||
# All rights reserved.
|
||||
#
|
||||
# MIT License
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
||||
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
||||
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
|
||||
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
copy-list:
|
||||
- src: ../prometheus/exporter
|
||||
dst: src/watchdog/copied_file
|
|
@ -19,4 +19,4 @@ FROM python:2.7
|
|||
|
||||
RUN pip install PyYAML requests paramiko prometheus_client
|
||||
|
||||
COPY copied_file/exporter/watchdog.py /
|
||||
COPY src/watchdog.py /
|
|
@ -22,5 +22,4 @@ pushd $(dirname "$0") > /dev/null
|
|||
echo "Call stop script to stop all service first"
|
||||
/bin/bash stop.sh || exit $?
|
||||
|
||||
|
||||
popd > /dev/null
|
|
@ -17,18 +17,16 @@
|
|||
|
||||
prerequisite:
|
||||
- cluster-configuration
|
||||
- drivers
|
||||
|
||||
template-list:
|
||||
- watchdog-configmap.yaml
|
||||
- watchdog.yaml
|
||||
- refresh.sh
|
||||
|
||||
start-script: start.sh
|
||||
stop-script: stop.sh
|
||||
delete-script: delete.sh
|
||||
refresh-script: refresh.sh
|
||||
upgraded-script: upgraded.sh
|
||||
|
||||
|
||||
deploy-rules:
|
||||
in: pai-master
|
|
@ -19,11 +19,6 @@
|
|||
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
INSTANCES="daemonset/watchdog
|
||||
deployment/watchdog
|
||||
configmap/watchdog
|
||||
"
|
||||
|
||||
for instance in ${INSTANCES}; do
|
||||
kubectl delete --ignore-not-found --now ${instance}
|
||||
done
|
||||
kubectl delete --ignore-not-found --now daemonset/watchdog
|
||||
kubectl delete --ignore-not-found --now deployment/watchdog
|
||||
kubectl delete --ignore-not-found --now configmap/watchdog
|
Загрузка…
Ссылка в новой задаче