Created
July 13, 2020 19:56
-
-
Save EmilyM1/c36082db367def141d0975491b7953ca to your computer and use it in GitHub Desktop.
NFS Server Deploy Resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: nfs | |
labels: | |
role: nfs-server | |
spec: | |
capacity: | |
storage: 5Gi | |
accessModes: | |
- ReadWriteMany | |
storageClassName: nfs-server | |
nfs: | |
path: "/" | |
server: REPLACEME | |
persistentVolumeReclaimPolicy: Delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nfs-server | |
labels: | |
role: nfs-server | |
spec: | |
containers: | |
- name: nfs-server | |
image: quay.io/openshifttest/nfs-server | |
imagePullPolicy: IfNotPresent | |
ports: | |
- name: nfs | |
containerPort: 2049 | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: "/mnt/data" | |
name: local | |
volumes: | |
- name: local | |
emptyDir: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nfs-service | |
labels: | |
role: nfs-server | |
spec: | |
ports: | |
- name: 2049-tcp | |
port: 2049 | |
protocol: TCP | |
targetPort: 2049 | |
selector: | |
role: nfs-server | |
sessionAffinity: None | |
type: ClusterIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
metadata: | |
name: nfs-server | |
provisioner: example.com/nfs | |
parameters: | |
archiveOnDelete: "false" | |
reclaimPolicy: Delete | |
volumeBindingMode: Immediate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@EmilyM1 Are there any lines in these yaml files that need callouts with further information? Thanks!