init
This commit is contained in:
20
rbac/cronjob.yaml
Normal file
20
rbac/cronjob.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: kraftfahrt-scaler
|
||||
spec:
|
||||
schedule: "0 0 * * * "
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
serviceAccount: deployment-scaler
|
||||
containers:
|
||||
- name: scale-checka
|
||||
image: trion/curl:1
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
# if restendpoint == true ; then curl https://kubernetes.default deployment replicas=10
|
||||
restartPolicy: OnFailure
|
||||
Reference in New Issue
Block a user