{"componentChunkName":"component---src-templates-tutorial-js","path":"/zh/tutorial/StorageClassManagement/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"存储类\"><a href=\"#%E5%AD%98%E5%82%A8%E7%B1%BB\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>存储类</h2>\n<p>SuperMap iManager支持添加存储类用于服务和应用数据存储。存储类（StorageClass）是管理员用来描述不同的可用存储类型（storage types）的一种方法，可以映射到服务质量等级、备份策略、或者管理员随机定义的策略。每个存储类对象包含的域有provisioner、parameters和reclaimPolicy，属于该存储类别的永久卷需要动态分配时就要用到这些域参数。通过存储类对象的名称，用户可以请求他们需要的特定存储类别。更多介绍请参见<a href=\"https://kubernetes.io/zh/docs/concepts/storage/storage-classes/\" target=\"blank\">Kubernetes文档</a>。</p>\n<p>如果用户已有存储类，可对values.yaml中的deploy_storage_class_name参数进行配置（参见<a href=\"../../guides/InstalliManager/\">入门->安装部署->安装iManager</a>），或通过iManager界面添加，操作如下：</p>\n<h3 id=\"添加存储类\"><a href=\"#%E6%B7%BB%E5%8A%A0%E5%AD%98%E5%82%A8%E7%B1%BB\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>添加存储类</h3>\n<ol>\n<li>在iManager左侧导航栏打开<strong>存储管理</strong>，点击<strong>存储类</strong>;</li>\n<li>点击<strong>添加存储类</strong>;</li>\n<li>\n<p>输入存储类名称。</p>\n<ul>\n<li>存储类名称：编排文件中StorageClass的名称。</li>\n</ul>\n</li>\n</ol>\n<h3 id=\"管理存储类\"><a href=\"#%E7%AE%A1%E7%90%86%E5%AD%98%E5%82%A8%E7%B1%BB\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>管理存储类</h3>\n<p>打开iManager左侧导航栏<strong>存储管理</strong>，点击<strong>存储类</strong>进入页面。在存储类列表中，可删除现有存储类，可将服务和应用数据存入指定存储类的供应者中，可解除服务和应用数据与存储类的绑定。</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/ea5441b3f3456d9c97725317e109a306/73b94/storageclassmanage.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 840px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 26.666666666666668%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAFCAIAAADKYVtkAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAyElEQVQY04WPS27DMAxEdZGgRSRHH1sSRepj10VrZ2ME3fQC2XefQ+TaIRIEyK5vQ2BmyAFFjj4a9f62k6pT/+G9d86FEP3gAUDE0/nr7xo/T1Ht90pJKV/T8o566ocXtNYiHX+/z5fx+JNjQKKUoO/7ruseCXuHc1yoHxzYVOzzEN7qKcdprLnU1ioRIWLiGwBEedu2ZVlaa+u6st7GieqISBlTCEFoa/iHUmopmW33hAvZnud5GIYEiReMMc6DxQ+AjL3T1t4Agto1M5+Q/3AAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"storageclassmanage\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/ea5441b3f3456d9c97725317e109a306/1e088/storageclassmanage.png\"\n        srcset=\"/iManager_K8S/1014/static/ea5441b3f3456d9c97725317e109a306/65ed1/storageclassmanage.png 210w,\n/iManager_K8S/1014/static/ea5441b3f3456d9c97725317e109a306/d10fb/storageclassmanage.png 420w,\n/iManager_K8S/1014/static/ea5441b3f3456d9c97725317e109a306/1e088/storageclassmanage.png 840w,\n/iManager_K8S/1014/static/ea5441b3f3456d9c97725317e109a306/73b94/storageclassmanage.png 1004w\"\n        sizes=\"(max-width: 840px) 100vw, 840px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>","frontmatter":{"title":"教程","next":null,"prev":null},"fields":{"path":"content/tutorial/StorageClassManagement.zh.md","slug":"/zh/tutorial/StorageClassManagement/","langKey":"zh"}}},"pageContext":{"slug":"/zh/tutorial/StorageClassManagement/"}}}