From 0f974a09766c2f194d92ea6f646bf575176aaa74 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Tue, 19 Apr 2022 16:26:06 +1000 Subject: [PATCH] update files pv --- media/media-pv.yaml | 14 ++++++++++++++ media/media.yaml | 5 +++++ oauth2-proxy-config.yaml | 7 +------ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/media/media-pv.yaml b/media/media-pv.yaml index 880ab0d..4f82c8e 100644 --- a/media/media-pv.yaml +++ b/media/media-pv.yaml @@ -81,3 +81,17 @@ spec: resources: requests: storage: 500Gi + +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + namespace: "media" + name: "aria2-cache" +spec: + storageClassName: "nfs-client" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi diff --git a/media/media.yaml b/media/media.yaml index 535c297..126640b 100644 --- a/media/media.yaml +++ b/media/media.yaml @@ -567,6 +567,9 @@ spec: - name: downloads persistentVolumeClaim: claimName: downloads-nfs + - name: aria2-cache + persistentVolumeClaim: + claimName: aria2-cache containers: - name: openvpn image: qmcgaw/gluetun:latest @@ -621,6 +624,8 @@ spec: mountPath: /app/conf - name: downloads mountPath: /data + - name: aria2-cache + mountPath: /app/.cache - name: config subPath: files/filebrowser.db mountPath: /app/filebrowser.db diff --git a/oauth2-proxy-config.yaml b/oauth2-proxy-config.yaml index 5cc358d..2f7f0d8 100644 --- a/oauth2-proxy-config.yaml +++ b/oauth2-proxy-config.yaml @@ -1,10 +1,6 @@ config: existingSecret: oauth2-proxy-creds -image: - repository: quay.io/oauth2-proxy/oauth2-proxy - tag: v7.1.2 - extraArgs: whitelist-domain: .junv.me cookie-domain: .junv.me @@ -32,5 +28,4 @@ ingress: erviceAccount: enable: false - -replicaCount: 3 +replicaCount: 1