Skip to content

Commit

Permalink
Issue #1694 run-policy-manager improvements (#1704)
Browse files Browse the repository at this point in the history
* Issue #1694 Add required toleration to k8s spec to bound `run-policy-manager` pods only to master node

* Issue #1694 Tail log file to expose it to pod's log; add wait command to the end of init script to prevent the pod from finishing
  • Loading branch information
Wedds authored Dec 29, 2020
1 parent 3577796 commit 4329809
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
spec:
nodeSelector:
cloud-pipeline/cp-run-policy-manager: "true"
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: cp-run-policy-manager
image: ${CP_DOCKER_DIST_SRV}lifescience/cloud-pipeline:run-policy-manager-$CP_VERSION
Expand Down
2 changes: 2 additions & 0 deletions deploy/docker/cp-run-policy-manager/init
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ function sigterm_handler {
}

trap 'kill $! ; sigterm_handler' SIGTERM
tail -F $RUN_POLICY_MANAGER_LOG_FILE &
wait "$!"

0 comments on commit 4329809

Please sign in to comment.