Using RSSD UDisk in UK8S
RSSD UDisk can reach up to 1.2 million IOPS, with a latency below 0.1ms, a data durability of 99.999999%, and a maximum capacity of 32,000G. It is suitable for low-latency, IO-intensive applications like databases, Elastic Search, etc. UK8S supports using RSSD UDisk as the persistent storage volume for containers, but nodes of the Zhuangjia type are necessary in the clusters (currently, only Zhuangjia cloud hosts can mount RSSD UDisks).
The following demonstrates how to use the RSSD UDisk in the UK8S cluster.
Restrictions
-
There must be Zhuangjia type nodes in the cluster, otherwise, the PV created will not be usable;
-
Kubernetes version must not be lower than 1.18;
-
The version of csi-udisk plugin must be equal to or greater than
22.09.1
. If less, please upgrade from the console. For more details, see RSSD Cloud Disk Mounting Problem; -
The volumeBindingMode in StorageClass must explicitly be set to WaitForFirstConsumer (otherwise, the RSSD UDisk created may not be able to mount);
Usage Example
- Create PVC, this part is completely consistent with creating SATA, SSD UDisk’s PVC.
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: logdisk-claim
spec:
accessModes:
- ReadWriteOnce
storageClassName: csi-udisk-rssd
resources:
requests:
storage: 10Gi
- Create Pod
apiVersion: apps/v1
kind: Deployment
metadata:
name: http
labels:
app: http
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: http
template:
metadata:
labels:
app: http
spec:
containers:
- name: http
image: uhub.ucloud-global.com/wxyz/httpudisk:1.0
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- name: log
mountPath: /data
volumes:
- name: log
persistentVolumeClaim:
claimName: logdisk-claim