diff --git a/services/Gotify/application-gotify.yaml b/services/Gotify/application-gotify.yaml index c86daaf..1a20390 100644 --- a/services/Gotify/application-gotify.yaml +++ b/services/Gotify/application-gotify.yaml @@ -8,10 +8,11 @@ spec: namespace: gotify server: https://kubernetes.default.svc project: default - source: - path: services/Gotify - repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog.git - targetRevision: HEAD syncPolicy: - automated: - selfHeal: true + automated: {} + syncOptions: + - CreateNamespace=true + sources: + - repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog + path: services/Gotify + targetRevision: HEAD diff --git a/services/Gotify/persistentvolume-csismb-gotify-data.yaml b/services/Gotify/persistentvolume-csismb-gotify-data.yaml index 682e6ac..bb0ad73 100644 --- a/services/Gotify/persistentvolume-csismb-gotify-data.yaml +++ b/services/Gotify/persistentvolume-csismb-gotify-data.yaml @@ -28,4 +28,4 @@ spec: subDir: gotify/data nodeStageSecretRef: name: smb-credentials - namespace: argus + namespace: gotify diff --git a/services/Lighttpd/application-lighttpd.yaml b/services/Lighttpd/application-lighttpd.yaml index f4ed58c..aa4c5ea 100644 --- a/services/Lighttpd/application-lighttpd.yaml +++ b/services/Lighttpd/application-lighttpd.yaml @@ -8,10 +8,11 @@ spec: 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 + automated: {} + syncOptions: + - CreateNamespace=true + sources: + - repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog + path: services/Lighttpd + targetRevision: HEAD diff --git a/services/Lighttpd/deployment-lighttpd.yaml b/services/Lighttpd/deployment-lighttpd.yaml index 7dde77f..1afb106 100644 --- a/services/Lighttpd/deployment-lighttpd.yaml +++ b/services/Lighttpd/deployment-lighttpd.yaml @@ -30,7 +30,7 @@ spec: subPath: .htpasswd - name: configmap-lighttpd-vhosts mountPath: /etc/lighttpd/vhosts.d - - name: flexvolsmb-lighttpd-websites + - name: csismb-lighttpd-websites mountPath: /var/www/ volumes: - name: configmap-lighttpd-conf @@ -39,6 +39,6 @@ spec: - name: configmap-lighttpd-vhosts configMap: name: configmap-lighttpd-vhosts - - name: flexvolsmb-lighttpd-websites + - name: csismb-lighttpd-websites persistentVolumeClaim: - claimName: flexvolsmb-lighttpd-websites + claimName: csismb-lighttpd-websites diff --git a/services/Lighttpd/persistentvolume-csismb-lighttpd-websites.yaml b/services/Lighttpd/persistentvolume-csismb-lighttpd-websites.yaml new file mode 100644 index 0000000..e7ff2e2 --- /dev/null +++ b/services/Lighttpd/persistentvolume-csismb-lighttpd-websites.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + annotations: + pv.kubernetes.io/provisioned-by: smb.csi.k8s.io + name: csismb-lighttpd-websites +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + storageClassName: csismb-lighttpd-websites + mountOptions: + - dir_mode=0777 + - file_mode=0777 + - nobrl + - cache=none + - mfsymlinks + - noserverino # required to prevent data corruption + csi: + driver: smb.csi.k8s.io + # volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name} + # make sure this value is unique for every share in the cluster + volumeHandle: 192.168.154.195#lighttpd#websites + volumeAttributes: + source: //192.168.154.195/K3s.Volumes + subDir: lighttpd/websites + nodeStageSecretRef: + name: smb-credentials + namespace: lighttpd diff --git a/services/Lighttpd/persistentvolume-flexvolsmb-lighttpd-websites.yaml b/services/Lighttpd/persistentvolume-flexvolsmb-lighttpd-websites.yaml deleted file mode 100644 index c29a1c6..0000000 --- a/services/Lighttpd/persistentvolume-flexvolsmb-lighttpd-websites.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: flexvolsmb-lighttpd-websites -spec: - capacity: - storage: 1Gi - accessModes: - - ReadWriteMany - storageClassName: flexvolsmb-lighttpd-websites - flexVolume: - driver: mount/smb - secretRef: - name: flexvolsmb-credentials - options: - opts: file_mode=0777,dir_mode=0777,iocharset=utf8,nobrl - server: 192.168.154.195 - share: /K3s.Volumes/lighttpd/websites diff --git a/services/Lighttpd/persistentvolumeclaim-flexvolsmb-lighttpd-websites.yaml b/services/Lighttpd/persistentvolumeclaim-csismb-lighttpd-websites.yaml similarity index 65% rename from services/Lighttpd/persistentvolumeclaim-flexvolsmb-lighttpd-websites.yaml rename to services/Lighttpd/persistentvolumeclaim-csismb-lighttpd-websites.yaml index db2837e..54be922 100644 --- a/services/Lighttpd/persistentvolumeclaim-flexvolsmb-lighttpd-websites.yaml +++ b/services/Lighttpd/persistentvolumeclaim-csismb-lighttpd-websites.yaml @@ -1,12 +1,12 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: flexvolsmb-lighttpd-websites + name: csismb-lighttpd-websites namespace: lighttpd spec: accessModes: - ReadWriteMany - storageClassName: flexvolsmb-lighttpd-websites + storageClassName: csismb-lighttpd-websites resources: requests: storage: 1Gi diff --git a/services/Lighttpd/sealedsecret-flexvolsmb-credentials.yaml b/services/Lighttpd/sealedsecret-flexvolsmb-credentials.yaml deleted file mode 100644 index 770ea4c..0000000 --- a/services/Lighttpd/sealedsecret-flexvolsmb-credentials.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: bitnami.com/v1alpha1 -kind: SealedSecret -metadata: - creationTimestamp: null - name: flexvolsmb-credentials - namespace: lighttpd -spec: - encryptedData: - password: AgAc9UFx4rs5SmuntY7dUxf80geDlDc/zn9SaGWu4Z5n9aWJZZWlrAAq081fTeb4jjiR3bjdlKqgwLkKiIgkYlp1nBgfLsLo5rE49c8eo+s0x+0L2gVj9ArqHWD5hw76evnD73AU3zuQGNoHg7x7iUmyCtBk9kLDQTXWsLkSnb0HLB7knOqQjK8C1uC4eTdjQRLmhevQAl/oxiDZ8lf/xkj7GH3o0Gp6DKiGetnKYsaJJGPeImdAQzHMlH7F0ypQGMey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XbHQuNnyCc2R//ybPev+CIyGvD2uZwN5b/8nKbABweLPRKpRJlM2v4e1N/Y70hxSOIN5iFd7FSG/8QV0U8Jm6ZI7xkoHAAitu8A2U= - template: - metadata: - creationTimestamp: null - name: flexvolsmb-credentials - namespace: lighttpd - type: mount/smb