mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 22:09:41 +00:00
Compare commits
No commits in common. "d80ed0a55552eb6367623ea6c3c2ab2da771a36d" and "eae23695fb4fb75c223c7e12119ad7d0e38fac62" have entirely different histories.
d80ed0a555
...
eae23695fb
2 changed files with 45 additions and 70 deletions
|
|
@ -1,24 +0,0 @@
|
||||||
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,4 +1,3 @@
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -17,49 +16,49 @@ spec:
|
||||||
app: nextcloud
|
app: nextcloud
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: nextcloud:18.0.1-apache
|
- image: nextcloud:17.0.3-apache
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: nextcloud
|
value: nextcloud
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
value: postgres:5432
|
value: postgres:5432
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres
|
name: postgres
|
||||||
key: POSTGRES_USER
|
key: POSTGRES_USER
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres
|
name: postgres
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
- name: REDIS_HOST
|
- name: REDIS_HOST
|
||||||
value: redis
|
value: redis
|
||||||
- name: REDIS_HOST_PORT
|
- name: REDIS_HOST_PORT
|
||||||
value: "6379"
|
value: "6379"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "1024Mi"
|
memory: "1024Mi"
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
limits:
|
limits:
|
||||||
memory: "4096Mi"
|
memory: "4096Mi"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 80
|
port: 80
|
||||||
initialDelaySeconds: 600
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 2
|
failureThreshold: 2
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
mountPath: /var/www/html
|
mountPath: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /opt/nextcloud/pod
|
path: /opt/nextcloud/pod
|
||||||
type: Directory
|
type: Directory
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue