首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >卷填充器控制器 如何对接 cis 厂家的存储设备 呢? 现在无法创建pvc?

卷填充器控制器 如何对接 cis 厂家的存储设备 呢? 现在无法创建pvc?

提问于 2022-10-29 12:39:39
回答 0关注 0查看 36

[k8s@dev-kubectl tianchongqi]$ kubectl get pvc

NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE

example-pvc Terminating 23h

[k8s@dev-kubectl tianchongqi]$ kubectl describe pvc

Name: example-pvc

Namespace: default

StorageClass:

Status: Terminating (lasts 22h)

Volume:

Labels: <none>

Annotations: <none>

Finalizers: [hello.example.com/populate-target-protection]

Capacity:

Access Modes:

VolumeMode: Filesystem

DataSource:

APIGroup: hello.example.com

Kind: Hello

Name: example-hello

Used By: <none>

Events:

Type Reason Age From Message

---- ------ ---- ---- -------

Normal FailedBinding 2m48s (x5647 over 23h) persistentvolume-controller no persistent volumes available for this claim and no storage class is set

[k8s@dev-kubectl tianchongqi]$ cat hello-example.yaml

#apiVersion: hello.example.com/v1alpha1

#kind: Hello

#metadata:

# name: example-hello

#spec:

# fileName: example.txt

# fileContents: Hello, world!

#---

apiVersion: v1

kind: PersistentVolumeClaim

metadata:

name: example-pvc

spec:

accessModes:

- ReadWriteOnce

resources:

requests:

storage: 10Mi

dataSourceRef:

apiGroup: hello.example.com

kind: Hello

name: example-hello

volumeMode: Filesystem

storageClassName: huawei-csi-client

---

apiVersion: batch/v1

kind: Job

metadata:

name: example-job

spec:

template:

spec:

containers:

- name: example-container

image: busybox:latest

command:

- cat

- /mnt/example.txt

volumeMounts:

- name: vol

mountPath: /mnt

restartPolicy: Never

volumes:

- name: vol

persistentVolumeClaim:

claimName: example-pvc

[k8s@dev-kubectl tianchongqi]$

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档