该实践内容目前仅适用于华东-上海二和华南-广州局点,其他局点暂不支持。
该特性仅支持1.15+集群,使用everest插件,插件版本要求1.1.13+。
当前版本未对前端进行适配,前端调用可能存在未知错误,subpath模式的卷请勿通过前端进行“扩容”、“解关联”、“删除”等操作。
配置示例:
apiVersion: storage.k8s.io/v1 allowVolumeExpansion: true kind: StorageClass metadata: name: sfsturbo-sc-test mountOptions: - nolock=false parameters: csi.storage.k8s.io/csi-driver-name: sfsturbo.csi.everest.io csi.storage.k8s.io/fstype: nfs everest.io/archive-on-delete: "true" everest.io/share-access-to: 7ca2dba2-1234-1234-1234-626371a8fb3a everest.io/share-expand-type: bandwidth everest.io/share-export-location: 192.168.1.1:/sfsturbo/ everest.io/share-source: sfs-turbo everest.io/share-volume-type: STANDARD everest.io/volume-as: subpath everest.io/volume-id: 0d773f2e-1234-1234-1234-de6a35074696 provisioner: everest-csi-provisioner reclaimPolicy: Delete volumeBindingMode: Immediate
其中:
配置示例:
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: sfs-turbo-test namespace: default spec: accessModes: - ReadWriteMany resources: requests: storage: 50Gi storageClassName: csi-sfsturbo-test volumeMode: Filesystem
其中:
对subpath类型的SFS Turbo扩容时,没有实际的扩容意义。该操作不会对SFS Tubor资源进行实际的扩容,需要用户自行保证Turbo的总容量不被耗尽。
apiVersion: apps/v1 kind: Deployment metadata: name: test-turbo-subpath-example namespace: default generation: 1 labels: appgroup: '' spec: replicas: 1 selector: matchLabels: app: test-turbo-subpath-example template: metadata: labels: app: test-turbo-subpath-example spec: containers: - image: nginx:latest name: container-0 volumeMounts: - mountPath: /tmp name: pvc-sfs-turbo-example restartPolicy: Always imagePullSecrets: - name: default-secret volumes: - name: pvc-sfs-turbo-example persistentVolumeClaim: claimName: sfs-turbo-test
其中:
配置示例:
apiVersion: apps/v1 kind: StatefulSet metadata: name: test-turbo-subpath namespace: default generation: 1 labels: appgroup: '' spec: replicas: 2 selector: matchLabels: app: test-turbo-subpath template: metadata: labels: app: test-turbo-subpath annotations: metrics.alpha.kubernetes.io/custom-endpoints: '[{"api":"","path":"","port":"","names":""}]' pod.alpha.kubernetes.io/initialized: 'true' spec: containers: - name: container-0 image: 'nginx:latest' env: - name: PAAS_APP_NAME value: deploy-sfs-nfs-rw-in - name: PAAS_NAMESPACE value: default - name: PAAS_PROJECT_ID value: 8190a2a1692c46f284585c56fc0e2fb9 resources: {} volumeMounts: - name: sfs-turbo-160024548582479676 mountPath: /tmp terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} imagePullSecrets: - name: default-secret affinity: {} schedulerName: default-scheduler volumeClaimTemplates: - metadata: name: sfs-turbo-160024548582479676 namespace: default annotations: {} spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi storageClassName: sfsturbo-sc-test serviceName: wwww podManagementPolicy: OrderedReady updateStrategy: type: RollingUpdate revisionHistoryLimit: 10
其中:
点击订阅新品发布会 新产品、新版本、新技术、新功能、价格调整,评论在下方,下...
云计算(cloud computing)是分布式计算的一种,指的是通过网络云将巨大的数据计算...
3D动画效果现在越来越普及,已经被广泛的应用到了各个平台,比如阿里云,华为云...
使您的Apache Spark应用程序运行速度更快,而对代码的更改最少! 介绍 在开发Spar...
大数据与传统的数据技术的差别: 1、数据规模大: 传统数据技术主要是利用现有存...
TOP云 (west.cn)10月28日消息,阿里巴巴集团今日宣布,将旗下旅行品牌“阿里旅...
操作场景 云硬盘支持通过云审计服务对云硬盘的操作进行记录,以便查询事件列表,...
我在2007年开始学习CSS。是的,从那时起,我们已经走了很长的路! 在2021年,前端...
本文转载自微信公众号「Java中文社群」,作者磊哥 。转载本文请联系Java中文社群...
当服务器中的磁盘发生故障、或者由于人为误操作导致服务器数据丢失时,可以使用...