change nfs provisioner

This commit is contained in:
2025-08-01 09:26:48 -05:00
parent 99fb15f8f0
commit 4fd272ddf7
4 changed files with 45 additions and 36 deletions

View File

@@ -0,0 +1,42 @@
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: nfs-storage
namespace: openshift-gitops
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- clusters: {} # Variable is .name
template:
metadata:
name: '{{.name}}-nfs-storage'
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
destination:
name: '{{.name}}'
namespace: openshift-nfs-storage
project: default
source:
path: cluster/nfs-storage
repoURL: https://github.com/rblundon/homelab.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- RespectIgnoreDifferences=true
- CreateNamespace=true
managedNamespaceMetadata:
labels:
argocd.argoproj.io/managed-by: openshift-gitops
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /spec/replicas

View File

@@ -30,9 +30,9 @@ spec:
- name: NFS_SERVER - name: NFS_SERVER
value: 10.10.121.35 value: 10.10.121.35
- name: NFS_PATH - name: NFS_PATH
value: /volume1/nfs-ocp value: /volume1/openshift-nfs
volumes: volumes:
- name: nfs-client-root - name: nfs-client-root
nfs: nfs:
server: 10.10.121.35 server: 10.10.121.35
path: /volume1/nfs-ocp path: /volume1/openshift-nfs

View File

@@ -1,33 +0,0 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nfs-storage
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
destination:
name: in-cluster
namespace: openshift-nfs-storage
project: default
source:
path: cluster-applications/nfs-storage
repoURL: git@github.com:rblundon/MK-Labs.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- RespectIgnoreDifferences=true
- CreateNamespace=true
managedNamespaceMetadata:
labels:
argocd.argoproj.io/managed-by: openshift-gitops
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /spec/replicas

View File

@@ -12,4 +12,4 @@ spec:
resources: resources:
requests: requests:
storage: 100Gi storage: 100Gi
storageClassName: synology-nfs-storage storageClassName: synology-nfs