小编Ole*_*leg的帖子

Azure k8s 中的 Pod 出现错误(不支持卷功能)

我在 azure k8s 集群(4Gb 标准 HDD)中创建了磁盘,我正在使用代码 PV

光伏文件

然后我正在创建 PVC:

PVC纱

将我的卷附加到 Pod:

Pod 卷附件

但是当我检查 Pod 的状态时,出现错误:

root@k8s:/home/azureuser/k8s# kubectl get describe pods mypod
error: the server doesn't have a resource type "describe"
root@k8s:/home/azureuser/k8s# kubectl describe pods mypod
Name:         mypod
Namespace:    default
Priority:     0
Node:         aks-agentpool-37412589-vmss000000/10.224.0.4
Start Time:   Wed, 03 Aug 2022 10:34:45 +0000
Labels:       <none>
Annotations:  <none>
Status:       Pending
IP:           
IPs:          <none>
Containers:
  mypod:
    Container ID:   
    Image:          mcr.microsoft.com/oss/nginx/nginx:1.15.5-alpine
    Image ID:       
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       ContainerCreating …
Run Code Online (Sandbox Code Playgroud)

kubernetes persistent-volumes persistent-volume-claims

3
推荐指数
1
解决办法
3836
查看次数