mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 23:09:41 +00:00
Add nextcloud deployment
This commit is contained in:
parent
749543037e
commit
7af7d95965
2 changed files with 65 additions and 1 deletions
64
workloads/nextcloud/nextcloud-deploy.yml
Normal file
64
workloads/nextcloud/nextcloud-deploy.yml
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nextcloud
|
||||||
|
namespace: nextcloud
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nextcloud
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nextcloud
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: nextcloud:17.0.3-apache
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: nextcloud
|
||||||
|
env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: nextcloud
|
||||||
|
- name: POSTGRES_HOST
|
||||||
|
value: postgres:5432
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: postgres
|
||||||
|
key: POSTGRES_USER
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: postgres
|
||||||
|
key: POSTGRES_PASSWORD
|
||||||
|
- name: REDIS_HOST
|
||||||
|
value: redis
|
||||||
|
- name: REDIS_HOST_PORT
|
||||||
|
value: 6379
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "1024Mi"
|
||||||
|
cpu: "100m"
|
||||||
|
limits:
|
||||||
|
memory: "4096Mi"
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 30
|
||||||
|
timeoutSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 2
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: nextcloud-data
|
||||||
|
mountPath: /var/www/html
|
||||||
|
volumes:
|
||||||
|
- name: nextcloud-data
|
||||||
|
hostPath:
|
||||||
|
path: /opt/nextcloud/pod
|
||||||
|
type: Directory
|
||||||
|
|
@ -10,4 +10,4 @@ spec:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 5432
|
port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue