メインコンテンツへスキップ

Trident - Kyverno ポリシーにより、StorageClass の制限によりTrident PV の作成がブロックされる

Views:
2
Visibility:
Public
Votes:
0
Category:
trident-kubernetes
Specialty:
snapx
Last Updated:

環境

  • トライデント
  • Kubernetes - k8s

問題

Kyvernoポリシーによって許可されたストレージクラスが制限されている場合、 TridentはKubernetesでPersistentVolume(PV)を作成できません。その結果、 Azure NetApp Files (ANF)でボリュームが正常に作成されたにもかかわらず、PersistentVolumeClaim(PVC)が保留状態のままになります。

Tridentログ:

1 request.go:1212] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"admission webhook \"validate.kyverno.svc-fail\" denied the request: \n\nresource PersistentVolume//pvc-946f4b1c-fe5f-418f-b178-f066cf73b0b1 was blocked due to the following policies \n\nrestrict-allowed-storageclasses:\n  restrict-pv-storageclass: 'validation error: PVs must use storageClassName ''<sc name>''\n   or ''<sc name>''. rule restrict-pv-storageclass failed at path /spec/storageClassName/'\n","code":400}
1 volume_store.go:144] error saving volume pvc-946f4b1c-fe5f-418f-b178-f066cf73b0b1: admission webhook"validate.kyverno.svc-fail" denied the request:

 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.