docs
uk8s
Cluster Storage
Block Storage
Using RSSD UDisk in UK8S

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

  1. There must be Zhuangjia type nodes in the cluster, otherwise, the PV created will not be usable;

  2. Kubernetes version must not be lower than 1.18;

  3. 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;

  4. The volumeBindingMode in StorageClass must explicitly be set to WaitForFirstConsumer (otherwise, the RSSD UDisk created may not be able to mount);

Usage Example

  1. 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
  1. 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.surfercloud.com/wxyz/httpudisk:1.0
        imagePullPolicy: Always
        ports:
        - containerPort: 8080
        volumeMounts:
        - name: log
          mountPath: /data
      volumes:
      - name: log
        persistentVolumeClaim:
          claimName: logdisk-claim
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved