File tree Expand file tree Collapse file tree 5 files changed +60
-1
lines changed
cronjobs/ope-notebook-culler Expand file tree Collapse file tree 5 files changed +60
-1
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : CronJob
3
+ metadata :
4
+ name : ope-notebook-culler
5
+ namespace : rhods-notebooks
6
+ spec :
7
+ successfulJobsHistoryLimit : 7
8
+ failedJobsHistoryLimit : 7
9
+ schedule : " 0 7 */2 * *"
10
+ jobTemplate :
11
+ spec :
12
+ template :
13
+ metadata :
14
+ name : ope-notebook-culler
15
+ spec :
16
+ serviceAccountName : ope-notebook-culler
17
+ containers :
18
+ - name : ope-notebook-culler
19
+ resources :
20
+ limits :
21
+ cpu : ' .1'
22
+ memory : 100M
23
+ requests :
24
+ cpu : ' .1'
25
+ memory : 100M
26
+ image : ghcr.io/ocp-on-nerc/bu-rhoai:toolkit
27
+ imagePullPolicy : Always
28
+ env :
29
+ - name : POD_NS
30
+ valueFrom :
31
+ fieldRef :
32
+ fieldPath : metadata.namespace
33
+ command :
34
+ - " /bin/sh"
35
+ - " -ec"
36
+ - " ./ope-notebook-culler.sh"
37
+ restartPolicy : OnFailure
Original file line number Diff line number Diff line change
1
+ apiVersion : kustomize.config.k8s.io/v1beta1
2
+ kind : Kustomization
3
+ resources :
4
+ - cronjob.yaml
5
+ - rolebinding.yaml
6
+ - serviceaccount.yaml
7
+ namespace : rhods-notebooks
Original file line number Diff line number Diff line change
1
+ kind : RoleBinding
2
+ apiVersion : rbac.authorization.k8s.io/v1
3
+ metadata :
4
+ name : ope-notebook-culler
5
+ subjects :
6
+ - kind : ServiceAccount
7
+ name : ope-notebook-culler
8
+ roleRef :
9
+ apiGroup : rbac.authorization.k8s.io
10
+ kind : ClusterRole
11
+ name : edit
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ServiceAccount
3
+ metadata :
4
+ name : ope-notebook-culler
Original file line number Diff line number Diff line change 1
1
FROM quay.io/operate-first/opf-toolbox:v0.8.0
2
2
WORKDIR /shell-scripts
3
3
COPY src/* /shell-scripts
4
- CMD ["/bin/sh" ]
4
+ CMD ["/bin/sh" ]
You can’t perform that action at this time.
0 commit comments