mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
ref config updates Adding generated YAML + modules from the RDS Reorganizing TOC Adding latest RDS updates RDS doc updates RDS YAML updates Shanes review latest updates + new components overview diagram David J's review comments CCS attributes update Ian's review comments adding Hari's deviations update updating 4.14 link URLs Generalizes scope and deviation topics for RAN and Core updates for RDS prod version update deviations wording Updating deviation and scope topics consolidate dev and scope topics + intro Adding link to ztp-site-generate procedure typo final changes for RDS typos Ian's comments update for RDS terminology remove core CRs note add GH core CRs link
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
apiVersion: "local.storage.openshift.io/v1"
|
|
kind: "LocalVolume"
|
|
metadata:
|
|
name: "local-disks"
|
|
namespace: "openshift-local-storage"
|
|
annotations: {}
|
|
spec:
|
|
logLevel: Normal
|
|
managementState: Managed
|
|
storageClassDevices:
|
|
# The list of storage classes and associated devicePaths need to be specified like this example:
|
|
- storageClassName: "example-storage-class"
|
|
volumeMode: Filesystem
|
|
fsType: xfs
|
|
# The below must be adjusted to the hardware.
|
|
# For stability and reliability, it's recommended to use persistent
|
|
# naming conventions for devicePaths, such as /dev/disk/by-path.
|
|
devicePaths:
|
|
- /dev/disk/by-path/pci-0000:05:00.0-nvme-1
|
|
#---
|
|
## How to verify
|
|
## 1. Create a PVC
|
|
# apiVersion: v1
|
|
# kind: PersistentVolumeClaim
|
|
# metadata:
|
|
# name: local-pvc-name
|
|
# spec:
|
|
# accessModes:
|
|
# - ReadWriteOnce
|
|
# volumeMode: Filesystem
|
|
# resources:
|
|
# requests:
|
|
# storage: 100Gi
|
|
# storageClassName: example-storage-class
|
|
#---
|
|
## 2. Create a pod that mounts it
|
|
# apiVersion: v1
|
|
# kind: Pod
|
|
# metadata:
|
|
# labels:
|
|
# run: busybox
|
|
# name: busybox
|
|
# spec:
|
|
# containers:
|
|
# - image: quay.io/quay/busybox:latest
|
|
# name: busybox
|
|
# resources: {}
|
|
# command: ["/bin/sh", "-c", "sleep infinity"]
|
|
# volumeMounts:
|
|
# - name: local-pvc
|
|
# mountPath: /data
|
|
# volumes:
|
|
# - name: local-pvc
|
|
# persistentVolumeClaim:
|
|
# claimName: local-pvc-name
|
|
# dnsPolicy: ClusterFirst
|
|
# restartPolicy: Always
|
|
## 3. Run the pod on the cluster and verify the size and access of the `/data` mount
|