mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
get rid of longhorn
This commit is contained in:
+8
-10
@@ -15,7 +15,7 @@ spec:
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: configs
|
||||
claimName: configs-nfs
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: downloads-nfs
|
||||
@@ -190,7 +190,7 @@ spec:
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: configs
|
||||
claimName: configs-nfs
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: downloads-nfs
|
||||
@@ -404,7 +404,7 @@ spec:
|
||||
volumes:
|
||||
- name: nextcloud-config
|
||||
persistentVolumeClaim:
|
||||
claimName: configs
|
||||
claimName: configs-nfs
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-nfs
|
||||
@@ -423,10 +423,10 @@ spec:
|
||||
mountPath: /data
|
||||
containers:
|
||||
- name: nextcloud
|
||||
image: wonderfall/nextcloud:21
|
||||
image: ghcr.io/wonderfall/nextcloud:21
|
||||
securityContext:
|
||||
# nextcloud uses www-data which id is 33
|
||||
runAsUser: 0
|
||||
runAsUser: 1000
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8888
|
||||
@@ -437,8 +437,6 @@ spec:
|
||||
value: "1000"
|
||||
- name: GID
|
||||
value: "1000"
|
||||
- name: NEXTCLOUD_UPDATE
|
||||
value: "1"
|
||||
- name: ADMIN_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
@@ -470,10 +468,10 @@ spec:
|
||||
volumeMounts:
|
||||
- name: nextcloud-config
|
||||
subPath: nextcloud/config
|
||||
mountPath: /config
|
||||
mountPath: /nextcloud/config
|
||||
- name: nextcloud-config
|
||||
subPath: nextcloud/apps
|
||||
mountPath: /apps2
|
||||
mountPath: /nextcloud/apps2
|
||||
- name: nextcloud-config
|
||||
subPath: nextcloud/apps
|
||||
mountPath: /var/www/html/apps
|
||||
@@ -550,7 +548,7 @@ spec:
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: configs
|
||||
claimName: configs-nfs
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: downloads-nfs
|
||||
|
||||
@@ -36,12 +36,12 @@ spec:
|
||||
cpu: 100m
|
||||
memory: 200Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 500Mi
|
||||
cpu: 300m
|
||||
memory: 526Mi
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: n8n
|
||||
claimName: nfs-n8n
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nfs-n8n
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: 192.168.1.4
|
||||
path: "/n8n"
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
namespace: "home-apps"
|
||||
name: "nfs-n8n"
|
||||
spec:
|
||||
storageClassName: ""
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
@@ -0,0 +1,26 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nfs-redis
|
||||
spec:
|
||||
capacity:
|
||||
storage: 50Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: 192.168.1.4
|
||||
path: "/redis"
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
namespace: "db"
|
||||
name: "nfs-redis"
|
||||
spec:
|
||||
storageClassName: ""
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
+11
-1
@@ -2,7 +2,7 @@
|
||||
usePassword: false
|
||||
|
||||
persistence:
|
||||
existingClaim: redis
|
||||
existingClaim: nfs-redis
|
||||
volumePermissions:
|
||||
enabled: true
|
||||
# securityContext:
|
||||
@@ -14,3 +14,13 @@ metrics:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: prometheus
|
||||
|
||||
master:
|
||||
persistence:
|
||||
enabled: true
|
||||
storageClass: nfs
|
||||
existingClaim: nfs-redis
|
||||
|
||||
replica:
|
||||
persistence:
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user