mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 20:59:42 +00:00
Compare commits
10 commits
eae23695fb
...
d80ed0a555
| Author | SHA1 | Date | |
|---|---|---|---|
| d80ed0a555 | |||
| dbfe86f3be | |||
| 0d31951c04 | |||
| 9e06247154 | |||
| 19a6cefcfb | |||
| 0f8184907b | |||
| 2940da3954 | |||
| 86749d3731 | |||
| a1fa557ed0 | |||
| bc398a39c2 |
2 changed files with 70 additions and 45 deletions
24
workloads/nextcloud/nextcloud-cron.yml
Normal file
24
workloads/nextcloud/nextcloud-cron.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: nextcloudcron
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
schedule: "*/5 * * * *"
|
||||
concurrencyPolicy: Forbid
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: busybox
|
||||
image: busybox:1.31.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- "wget"
|
||||
- "http://nextcloud/cron.php"
|
||||
- "-o"
|
||||
- "/dev/null"
|
||||
- "-O"
|
||||
- "-"
|
||||
restartPolicy: Never
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
|
@ -16,7 +17,7 @@ spec:
|
|||
app: nextcloud
|
||||
spec:
|
||||
containers:
|
||||
- image: nextcloud:17.0.3-apache
|
||||
- image: nextcloud:18.0.1-apache
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: nextcloud
|
||||
env:
|
||||
|
|
@ -47,7 +48,7 @@ spec:
|
|||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 80
|
||||
initialDelaySeconds: 15
|
||||
initialDelaySeconds: 600
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue