Skip to content

Instantly share code, notes, and snippets.

@emreozkangit
Created April 27, 2020 13:58
Show Gist options
  • Save emreozkangit/b08e767e76f48a858251b9cb24ba0809 to your computer and use it in GitHub Desktop.
Save emreozkangit/b08e767e76f48a858251b9cb24ba0809 to your computer and use it in GitHub Desktop.
local-fs
cat <<EOF | oc create -n local-storage -f -
apiVersion: local.storage.openshift.io/v1
kind: LocalVolume
metadata:
name: local-fs
namespace: local-storage
spec:
nodeSelector:
nodeSelectorTerms:
- matchExpressions:
- key: cluster.ocs.openshift.io/openshift-storage
operator: Exists
storageClassDevices:
- storageClassName: local-fs
fsType: xfs
volumeMode: Filesystem
devicePaths:
- /dev/sdc
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment