Reconfigure LdapWrapper PV/PVC

This commit is contained in:
Danny Bessems 2025-05-23 14:44:24 +10:00
parent 32a58b7a17
commit cf6bc7bcce
6 changed files with 42 additions and 7 deletions

View File

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ldapwrapper
namespace: argo-cd
spec:
destination:
server: https://kubernetes.default.svc
namespace: ldapwrapper
project: default
sources:
- repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog
path: services/LdapWrapper
targetRevision: HEAD
# - repoURL: https://github.com/djpbessems/Kubernetes.K3s.installLog
# path: services/LdapWrapper
# targetRevision: master

View File

@ -31,8 +31,8 @@ spec:
name: ldap
volumeMounts:
- mountPath: /app/.cache
name: longhorn-ldapwrapper-cache
name: flexvolsmb-ldapwrapper-cache
volumes:
- name: longhorn-ldapwrapper-cache
- name: flexvolsmb-ldapwrapper-cache
persistentVolumeClaim:
claimName: longhorn-ldapwrapper-cache
claimName: flexvolsmb-ldapwrapper-cache

View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-ldapwrapper-cache
namespace: ldapwrapper
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-ldapwrapper-cache
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8,cache=none,nobrl
server: 192.168.154.195
share: /K3s.Volumes/ldapwrapper/cache

View File

@ -1,13 +1,12 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: longhorn-ldapwrapper-cache
name: flexvolsmb-ldapwrapper-cache
namespace: ldapwrapper
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
- ReadWriteMany
storageClassName: flexvolsmb-ldapwrapper-cache
resources:
requests:
storage: 1Gi