Skip to content

Commit

Permalink
moving argo node-monitors into their own folder as we will only want …
Browse files Browse the repository at this point in the history
…to apply these monitors in environments with argo workflows. Also, edited the cron timing for the node-not-ready cron.
  • Loading branch information
EliseCastle23 committed Oct 30, 2023
1 parent e0dc474 commit 83be969
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
4 changes: 2 additions & 2 deletions kube/services/node-monitors/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ spec:
source:
repoURL: https://github.com/uc-cdis/cloud-automation.git
targetRevision: master
path: kube/services/node-monitor
path: kube/services/node-monitors/
directory:
exclude: "application.yaml"
exclude: ["application.yaml", "argo-node-age/"]
syncPolicy:
automated:
prune: true
Expand Down
22 changes: 22 additions & 0 deletions kube/services/node-monitors/argo-monitors/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: node-monitor-argo-application
namespace: argocd
spec:
destination:
namespace: default
server: https://kubernetes.default.svc
project: default
source:
repoURL: https://github.com/uc-cdis/cloud-automation.git
targetRevision: master
path: kube/services/node-monitors/argo-monitors/
directory:
exclude: "application.yaml"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: node-monitor-cron
name: argo-node-age
namespace: default
spec:
schedule: "*/5 * * * *"
Expand Down Expand Up @@ -55,4 +55,4 @@ spec:
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"WARNING: Node \`${NODE_NAME}\` is older than 3 hours!\"}" $SLACK_WEBHOOK_URL
fi
done
restartPolicy: OnFailure
restartPolicy: OnFailure
2 changes: 1 addition & 1 deletion kube/services/node-monitors/node-not-ready.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: node-not-ready-cron
namespace: default
spec:
schedule: "*/5 * * * *"
schedule: "*/30 * * * *"
jobTemplate:
spec:
template:
Expand Down

0 comments on commit 83be969

Please sign in to comment.