ranhcer掛載PVC存儲子路徑使用環境變量的方法

rancher 掛載pvc磁盤時,子路徑使用的subPath ,不能使用環境變量設置。   若希望使用環境變量設置,可通過修改yaml文件,使用subPathExpr 字段實現。 環境變量可在rancher界面設置。   詳細資料可查看k8s官方文檔: https://kubernetes.io/docs/concepts/storage/volumes/
相關文章
相關標籤/搜索