Reconfigure Lighttpd storage
This commit is contained in:
parent
4d680ef046
commit
818825f13c
17
services/Lighttpd/application-lighttpd.yaml
Normal file
17
services/Lighttpd/application-lighttpd.yaml
Normal 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
|
@ -30,8 +30,6 @@ spec:
|
|||||||
subPath: .htpasswd
|
subPath: .htpasswd
|
||||||
- name: configmap-lighttpd-vhosts
|
- name: configmap-lighttpd-vhosts
|
||||||
mountPath: /etc/lighttpd/vhosts.d
|
mountPath: /etc/lighttpd/vhosts.d
|
||||||
- name: flexvolsmb-lighttpd-data
|
|
||||||
mountPath: /data/scripts
|
|
||||||
- name: flexvolsmb-lighttpd-websites
|
- name: flexvolsmb-lighttpd-websites
|
||||||
mountPath: /var/www/
|
mountPath: /var/www/
|
||||||
volumes:
|
volumes:
|
||||||
@ -41,9 +39,6 @@ spec:
|
|||||||
- name: configmap-lighttpd-vhosts
|
- name: configmap-lighttpd-vhosts
|
||||||
configMap:
|
configMap:
|
||||||
name: configmap-lighttpd-vhosts
|
name: configmap-lighttpd-vhosts
|
||||||
- name: flexvolsmb-lighttpd-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: flexvolsmb-lighttpd-data
|
|
||||||
- name: flexvolsmb-lighttpd-websites
|
- name: flexvolsmb-lighttpd-websites
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: flexvolsmb-lighttpd-websites
|
claimName: flexvolsmb-lighttpd-websites
|
||||||
|
@ -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
|
|
@ -14,5 +14,5 @@ spec:
|
|||||||
name: flexvolsmb-credentials
|
name: flexvolsmb-credentials
|
||||||
options:
|
options:
|
||||||
opts: file_mode=0777,dir_mode=0777,iocharset=utf8,nobrl
|
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
|
share: /K3s.Volumes/lighttpd/websites
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user