initial migration
This commit is contained in:
13
infrastructure/nfs/USAGE.md
Normal file
13
infrastructure/nfs/USAGE.md
Normal file
@@ -0,0 +1,13 @@
|
||||
```
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: test-claim
|
||||
spec:
|
||||
storageClassName: nfs-client
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Mi
|
||||
```
|
9
infrastructure/nfs/kustomization.yaml
Normal file
9
infrastructure/nfs/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace: nfs-provisioner
|
||||
bases:
|
||||
- github.com/kubernetes-sigs/nfs-subdir-external-provisioner//deploy
|
||||
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
patchesStrategicMerge:
|
||||
- nfs_values.yaml
|
5
infrastructure/nfs/namespace.yaml
Normal file
5
infrastructure/nfs/namespace.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
# namespace.yaml
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: nfs-provisioner
|
21
infrastructure/nfs/nfs_values.yaml
Normal file
21
infrastructure/nfs/nfs_values.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: nfs-client-provisioner
|
||||
name: nfs-client-provisioner
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: nfs-client-provisioner
|
||||
env:
|
||||
- name: NFS_SERVER
|
||||
value: 192.168.1.157
|
||||
- name: NFS_PATH
|
||||
value: /export/kluster/
|
||||
volumes:
|
||||
- name: nfs-client-root
|
||||
nfs:
|
||||
server: 192.168.1.157
|
||||
path: /export/kluster/
|
Reference in New Issue
Block a user