如何解决找不到Storageclass.storage.k8s.io“ gp2加密”
我正在尝试为我的Pod添加一个存储类,但是在使用helm install
生成标题时,我收到了标题错误。我可以确认使用kubectl apply -f
而不是helm install
时,相同的yaml文件创建了存储类。这是kubectl describe pvc data-opendistro-es-en-us-master-0
的输出,此后我已经为存储类附加了yaml文件。
Name: data-opendistro-es-en-us-master-0
Namespace: default
StorageClass: gp2-encrypted
Status: Pending
Volume:
Labels: app=opendistro-es-en-us
chart=opendistro-es-en-us-0.1
heritage=Helm
release=opendistro-es-en-us
role=master
Annotations: <none>
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Mounted By: opendistro-es-en-us-master-0
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 73s (x383 over 96m) persistentvolume-controller storageclass.storage.k8s.io "gp2-encrypted" not found
# Copyright 2019 Amazon.com,Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: data-gp2
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
encrypted: "true"
reclaimPolicy: Delete
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。