I'm attempting to create add a storage class for my pod but I'm receiving the error in the title when using helm install
to generate it. I can confirm that the same yaml file creates the storage class when using kubectl apply -f
instead of helm install
. Here is the output for kubectl describe pvc data-opendistro-es-en-us-master-0
and I've attached the yaml file for the storage class right after.
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
<!-- end snippet --><!-- begin snippet: js hide: false console: true babel: false --><!-- language: lang-html --># 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
<!-- end snippet -->