Reconfigure Lighttpd storage

This commit is contained in:
Danny Bessems 2025-04-28 20:28:06 +10:00
parent 4d680ef046
commit 818825f13c
5 changed files with 18 additions and 36 deletions

View File

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: lighttpd
namespace: argo-cd
spec:
destination:
namespace: lighttpd
server: https://kubernetes.default.svc
project: default
source:
path: services/Lighttpd
repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog.git
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true

View File

@ -30,8 +30,6 @@ spec:
subPath: .htpasswd
- name: configmap-lighttpd-vhosts
mountPath: /etc/lighttpd/vhosts.d
- name: flexvolsmb-lighttpd-data
mountPath: /data/scripts
- name: flexvolsmb-lighttpd-websites
mountPath: /var/www/
volumes:
@ -41,9 +39,6 @@ spec:
- name: configmap-lighttpd-vhosts
configMap:
name: configmap-lighttpd-vhosts
- name: flexvolsmb-lighttpd-data
persistentVolumeClaim:
claimName: flexvolsmb-lighttpd-data
- name: flexvolsmb-lighttpd-websites
persistentVolumeClaim:
claimName: flexvolsmb-lighttpd-websites

View File

@ -1,18 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-lighttpd-data
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-lighttpd-data
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/lighttpd/data

View File

@ -14,5 +14,5 @@ spec:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8,nobrl
server: 192.168.154.225
server: 192.168.154.195
share: /K3s.Volumes/lighttpd/websites

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-lighttpd-data
namespace: lighttpd
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-lighttpd-data
resources:
requests:
storage: 1Gi