change nfs provisioner
This commit is contained in:
42
cluster/nfs-storage-appset.yaml
Normal file
42
cluster/nfs-storage-appset.yaml
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -12,4 +12,4 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 100Gi
|
storage: 100Gi
|
||||||
storageClassName: synology-nfs-storage
|
storageClassName: synology-nfs
|
||||||
|
|||||||
Reference in New Issue
Block a user