forked from catalin/fukuops
feat(k8s/services/dcsi): add basefiles
This commit is contained in:
commit
948b96586e
4 changed files with 97 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.idea/
|
||||||
21
k8s/argo-apps/democratic-csi.yaml
Normal file
21
k8s/argo-apps/democratic-csi.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: democratic-csi
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
name: ''
|
||||||
|
namespace: 'dcsi'
|
||||||
|
server: 'https://kubernetes.default.svc'
|
||||||
|
source:
|
||||||
|
path:
|
||||||
|
repoURL: 'https://gitlab.com/fukurokuju/k3s/services.git'
|
||||||
|
targetRevision: main
|
||||||
|
sources: []
|
||||||
|
project: roboces
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: false
|
||||||
|
selfHeal: false
|
||||||
|
|
||||||
35
k8s/services/dcsi/test.yaml
Normal file
35
k8s/services/dcsi/test.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nginx
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nginx
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nfs-pvc
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: nfs-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: "truenas-nfs-csi"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
40
k8s/services/dcsi/truenas-nfs.yaml
Normal file
40
k8s/services/dcsi/truenas-nfs.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
csiDriver:
|
||||||
|
name: "org.dcsi.nfs"
|
||||||
|
|
||||||
|
storageClasses:
|
||||||
|
- name: truenas-nfs-csi
|
||||||
|
defaultClass: false
|
||||||
|
reclaimPolicy: Delete
|
||||||
|
volumeBindingMode: Immediate
|
||||||
|
allowVolumeExpansion: true
|
||||||
|
parameters:
|
||||||
|
fsType: nfs
|
||||||
|
mountOptions:
|
||||||
|
- noatime
|
||||||
|
- nfsvers=4.2
|
||||||
|
driver:
|
||||||
|
config:
|
||||||
|
driver: freenas-api-nfs
|
||||||
|
instance_id:
|
||||||
|
httpConnection:
|
||||||
|
protocol: http
|
||||||
|
host: 192.168.1.3
|
||||||
|
port: 80
|
||||||
|
apiKey: "bogus"
|
||||||
|
allowInsecure: true
|
||||||
|
zfs:
|
||||||
|
datasetParentName: pool1/dcsi/a/vols
|
||||||
|
detachedSnapshotsDatasetParentName: pool1/dcsi/a/snaps
|
||||||
|
datasetEnableQuotas: true
|
||||||
|
datasetEnableReservation: false
|
||||||
|
datasetPermissionsMode: "0777"
|
||||||
|
datasetPermissionsUser: 0
|
||||||
|
datasetPermissionsGroup: 0
|
||||||
|
|
||||||
|
nfs:
|
||||||
|
shareHost: 192.168.1.3
|
||||||
|
shareAlldirs: false
|
||||||
|
shareAllowedHosts: []
|
||||||
|
shareAllowedNetworks: []
|
||||||
|
shareMapallUser: apps
|
||||||
|
shareMapallGroup: apps
|
||||||
Loading…
Add table
Add a link
Reference in a new issue