| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2020-03-14 01:03+0000\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: Title == |
| 20 |
#: kubernetes.adoc:2 |
| 21 |
#, no-wrap |
| 22 |
msgid "LINSTOR Volumes in Kubernetes" |
| 23 |
msgstr "Kubernetes的LINSTOR卷" |
| 24 |
|
| 25 |
#. type: Plain text |
| 26 |
#: kubernetes.adoc:7 |
| 27 |
msgid "" |
| 28 |
"indexterm:[Kubernetes]This chapter describes the usage of LINSTOR in " |
| 29 |
"Kubernetes as managed by the operator and with volumes provisioned using the" |
| 30 |
" https://github.com/LINBIT/linstor-csi[LINSTOR CSI plugin]." |
| 31 |
msgstr "" |
| 32 |
"indexterm:[Kubernetes]本章描述了在Kubernetes中由操作员管理的LINSTOR的使用,以及使用 https://github.com/LINBIT/linstor-csi[LINSTOR CSI plugin]" |
| 33 |
" 配置卷的情况。" |
| 34 |
|
| 35 |
#. type: Title === |
| 36 |
#: kubernetes.adoc:9 |
| 37 |
#, no-wrap |
| 38 |
msgid "Kubernetes Overview" |
| 39 |
msgstr "Kubernetes 概述" |
| 40 |
|
| 41 |
#. type: Plain text |
| 42 |
#: kubernetes.adoc:15 |
| 43 |
msgid "" |
| 44 |
"_Kubernetes_ is a container orchestrator. Kubernetes defines the behavior of" |
| 45 |
" containers and related services via declarative specifications. In this " |
| 46 |
"guide, we'll focus on on using `kubectl` to manipulate `.yaml` files that " |
| 47 |
"define the specifications of Kubernetes objects." |
| 48 |
msgstr "" |
| 49 |
"_Kubernetes_ 是一个容器编排系统。Kubernetes通过声明性规范定义容器和相关服务的行为。在本指南中,我们将重点介绍如何使用 `kubectl` 来操作定义Kubernetes对象规范的 `.yaml` 文件。" |
| 50 |
|
| 51 |
#. type: Title === |
| 52 |
#: kubernetes.adoc:17 |
| 53 |
#, no-wrap |
| 54 |
msgid "Deploying LINSTOR on Kubernetes" |
| 55 |
msgstr "在Kubernetes上部署LINSTOR" |
| 56 |
|
| 57 |
#. type: Title ==== |
| 58 |
#: kubernetes.adoc:20 |
| 59 |
#, no-wrap |
| 60 |
msgid "Deploying with the LINSTOR Operator" |
| 61 |
msgstr "使用LINSTOR Operator部署" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: kubernetes.adoc:25 |
| 65 |
msgid "" |
| 66 |
"LINBIT provides a LINSTOR operator to commercial support customers. The " |
| 67 |
"operator eases deployment of LINSTOR on Kubernetes by installing DRBD, " |
| 68 |
"managing Satellite and Controller pods, and other related functions." |
| 69 |
msgstr "" |
| 70 |
"LINBIT为商业支持客户提供LINSTOR Operator。Operator通过安装DRBD、管理Satellite/Controller Pods以及其他相关功能,简化了LINSTOR在Kubernetes上的部署。" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: kubernetes.adoc:27 |
| 74 |
msgid "The operator itself is installed using a Helm v3 chart as follows:" |
| 75 |
msgstr "Operator用Helm v3安装,如下所示:" |
| 76 |
|
| 77 |
#. type: Plain text |
| 78 |
#: kubernetes.adoc:30 |
| 79 |
msgid "" |
| 80 |
"Label the worker nodes with `linstor.linbit.com/linstor-node=true` by " |
| 81 |
"running:" |
| 82 |
msgstr "通过运行以下命令将工作节点标记为 `linstor.linbit.com/linstor-node=true` :" |
| 83 |
|
| 84 |
#. type: delimited block - |
| 85 |
#: kubernetes.adoc:33 |
| 86 |
#, no-wrap |
| 87 |
msgid "kubectl label node <NODE_NAME> linstor.linbit.com/linstor-node=true\n" |
| 88 |
msgstr "kubectl label node <NODE_NAME> linstor.linbit.com/linstor-node=true\n" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: kubernetes.adoc:36 |
| 92 |
msgid "Create a kubernetes secret containing your my.linbit.com credentials:" |
| 93 |
msgstr "创建包含my.linbit.com凭据的kubernetes 密码:" |
| 94 |
|
| 95 |
#. type: delimited block - |
| 96 |
#: kubernetes.adoc:39 |
| 97 |
#, no-wrap |
| 98 |
msgid "" |
| 99 |
"kubectl create secret docker-registry drbdiocred --docker-server=drbd.io " |
| 100 |
"--docker-username=<YOUR_LOGIN> --docker-email=<YOUR_EMAIL> --docker-" |
| 101 |
"password=<YOUR_PASSWORD>\n" |
| 102 |
msgstr "" |
| 103 |
"kubectl create secret docker-registry drbdiocred --docker-server=drbd.io " |
| 104 |
"--docker-username=<YOUR_LOGIN> --docker-email=<YOUR_EMAIL> --docker-" |
| 105 |
"password=<YOUR_PASSWORD>\n" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: kubernetes.adoc:43 |
| 109 |
msgid "" |
| 110 |
"The name of this secret must match the one specified in the Helm values, by " |
| 111 |
"default `drbdiocred`." |
| 112 |
msgstr "默认情况下,此密码的名称必须与Helm值中指定的名称 `drbdiocred` 匹配。" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: kubernetes.adoc:46 |
| 116 |
msgid "" |
| 117 |
"Configure storage for the LINSTOR etcd instance. There are various options " |
| 118 |
"for configuring the etcd instance for LINSTOR:" |
| 119 |
msgstr "为LINSTOR etcd实例配置存储。有多种选项可用于为LINSTOR配置etcd实例:" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: kubernetes.adoc:47 |
| 123 |
msgid "Use an existing storage provisioner with a default `StorageClass`." |
| 124 |
msgstr "使用具有默认 `StorageClass` 的现有存储资源调配器。" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: kubernetes.adoc:48 |
| 128 |
msgid "<<s-kubernetes-etcd-hostpath-persistence,Use `hostPath` volumes>>." |
| 129 |
msgstr "<<s-kubernetes-etcd-hostpath-persistence,Use `hostPath` volumes>>。" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: kubernetes.adoc:50 |
| 133 |
msgid "" |
| 134 |
"Disable persistence for basic testing. This can be done by adding `--set " |
| 135 |
"etcd.persistence.enabled=false` to the `helm install` command below." |
| 136 |
msgstr "" |
| 137 |
"因为只进行基础测试,我们禁用持久存储。通过在 `helm install` 命令中添加 `--set " |
| 138 |
"etcd.persistence.enabled=false` 来完成。" |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: kubernetes.adoc:53 |
| 142 |
msgid "" |
| 143 |
"Configure the LVM VG and LV names by setting the following values in a local" |
| 144 |
" values file or by using `--set` with the `helm install` command below." |
| 145 |
msgstr "通过在本地的values文件中设置以下值, 或使用下面的helm install命令中的 `--set` 配置LVM VG和LV名称。" |
| 146 |
|
| 147 |
#. type: delimited block - |
| 148 |
#: kubernetes.adoc:58 |
| 149 |
#, no-wrap |
| 150 |
msgid "" |
| 151 |
"operator.nodeSet.spec.lvmPoolVgName=drbdpool # <- Volume Group name of the thick storage pool\n" |
| 152 |
"operator.nodeSet.spec.lvmThinPoolVgName=drbdpool # <- Volume Group name of the thin storage pool\n" |
| 153 |
"operator.nodeSet.spec.lvmThinPoolLvName=thinpool # <- Logical Volume name of the thin pool\n" |
| 154 |
msgstr "" |
| 155 |
"operator.nodeSet.spec.lvmPoolVgName=drbdpool # <- Volume Group name of the thick storage pool\n" |
| 156 |
"operator.nodeSet.spec.lvmThinPoolVgName=drbdpool # <- Volume Group name of the thin storage pool\n" |
| 157 |
"operator.nodeSet.spec.lvmThinPoolLvName=thinpool # <- Logical Volume name of the thin pool\n" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: kubernetes.adoc:62 |
| 161 |
msgid "" |
| 162 |
"Select the appropriate kernel module injector using `--set` with the `helm " |
| 163 |
"install` command in the final step." |
| 164 |
msgstr "在最后一步中,使用带有 `helm install` 命令的 `--set` 选择适当的内核模块注入。" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: kubernetes.adoc:66 |
| 168 |
msgid "" |
| 169 |
"Choose the injector according to the distribution you are using. Replace " |
| 170 |
"`rhel7` with `bionic` or `rhel8` as appropriate in the following value. The " |
| 171 |
"`rhel8` image should also be used for RHCOS (OpenShift)." |
| 172 |
msgstr "" |
| 173 |
"根据您使用的发行版本选择内核模块。在下面的值中将 `rhel7` 替换为 `bionic` 或 `rhel8`。rhel8 镜像也应该用于RHCOS(OpenShift)。" |
| 174 |
|
| 175 |
#. type: delimited block - |
| 176 |
#: kubernetes.adoc:69 |
| 177 |
#, no-wrap |
| 178 |
msgid "operator.nodeSet.spec.kernelModImage=drbd.io/drbd9-rhel7\n" |
| 179 |
msgstr "operator.nodeSet.spec.kernelModImage=drbd.io/drbd9-rhel7\n" |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: kubernetes.adoc:72 |
| 183 |
msgid "" |
| 184 |
"Disable kernel module injection if you are installing DRBD by other means." |
| 185 |
msgstr "如果通过其他方式安装DRBD,请禁用内核模块注入。" |
| 186 |
|
| 187 |
#. type: delimited block - |
| 188 |
#: kubernetes.adoc:75 |
| 189 |
#, no-wrap |
| 190 |
msgid "operator.nodeSet.spec.drbdKernelModuleInjectionMode=None\n" |
| 191 |
msgstr "operator.nodeSet.spec.drbdKernelModuleInjectionMode=None\n" |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: kubernetes.adoc:79 |
| 195 |
msgid "" |
| 196 |
"Finally create a Helm deployment named `linstor-op` that will set up " |
| 197 |
"everything." |
| 198 |
msgstr "最后创建一个名为 `linstor-op` 的Helm部署,它将设置所有内容。" |
| 199 |
|
| 200 |
#. type: delimited block - |
| 201 |
#: kubernetes.adoc:83 |
| 202 |
#, no-wrap |
| 203 |
msgid "" |
| 204 |
"helm repo add linstor https://charts.linstor.io\n" |
| 205 |
"helm install linstor-op linstor/linstor\n" |
| 206 |
msgstr "" |
| 207 |
"helm repo add linstor https://charts.linstor.io\n" |
| 208 |
"helm install linstor-op linstor/linstor\n" |
| 209 |
|
| 210 |
#. type: Title ===== |
| 211 |
#: kubernetes.adoc:86 |
| 212 |
#, no-wrap |
| 213 |
msgid "LINSTOR etcd `hostPath` persistence" |
| 214 |
msgstr "LINSTOR etcd `hostPath` 持久存储" |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: kubernetes.adoc:91 |
| 218 |
msgid "" |
| 219 |
"You can use the `pv-hostpath` Helm templates to create `hostPath` persistent" |
| 220 |
" volumes. Create as many PVs as needed to satisfy your configured etcd " |
| 221 |
"`replicaCount` (default 3)." |
| 222 |
msgstr "" |
| 223 |
"可以使用 `pv-" |
| 224 |
"hostpath` Helm模板创建 `hostpath` 持久卷。根据需要创建尽可能多的pv以满足配置的etcd的 `replicaccount`(默认值为3)。" |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: kubernetes.adoc:94 |
| 228 |
msgid "" |
| 229 |
"Create the `hostPath` persistent volumes, substituting cluster node names " |
| 230 |
"accordingly in the `nodes=` option:" |
| 231 |
msgstr "创建 `hostPath` 持久卷,在 `nodes=` 选项中相应地替换为集群节点名称:" |
| 232 |
|
| 233 |
#. type: delimited block - |
| 234 |
#: kubernetes.adoc:98 |
| 235 |
#, no-wrap |
| 236 |
msgid "" |
| 237 |
"helm repo add linstor https://charts.linstor.io\n" |
| 238 |
"helm install linstor-etcd linstor/pv-hostpath --set \"nodes={<NODE0>,<NODE1>,<NODE2>}\"\n" |
| 239 |
msgstr "" |
| 240 |
"helm repo add linstor https://charts.linstor.io\n" |
| 241 |
"helm install linstor-etcd linstor/pv-hostpath --set \"nodes={<NODE0>,<NODE1>,<NODE2>}\"\n" |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: kubernetes.adoc:103 |
| 245 |
msgid "" |
| 246 |
"Persistence for etcd is enabled by default. The " |
| 247 |
"`etcd.volumePermissions.enabled` key in the Helm values is also set so that " |
| 248 |
"the `hostPath` volumes have appropriate permissions." |
| 249 |
msgstr "" |
| 250 |
"默认情况下,启用etcd的持久性。Helm值中的 `etcd.volumePermissions.enabled` 键也已设置,以便 `hostPath` 卷具有适当的权限。" |
| 251 |
|
| 252 |
#. type: Title ===== |
| 253 |
#: kubernetes.adoc:105 |
| 254 |
#, no-wrap |
| 255 |
msgid "Terminating Helm deployment" |
| 256 |
msgstr "终止Helm部署" |
| 257 |
|
| 258 |
#. type: Plain text |
| 259 |
#: kubernetes.adoc:108 |
| 260 |
msgid "The LINSTOR deployment can be terminated with:" |
| 261 |
msgstr "LINSTOR部署可以通过以下方式终止:" |
| 262 |
|
| 263 |
#. type: delimited block - |
| 264 |
#: kubernetes.adoc:111 |
| 265 |
#, no-wrap |
| 266 |
msgid "helm delete linstor-op\n" |
| 267 |
msgstr "helm delete linstor-op\n" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: kubernetes.adoc:117 |
| 271 |
msgid "" |
| 272 |
"However due to the Helm’s current policy, the newly created Custom Resource " |
| 273 |
"Definitions named `linstorcontrollerset` and `linstornodeset` will *not* be " |
| 274 |
"deleted by the command. This will also cause the instances of those CRD’s " |
| 275 |
"named `linstor-op-ns` and `linstor-op-cs` to remain running." |
| 276 |
msgstr "" |
| 277 |
"但是,由于Helm的当前策略,命令 *不会* 删除名为 `linstorcontrollerset` 和 `linstornodeset` 的新创建的自定义资源定义(CRD)。这还将导致那些名为 `linstor" |
| 278 |
"-op-ns` 和 `linstor-op-cs` 的CRD实例继续运行。" |
| 279 |
|
| 280 |
#. type: Plain text |
| 281 |
#: kubernetes.adoc:119 |
| 282 |
msgid "To terminate those instances after the `helm delete` command, run" |
| 283 |
msgstr "若要在 `helm delete` 命令后终止这些实例,请运行" |
| 284 |
|
| 285 |
#. type: delimited block - |
| 286 |
#: kubernetes.adoc:123 |
| 287 |
#, no-wrap |
| 288 |
msgid "" |
| 289 |
"kubectl patch linstorcontrollerset linstor-op-cs -p '{\"metadata\":{\"finalizers\":[]}}' --type=merge\n" |
| 290 |
"kubectl patch linstornodeset linstor-op-ns -p '{\"metadata\":{\"finalizers\":[]}}' --type=merge\n" |
| 291 |
msgstr "" |
| 292 |
"kubectl patch linstorcontrollerset linstor-op-cs -p '{\"metadata\":{\"finalizers\":[]}}' --type=merge\n" |
| 293 |
"kubectl patch linstornodeset linstor-op-ns -p '{\"metadata\":{\"finalizers\":[]}}' --type=merge\n" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: kubernetes.adoc:127 |
| 297 |
msgid "" |
| 298 |
"After that, all the instances created by the Helm deployment will be " |
| 299 |
"terminated." |
| 300 |
msgstr "之后,Helm部署创建的所有实例都将终止。" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: kubernetes.adoc:130 |
| 304 |
msgid "" |
| 305 |
"More information regarding Helm’s current position on CRD’s can be found " |
| 306 |
"https://helm.sh/docs/topics/chart_best_practices/custom_resource_definitions/#method-1-let-" |
| 307 |
"helm-do-it-for-you[here]." |
| 308 |
msgstr "" |
| 309 |
"有关Helm目前在CRD上的位置的更多信息,请访问 https://Helm.sh/docs/topics/chart_best_practices/custom_resource_definitions/#method-1-let-" |
| 310 |
"Helm-do-it-for-you[这里]。" |
| 311 |
|
| 312 |
#. type: Title ==== |
| 313 |
#: kubernetes.adoc:132 |
| 314 |
#, no-wrap |
| 315 |
msgid "Deploying with the Piraeus Operator" |
| 316 |
msgstr "使用Piraeus Operator部署" |
| 317 |
|
| 318 |
#. type: Plain text |
| 319 |
#: kubernetes.adoc:138 |
| 320 |
msgid "" |
| 321 |
"The community supported edition of the LINSTOR deployment in Kubernetes is " |
| 322 |
"called Piraeus. The Piraeus project provides " |
| 323 |
"https://github.com/piraeusdatastore/piraeus-operator[an operator] for " |
| 324 |
"deployment." |
| 325 |
msgstr "" |
| 326 |
"在Kubernetes中由社区支持的LINSTOR部署版本称为Piraeus。Piraeus项目提供了一个 https://github.com/piraewdatastore/piraeus" |
| 327 |
"-operator[an operator] 进行部署。" |
| 328 |
|
| 329 |
#. type: Title === |
| 330 |
#: kubernetes.adoc:140 |
| 331 |
#, no-wrap |
| 332 |
msgid "Interacting with LINSTOR in Kubernetes" |
| 333 |
msgstr "在Kubernetes中与LINSTOR互动" |
| 334 |
|
| 335 |
#. type: Plain text |
| 336 |
#: kubernetes.adoc:144 |
| 337 |
msgid "" |
| 338 |
"The Controller pod includes a LINSTOR Client, making it easy to interact " |
| 339 |
"directly with LINSTOR. For instance:" |
| 340 |
msgstr "Controller pod包括LINSTOR客户端,使得直接与LINSTOR交互变得容易。例如:" |
| 341 |
|
| 342 |
#. type: delimited block - |
| 343 |
#: kubernetes.adoc:147 |
| 344 |
#, no-wrap |
| 345 |
msgid "kubectl exec linstor-op-cs-controller-0 -- linstor storage-pool list\n" |
| 346 |
msgstr "kubectl exec linstor-op-cs-controller-0 -- linstor storage-pool list\n" |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: kubernetes.adoc:152 |
| 350 |
msgid "" |
| 351 |
"This should only be necessary for investigating problems and accessing " |
| 352 |
"advanced functionality. Regular operation such as creating volumes should " |
| 353 |
"be achieved via the <<s-kubernetes-basic-configuration-and-" |
| 354 |
"deployment,Kubernetes integration>>." |
| 355 |
msgstr "" |
| 356 |
"这应该只是调研问题和访问高级功能所必需的。常规操作(如创建卷)应通过<<s-kubernetes-basic-configuration-and-" |
| 357 |
"deployment,Kubernetes integration>>实现。" |
| 358 |
|
| 359 |
#. type: Title === |
| 360 |
#: kubernetes.adoc:154 |
| 361 |
#, no-wrap |
| 362 |
msgid "LINSTOR CSI Plugin Deployment" |
| 363 |
msgstr "LINSTOR CSI插件部署" |
| 364 |
|
| 365 |
#. type: Plain text |
| 366 |
#: kubernetes.adoc:158 |
| 367 |
msgid "" |
| 368 |
"The operator Helm chart deploys the LINSTOR CSI plugin for you so if you " |
| 369 |
"used that, you can skip this section." |
| 370 |
msgstr "operator 的 Helm chart中为您部署了LINSTOR CSI插件,因此如果您使用了该插件,可以跳过本节。" |
| 371 |
|
| 372 |
#. type: Plain text |
| 373 |
#: kubernetes.adoc:164 |
| 374 |
msgid "" |
| 375 |
"If you are integrating LINSTOR using a different method, you will need to " |
| 376 |
"install the LINSTOR CSI plugin. Instructions for deploying the CSI plugin " |
| 377 |
"can be found on the https://github.com/LINBIT/linstor-csi[project's github]." |
| 378 |
" This will result in a linstor-csi-controller _StatefulSet_ and a linstor-" |
| 379 |
"csi-node _DaemonSet_ running in the kube-system namespace." |
| 380 |
msgstr "" |
| 381 |
"如果使用不同的方法集成LINSTOR,则需要安装LINSTOR " |
| 382 |
"CSI插件。部署CSI插件的说明可以在https://github.com/LINBIT/linstor-csi[project's " |
| 383 |
"github]上找到。这将导致在kube-system命名空间中运行linstor-csi-controller _StatefulSet_ 和linstor-csi-node _DaemonSet_。" |
| 384 |
|
| 385 |
#. type: delimited block - |
| 386 |
#: kubernetes.adoc:173 |
| 387 |
#, no-wrap |
| 388 |
msgid "" |
| 389 |
"NAME READY STATUS RESTARTS AGE IP NODE\n" |
| 390 |
"linstor-csi-controller-0 5/5 Running 0 3h10m 191.168.1.200 kubelet-a\n" |
| 391 |
"linstor-csi-node-4fcnn 2/2 Running 0 3h10m 192.168.1.202 kubelet-c\n" |
| 392 |
"linstor-csi-node-f2dr7 2/2 Running 0 3h10m 192.168.1.203 kubelet-d\n" |
| 393 |
"linstor-csi-node-j66bc 2/2 Running 0 3h10m 192.168.1.201 kubelet-b\n" |
| 394 |
"linstor-csi-node-qb7fw 2/2 Running 0 3h10m 192.168.1.200 kubelet-a\n" |
| 395 |
"linstor-csi-node-zr75z 2/2 Running 0 3h10m 192.168.1.204 kubelet-e\n" |
| 396 |
msgstr "" |
| 397 |
"NAME READY STATUS RESTARTS AGE IP NODE\n" |
| 398 |
"linstor-csi-controller-0 5/5 Running 0 3h10m 191.168.1.200 kubelet-a\n" |
| 399 |
"linstor-csi-node-4fcnn 2/2 Running 0 3h10m 192.168.1.202 kubelet-c\n" |
| 400 |
"linstor-csi-node-f2dr7 2/2 Running 0 3h10m 192.168.1.203 kubelet-d\n" |
| 401 |
"linstor-csi-node-j66bc 2/2 Running 0 3h10m 192.168.1.201 kubelet-b\n" |
| 402 |
"linstor-csi-node-qb7fw 2/2 Running 0 3h10m 192.168.1.200 kubelet-a\n" |
| 403 |
"linstor-csi-node-zr75z 2/2 Running 0 3h10m 192.168.1.204 kubelet-e\n" |
| 404 |
|
| 405 |
#. type: Title === |
| 406 |
#: kubernetes.adoc:176 |
| 407 |
#, no-wrap |
| 408 |
msgid "Basic Configuration and Deployment" |
| 409 |
msgstr "基本配置和部署" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: kubernetes.adoc:180 |
| 413 |
msgid "" |
| 414 |
"Once all linstor-csi __Pod__s are up and running, we can provision volumes " |
| 415 |
"using the usual Kubernetes workflows." |
| 416 |
msgstr "一旦所有linstor-csi __Pod__s 都启动并运行,我们就可以使用通常的Kubernetes工作流创建卷。" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: kubernetes.adoc:184 |
| 420 |
msgid "" |
| 421 |
"Configuring the behavior and properties of LINSTOR volumes deployed via " |
| 422 |
"Kubernetes is accomplished via the use of __StorageClass__es. Here below is " |
| 423 |
"the simplest practical _StorageClass_ that can be used to deploy volumes:" |
| 424 |
msgstr "" |
| 425 |
"配置通过Kubernetes部署的LINSTOR卷的行为和属性是通过使用 __StorageClass__es 来完成的。下面是可用于部署卷的最简单实用的 _StorageClass_ :" |
| 426 |
|
| 427 |
#. type: Block title |
| 428 |
#: kubernetes.adoc:185 |
| 429 |
#, no-wrap |
| 430 |
msgid "linstor-basic-sc.yaml" |
| 431 |
msgstr "linstor-basic-sc.yaml" |
| 432 |
|
| 433 |
#. type: delimited block - |
| 434 |
#: kubernetes.adoc:200 |
| 435 |
#, no-wrap |
| 436 |
msgid "" |
| 437 |
"apiVersion: storage.k8s.io/v1beta1\n" |
| 438 |
"kind: StorageClass\n" |
| 439 |
"metadata:\n" |
| 440 |
" # The name used to identify this StorageClass.\n" |
| 441 |
" name: linstor-basic-storage-class\n" |
| 442 |
" # The name used to match this StorageClass with a provisioner.\n" |
| 443 |
" # linstor.csi.linbit.com is the name that the LINSTOR CSI plugin uses to identify itself\n" |
| 444 |
"provisioner: linstor.csi.linbit.com\n" |
| 445 |
"parameters:\n" |
| 446 |
" # LINSTOR will provision volumes from the drbdpool storage pool configured\n" |
| 447 |
" # On the satellite nodes in the LINSTOR cluster specified in the plugin's deployment\n" |
| 448 |
" storagePool: \"drbdpool\"\n" |
| 449 |
msgstr "" |
| 450 |
"apiVersion: storage.k8s.io/v1beta1\n" |
| 451 |
"kind: StorageClass\n" |
| 452 |
"metadata:\n" |
| 453 |
" # The name used to identify this StorageClass.\n" |
| 454 |
" name: linstor-basic-storage-class\n" |
| 455 |
" # The name used to match this StorageClass with a provisioner.\n" |
| 456 |
" # linstor.csi.linbit.com is the name that the LINSTOR CSI plugin uses to identify itself\n" |
| 457 |
"provisioner: linstor.csi.linbit.com\n" |
| 458 |
"parameters:\n" |
| 459 |
" # LINSTOR will provision volumes from the drbdpool storage pool configured\n" |
| 460 |
" # On the satellite nodes in the LINSTOR cluster specified in the plugin's deployment\n" |
| 461 |
" storagePool: \"drbdpool\"\n" |
| 462 |
|
| 463 |
#. type: Plain text |
| 464 |
#: kubernetes.adoc:203 |
| 465 |
msgid "We can create the _StorageClass_ with the following command:" |
| 466 |
msgstr "我们可以使用以下命令创建 _StorageClasses_ :" |
| 467 |
|
| 468 |
#. type: delimited block - |
| 469 |
#: kubernetes.adoc:206 |
| 470 |
#, no-wrap |
| 471 |
msgid "kubectl create -f linstor-basic-sc.yaml\n" |
| 472 |
msgstr "kubectl create -f linstor-basic-sc.yaml\n" |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: kubernetes.adoc:210 |
| 476 |
msgid "" |
| 477 |
"Now that our _StorageClass_ is created, we can now create a " |
| 478 |
"_PersistentVolumeClaim_ which can be used to provision volumes known both to" |
| 479 |
" Kubernetes and LINSTOR:" |
| 480 |
msgstr "" |
| 481 |
"现在,我们的存储类已经创建,我们现在可以创建一个 _PersistentVolumeClaim_ ,它可以用来提供Kubernetes和LINSTOR都知道的卷:" |
| 482 |
|
| 483 |
#. type: Block title |
| 484 |
#: kubernetes.adoc:211 |
| 485 |
#, no-wrap |
| 486 |
msgid "my-first-linstor-volume-pvc.yaml" |
| 487 |
msgstr "my-first-linstor-volume-pvc.yaml" |
| 488 |
|
| 489 |
#. type: delimited block - |
| 490 |
#: kubernetes.adoc:228 |
| 491 |
#, no-wrap |
| 492 |
msgid "" |
| 493 |
"kind: PersistentVolumeClaim\n" |
| 494 |
"apiVersion: v1\n" |
| 495 |
"metadata:\n" |
| 496 |
" name: my-first-linstor-volume\n" |
| 497 |
" annotations:\n" |
| 498 |
" # This line matches the PersistentVolumeClaim with our StorageClass\n" |
| 499 |
" # and therefore our provisioner.\n" |
| 500 |
" volume.beta.kubernetes.io/storage-class: linstor-basic-storage-class\n" |
| 501 |
"spec:\n" |
| 502 |
" accessModes:\n" |
| 503 |
" - ReadWriteOnce\n" |
| 504 |
" resources:\n" |
| 505 |
" requests:\n" |
| 506 |
" storage: 500Mi\n" |
| 507 |
msgstr "" |
| 508 |
"kind: PersistentVolumeClaim\n" |
| 509 |
"apiVersion: v1\n" |
| 510 |
"metadata:\n" |
| 511 |
" name: my-first-linstor-volume\n" |
| 512 |
" annotations:\n" |
| 513 |
" # This line matches the PersistentVolumeClaim with our StorageClass\n" |
| 514 |
" # and therefore our provisioner.\n" |
| 515 |
" volume.beta.kubernetes.io/storage-class: linstor-basic-storage-class\n" |
| 516 |
"spec:\n" |
| 517 |
" accessModes:\n" |
| 518 |
" - ReadWriteOnce\n" |
| 519 |
" resources:\n" |
| 520 |
" requests:\n" |
| 521 |
" storage: 500Mi\n" |
| 522 |
|
| 523 |
#. type: Plain text |
| 524 |
#: kubernetes.adoc:231 |
| 525 |
msgid "We can create the _PersistentVolumeClaim_ with the following command:" |
| 526 |
msgstr "我们可以使用以下命令创建 _PersistentVolumeClaim_ :" |
| 527 |
|
| 528 |
#. type: delimited block - |
| 529 |
#: kubernetes.adoc:234 |
| 530 |
#, no-wrap |
| 531 |
msgid "kubectl create -f my-first-linstor-volume-pvc.yaml\n" |
| 532 |
msgstr "kubectl create -f my-first-linstor-volume-pvc.yaml\n" |
| 533 |
|
| 534 |
#. type: Plain text |
| 535 |
#: kubernetes.adoc:244 |
| 536 |
msgid "" |
| 537 |
"This will create a _PersistentVolumeClaim_ known to Kubernetes, which will " |
| 538 |
"have a _PersistentVolume_ bound to it, additionally LINSTOR will now create " |
| 539 |
"this volume according to the configuration defined in the `linstor-basic-" |
| 540 |
"storage-class` _StorageClass_. The LINSTOR volume's name will be a UUID " |
| 541 |
"prefixed with `csi-` This volume can be observed with the usual `linstor " |
| 542 |
"resource list`. Once that volume is created, we can attach it to a pod. The " |
| 543 |
"following _Pod_ spec will spawn a Fedora container with our volume attached " |
| 544 |
"that busy waits so it is not unscheduled before we can interact with it:" |
| 545 |
msgstr "" |
| 546 |
"这将创建一个Kubernetes已知的 _PersistentVolumeClaim_ ,它将绑定一个 _PersistentVolume_,另外LINSTOR现在将根据 `listor-basic-storage-class` 中定义的配置 _StorageClass_ 创建这个卷。LINSTOR卷的名称将是一个UUID,前缀为 `csi-` 可以使用通常的 `listor resource list` 来观察此卷。一旦创建了该卷,我们就可以将其附加到一个pod。下面的 _Pod_ 规范将生成一个Fedora容器,其中附加了忙等待的卷,因此在我们与它交互之前,它不会被取消调度 :" |
| 547 |
|
| 548 |
#. type: Block title |
| 549 |
#: kubernetes.adoc:245 |
| 550 |
#, no-wrap |
| 551 |
msgid "my-first-linstor-volume-pod.yaml" |
| 552 |
msgstr "my-first-linstor-volume-pod.yaml" |
| 553 |
|
| 554 |
#. type: delimited block - |
| 555 |
#: kubernetes.adoc:268 |
| 556 |
#, no-wrap |
| 557 |
msgid "" |
| 558 |
"apiVersion: v1\n" |
| 559 |
"kind: Pod\n" |
| 560 |
"metadata:\n" |
| 561 |
" name: fedora\n" |
| 562 |
" namespace: default\n" |
| 563 |
"spec:\n" |
| 564 |
" containers:\n" |
| 565 |
" - name: fedora\n" |
| 566 |
" image: fedora\n" |
| 567 |
" command: [/bin/bash]\n" |
| 568 |
" args: [\"-c\", \"while true; do sleep 10; done\"]\n" |
| 569 |
" volumeMounts:\n" |
| 570 |
" - name: my-first-linstor-volume\n" |
| 571 |
" mountPath: /data\n" |
| 572 |
" ports:\n" |
| 573 |
" - containerPort: 80\n" |
| 574 |
" volumes:\n" |
| 575 |
" - name: my-first-linstor-volume\n" |
| 576 |
" persistentVolumeClaim:\n" |
| 577 |
" claimName: \"my-first-linstor-volume\"\n" |
| 578 |
msgstr "" |
| 579 |
"apiVersion: v1\n" |
| 580 |
"kind: Pod\n" |
| 581 |
"metadata:\n" |
| 582 |
" name: fedora\n" |
| 583 |
" namespace: default\n" |
| 584 |
"spec:\n" |
| 585 |
" containers:\n" |
| 586 |
" - name: fedora\n" |
| 587 |
" image: fedora\n" |
| 588 |
" command: [/bin/bash]\n" |
| 589 |
" args: [\"-c\", \"while true; do sleep 10; done\"]\n" |
| 590 |
" volumeMounts:\n" |
| 591 |
" - name: my-first-linstor-volume\n" |
| 592 |
" mountPath: /data\n" |
| 593 |
" ports:\n" |
| 594 |
" - containerPort: 80\n" |
| 595 |
" volumes:\n" |
| 596 |
" - name: my-first-linstor-volume\n" |
| 597 |
" persistentVolumeClaim:\n" |
| 598 |
" claimName: \"my-first-linstor-volume\"\n" |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: kubernetes.adoc:271 |
| 602 |
msgid "We can create the _Pod_ with the following command:" |
| 603 |
msgstr "我们可以使用以下命令创建 _Pod_ :" |
| 604 |
|
| 605 |
#. type: delimited block - |
| 606 |
#: kubernetes.adoc:274 |
| 607 |
#, no-wrap |
| 608 |
msgid "kubectl create -f my-first-linstor-volume-pod.yaml\n" |
| 609 |
msgstr "kubectl create -f my-first-linstor-volume-pod.yaml\n" |
| 610 |
|
| 611 |
#. type: Plain text |
| 612 |
#: kubernetes.adoc:278 |
| 613 |
msgid "" |
| 614 |
"Running `kubectl describe pod fedora` can be used to confirm that _Pod_ " |
| 615 |
"scheduling and volume attachment succeeded." |
| 616 |
msgstr "运行 `kubectl describe pod fedora` 可用于确认 _Pod_ 调度和卷附加成功。" |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: kubernetes.adoc:283 |
| 620 |
msgid "" |
| 621 |
"To remove a volume, please ensure that no pod is using it and then delete " |
| 622 |
"the _PersistentVolumeClaim_ via `kubectl`. For example, to remove the volume" |
| 623 |
" that we just made, run the following two commands, noting that the _Pod_ " |
| 624 |
"must be unscheduled before the _PersistentVolumeClaim_ will be removed:" |
| 625 |
msgstr "" |
| 626 |
"要删除卷,请确保没有pod正在使用它,然后通过 `kubectl` 删除 `PersistentVolumeClaim` 。例如,要删除我们刚刚创建的卷,请运行以下两个命令,注意在删除 _PersistentVolumeClaim_ 之前必须取消调度该 _Pod_ :" |
| 627 |
|
| 628 |
#. type: delimited block - |
| 629 |
#: kubernetes.adoc:286 |
| 630 |
#, no-wrap |
| 631 |
msgid "kubectl delete pod fedora # unschedule the pod.\n" |
| 632 |
msgstr "kubectl delete pod fedora # unschedule the pod.\n" |
| 633 |
|
| 634 |
#. type: delimited block - |
| 635 |
#: kubernetes.adoc:288 |
| 636 |
#, no-wrap |
| 637 |
msgid "kubectl get pod -w # wait for pod to be unscheduled\n" |
| 638 |
msgstr "kubectl get pod -w # wait for pod to be unscheduled\n" |
| 639 |
|
| 640 |
#. type: delimited block - |
| 641 |
#: kubernetes.adoc:290 |
| 642 |
#, no-wrap |
| 643 |
msgid "" |
| 644 |
"kubectl delete pvc my-first-linstor-volume # remove the " |
| 645 |
"PersistentVolumeClaim, the PersistentVolume, and the LINSTOR Volume.\n" |
| 646 |
msgstr "" |
| 647 |
"kubectl delete pvc my-first-linstor-volume # remove the " |
| 648 |
"PersistentVolumeClaim, the PersistentVolume, and the LINSTOR Volume.\n" |
| 649 |
|
| 650 |
#. type: Title === |
| 651 |
#: kubernetes.adoc:293 |
| 652 |
#, no-wrap |
| 653 |
msgid "Snapshots" |
| 654 |
msgstr "快照" |
| 655 |
|
| 656 |
#. type: Plain text |
| 657 |
#: kubernetes.adoc:298 |
| 658 |
msgid "" |
| 659 |
"Creating <<s-linstor-snapshots, snapshots>> and creating new volumes from " |
| 660 |
"snapshots is done via the use of __VolumeSnapshot__s, " |
| 661 |
"__VolumeSnapshotClass__es, and __PVC__s. First, you'll need to create a " |
| 662 |
"_VolumeSnapshotClass_:" |
| 663 |
msgstr "" |
| 664 |
"创建<<s-linstor-snapshots, snapshots>>和从快照创建新卷是通过使用 __VolumeSnapshot__s, __VolumeSnapshotClass__es, 和 __PVC__s来完成的。" |
| 665 |
"首先,您需要创建卷快照类 _VolumeSnapshotClass_:" |
| 666 |
|
| 667 |
#. type: Block title |
| 668 |
#: kubernetes.adoc:299 |
| 669 |
#, no-wrap |
| 670 |
msgid "my-first-linstor-snapshot-class.yaml" |
| 671 |
msgstr "my-first-linstor-snapshot-class.yaml" |
| 672 |
|
| 673 |
#. type: delimited block - |
| 674 |
#: kubernetes.adoc:308 |
| 675 |
#, no-wrap |
| 676 |
msgid "" |
| 677 |
"kind: VolumeSnapshotClass\n" |
| 678 |
"apiVersion: snapshot.storage.k8s.io/v1alpha1\n" |
| 679 |
"metadata:\n" |
| 680 |
" name: my-first-linstor-snapshot-class\n" |
| 681 |
" namespace: kube-system\n" |
| 682 |
"snapshotter: io.drbd.linstor-csi\n" |
| 683 |
msgstr "" |
| 684 |
"kind: VolumeSnapshotClass\n" |
| 685 |
"apiVersion: snapshot.storage.k8s.io/v1alpha1\n" |
| 686 |
"metadata:\n" |
| 687 |
" name: my-first-linstor-snapshot-class\n" |
| 688 |
" namespace: kube-system\n" |
| 689 |
"snapshotter: io.drbd.linstor-csi\n" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: kubernetes.adoc:311 |
| 693 |
msgid "Create the _VolumeSnapshotClass_ with `kubectl`:" |
| 694 |
msgstr "使用 `kubectl` 创建 _VolumeSnapshotClass_ :" |
| 695 |
|
| 696 |
#. type: delimited block - |
| 697 |
#: kubernetes.adoc:314 |
| 698 |
#, no-wrap |
| 699 |
msgid "kubectl create -f my-first-linstor-snapshot-class.yaml\n" |
| 700 |
msgstr "kubectl create -f my-first-linstor-snapshot-class.yaml\n" |
| 701 |
|
| 702 |
#. type: Plain text |
| 703 |
#: kubernetes.adoc:318 |
| 704 |
msgid "" |
| 705 |
"Now we will create a volume snapshot for the volume that we created above. " |
| 706 |
"This is done with a _VolumeSnapshot_:" |
| 707 |
msgstr "现在,我们将为上面创建的卷创建卷快照。这是用 _VolumeSnapshot_ 完成的:" |
| 708 |
|
| 709 |
#. type: Block title |
| 710 |
#: kubernetes.adoc:319 |
| 711 |
#, no-wrap |
| 712 |
msgid "my-first-linstor-snapshot.yaml" |
| 713 |
msgstr "my-first-linstor-snapshot.yaml" |
| 714 |
|
| 715 |
#. type: delimited block - |
| 716 |
#: kubernetes.adoc:331 |
| 717 |
#, no-wrap |
| 718 |
msgid "" |
| 719 |
"apiVersion: snapshot.storage.k8s.io/v1alpha1\n" |
| 720 |
"kind: VolumeSnapshot\n" |
| 721 |
"metadata:\n" |
| 722 |
" name: my-first-linstor-snapshot\n" |
| 723 |
"spec:\n" |
| 724 |
" snapshotClassName: my-first-linstor-snapshot-class\n" |
| 725 |
" source:\n" |
| 726 |
" name: my-first-linstor-volume\n" |
| 727 |
" kind: PersistentVolumeClaim\n" |
| 728 |
msgstr "" |
| 729 |
"apiVersion: snapshot.storage.k8s.io/v1alpha1\n" |
| 730 |
"kind: VolumeSnapshot\n" |
| 731 |
"metadata:\n" |
| 732 |
" name: my-first-linstor-snapshot\n" |
| 733 |
"spec:\n" |
| 734 |
" snapshotClassName: my-first-linstor-snapshot-class\n" |
| 735 |
" source:\n" |
| 736 |
" name: my-first-linstor-volume\n" |
| 737 |
" kind: PersistentVolumeClaim\n" |
| 738 |
|
| 739 |
#. type: Plain text |
| 740 |
#: kubernetes.adoc:334 |
| 741 |
msgid "Create the _VolumeSnapshot_ with `kubectl`:" |
| 742 |
msgstr "使用 `kubectl` 创建 _VolumeSnapshot_ :" |
| 743 |
|
| 744 |
#. type: delimited block - |
| 745 |
#: kubernetes.adoc:337 |
| 746 |
#, no-wrap |
| 747 |
msgid "kubectl create -f my-first-linstor-snapshot.yaml\n" |
| 748 |
msgstr "kubectl create -f my-first-linstor-snapshot.yaml\n" |
| 749 |
|
| 750 |
#. type: Plain text |
| 751 |
#: kubernetes.adoc:340 |
| 752 |
msgid "Finally, we'll create a new volume from the snapshot with a _PVC_." |
| 753 |
msgstr "最后,我们将使用 _PVC_ 从快照创建一个新卷。" |
| 754 |
|
| 755 |
#. type: Block title |
| 756 |
#: kubernetes.adoc:341 |
| 757 |
#, no-wrap |
| 758 |
msgid "my-first-linstor-volume-from-snapshot.yaml" |
| 759 |
msgstr "my-first-linstor-volume-from-snapshot.yaml" |
| 760 |
|
| 761 |
#. type: delimited block - |
| 762 |
#: kubernetes.adoc:359 |
| 763 |
#, no-wrap |
| 764 |
msgid "" |
| 765 |
"apiVersion: v1\n" |
| 766 |
"kind: PersistentVolumeClaim\n" |
| 767 |
"metadata:\n" |
| 768 |
" name: my-first-linstor-volume-from-snapshot\n" |
| 769 |
"spec:\n" |
| 770 |
" storageClassName: linstor-basic-storage-class\n" |
| 771 |
" dataSource:\n" |
| 772 |
" name: my-first-linstor-snapshot\n" |
| 773 |
" kind: VolumeSnapshot\n" |
| 774 |
" apiGroup: snapshot.storage.k8s.io\n" |
| 775 |
" accessModes:\n" |
| 776 |
" - ReadWriteOnce\n" |
| 777 |
" resources:\n" |
| 778 |
" requests:\n" |
| 779 |
" storage: 500Mi\n" |
| 780 |
msgstr "" |
| 781 |
"apiVersion: v1\n" |
| 782 |
"kind: PersistentVolumeClaim\n" |
| 783 |
"metadata:\n" |
| 784 |
" name: my-first-linstor-volume-from-snapshot\n" |
| 785 |
"spec:\n" |
| 786 |
" storageClassName: linstor-basic-storage-class\n" |
| 787 |
" dataSource:\n" |
| 788 |
" name: my-first-linstor-snapshot\n" |
| 789 |
" kind: VolumeSnapshot\n" |
| 790 |
" apiGroup: snapshot.storage.k8s.io\n" |
| 791 |
" accessModes:\n" |
| 792 |
" - ReadWriteOnce\n" |
| 793 |
" resources:\n" |
| 794 |
" requests:\n" |
| 795 |
" storage: 500Mi\n" |
| 796 |
|
| 797 |
#. type: Plain text |
| 798 |
#: kubernetes.adoc:362 |
| 799 |
msgid "Create the _PVC_ with `kubectl`:" |
| 800 |
msgstr "用 `kubectl` 创建 _PVC_ :" |
| 801 |
|
| 802 |
#. type: delimited block - |
| 803 |
#: kubernetes.adoc:365 |
| 804 |
#, no-wrap |
| 805 |
msgid "kubectl create -f my-first-linstor-volume-from-snapshot.yaml\n" |
| 806 |
msgstr "kubectl create -f my-first-linstor-volume-from-snapshot.yaml\n" |
| 807 |
|
| 808 |
#. type: Title === |
| 809 |
#: kubernetes.adoc:369 |
| 810 |
#, no-wrap |
| 811 |
msgid "Volume Accessibility" |
| 812 |
msgstr "卷可访问性" |
| 813 |
|
| 814 |
#. This only covers DRBD volumes, section might change if linked docs are |
| 815 |
#. updated. |
| 816 |
#. type: Plain text |
| 817 |
#: kubernetes.adoc:373 |
| 818 |
msgid "" |
| 819 |
"LINSTOR volumes are typically accessible both locally and " |
| 820 |
"<<s-drbd_clients,over the network>>." |
| 821 |
msgstr "LINSTOR卷通常可以通过网络在本地和<<s-drbd_clients,over the network>>来访问。" |
| 822 |
|
| 823 |
#. type: Plain text |
| 824 |
#: kubernetes.adoc:380 |
| 825 |
msgid "" |
| 826 |
"By default, the CSI plugin will attach volumes directly if the _Pod_ happens" |
| 827 |
" to be scheduled on a _kubelet_ where its underlying storage is present. " |
| 828 |
"However, _Pod_ scheduling does not currently take volume locality into " |
| 829 |
"account. The <<s-kubernetes-replicasonsame,replicasOnSame>> parameter can be" |
| 830 |
" used to restrict where the underlying storage may be provisioned, if " |
| 831 |
"locally attached volumes are desired." |
| 832 |
msgstr "" |
| 833 |
"默认情况下,CSI插件将直接附加卷,如果碰巧将 _Pod_ 调度到 _kubelet_ 所在的底层存储上。但是,_Pod_ 调度当前不考虑卷位置。如果需要本地连接的卷,可以使用<<s-kubernetes-" |
| 834 |
"replicasonsame,replicasOnSame>>参数来限制底层存储的配置位置。" |
| 835 |
|
| 836 |
#. type: Plain text |
| 837 |
#: kubernetes.adoc:383 |
| 838 |
msgid "" |
| 839 |
"See <<s-kubernetes-localstoragepolicy,localStoragePolicy>> to see how this " |
| 840 |
"default behavior can be modified." |
| 841 |
msgstr "" |
| 842 |
"请参见<<s-kubernetes-localstoragepolicy,localStoragePolicy>>以了解如何修改此默认行为。" |
| 843 |
|
| 844 |
#. type: Title === |
| 845 |
#: kubernetes.adoc:385 |
| 846 |
#, no-wrap |
| 847 |
msgid "Advanced Configuration" |
| 848 |
msgstr "高级配置" |
| 849 |
|
| 850 |
#. type: Plain text |
| 851 |
#: kubernetes.adoc:390 |
| 852 |
msgid "" |
| 853 |
"In general, all configuration for LINSTOR volumes in Kubernetes should be " |
| 854 |
"done via the _StorageClass_ parameters, as seen with the _storagePool_ in " |
| 855 |
"the basic example above. We'll give all the available options an in-depth " |
| 856 |
"treatment here." |
| 857 |
msgstr "" |
| 858 |
"一般来说,Kubernetes中LINSTOR卷的所有配置都应该通过 _StorageClass_ 参数完成,如上面的基本示例中的 _storagePool_ 所示。我们将在这里对所有可用的选项进行深入的处理。" |
| 859 |
|
| 860 |
#. type: Title ==== |
| 861 |
#: kubernetes.adoc:392 |
| 862 |
#, no-wrap |
| 863 |
msgid "nodeList" |
| 864 |
msgstr "节点列表" |
| 865 |
|
| 866 |
#. type: Plain text |
| 867 |
#: kubernetes.adoc:398 |
| 868 |
msgid "" |
| 869 |
"`nodeList` is a list of nodes for volumes to be assigned to. This will " |
| 870 |
"assign the volume to each node and it will be replicated among all of them. " |
| 871 |
"This can also be used to select a single node by hostname, but it's more " |
| 872 |
"flexible to use <<s-kubernetes-replicasonsame,replicasOnSame>> to select a " |
| 873 |
"single node." |
| 874 |
msgstr "" |
| 875 |
"`nodeList` 是要分配给卷的节点列表。这将把卷分配给每个节点,并在所有节点之间进行复制。这也可以用于按主机名选择单个节点,但使用<<s-kubernetes-" |
| 876 |
"replicasonsame,replicasOnSame>>选择单个节点更灵活。" |
| 877 |
|
| 878 |
#. type: Plain text |
| 879 |
#: kubernetes.adoc:400 |
| 880 |
msgid "" |
| 881 |
"If you use this option, you must not use <<s-kubernetes-" |
| 882 |
"autoplace,autoPlace>>." |
| 883 |
msgstr "如果使用此选项,则不能使用<<s-kubernetes-autoplace,autoPlace>>。" |
| 884 |
|
| 885 |
#. type: Plain text |
| 886 |
#: kubernetes.adoc:404 |
| 887 |
msgid "" |
| 888 |
"This option determines on which LINSTOR nodes the underlying storage for " |
| 889 |
"volumes will be provisioned and is orthogonal from which _kubelets_ these " |
| 890 |
"volumes will be accessible." |
| 891 |
msgstr "此选项确定卷的底层存储将在哪个LINSTOR节点上配置,并且与从那个 _kubelets_ 可以访问这些卷位置正交。" |
| 892 |
|
| 893 |
#. type: Plain text |
| 894 |
#: kubernetes.adoc:406 |
| 895 |
msgid "Example: `nodeList: \"node-a node-b node-c\"`" |
| 896 |
msgstr "示例:`nodeList: \"node-a node-b node-c\" `" |
| 897 |
|
| 898 |
#. type: Plain text |
| 899 |
#: kubernetes.adoc:408 |
| 900 |
msgid "Example: `nodeList: \"node-a\"`" |
| 901 |
msgstr "示例:`nodeList: \"node-a\" `" |
| 902 |
|
| 903 |
#. type: Title ==== |
| 904 |
#: kubernetes.adoc:410 |
| 905 |
#, no-wrap |
| 906 |
msgid "autoPlace" |
| 907 |
msgstr "autoPlace" |
| 908 |
|
| 909 |
#. type: Plain text |
| 910 |
#: kubernetes.adoc:416 |
| 911 |
msgid "" |
| 912 |
"`autoPlace` is an integer that determines the amount of replicas a volume of" |
| 913 |
" this _StorageClass_ will have. For instance, `autoPlace: 3` will produce " |
| 914 |
"volumes with three-way replication. If neither `autoPlace` nor `nodeList` " |
| 915 |
"are set, volumes will be <<s-autoplace-linstor,automatically placed>> on one" |
| 916 |
" node." |
| 917 |
msgstr "" |
| 918 |
"`autoPlace` 是一个整数,用于确定此存储类卷的副本数量。例如, `autoPlace:3` 将生成具有三路复制的卷。如果未设置 `autoPlace` 或 `nodeList` ,则卷将<<s-autoplace-" |
| 919 |
"linstor,automatically placed>>。" |
| 920 |
|
| 921 |
#. type: Plain text |
| 922 |
#: kubernetes.adoc:418 |
| 923 |
msgid "" |
| 924 |
"If you use this option, you must not use <<s-kubernetes-nodelist,nodeList>>." |
| 925 |
msgstr "如果使用此选项,则不能使用<<s-kubernetes-nodelist,nodeList>>。" |
| 926 |
|
| 927 |
#. type: Plain text |
| 928 |
#: kubernetes.adoc:423 |
| 929 |
msgid "" |
| 930 |
"This option (and all options which affect autoplacement behavior) modifies " |
| 931 |
"the number of LINSTOR nodes on which the underlying storage for volumes will" |
| 932 |
" be provisioned and is orthogonal to which _kubelets_ those volumes will be " |
| 933 |
"accessible from." |
| 934 |
msgstr "" |
| 935 |
"此选项(以及影响自动放置行为的所有选项)修改将在其上配置卷的底层存储的LINSTOR节点的数量,并且与可从中访问这些卷的 _kubelets_ 正交。" |
| 936 |
|
| 937 |
#. type: Plain text |
| 938 |
#: kubernetes.adoc:425 |
| 939 |
msgid "Example: `autoPlace: 2`" |
| 940 |
msgstr "示例:`autoPlace:2`" |
| 941 |
|
| 942 |
#. type: Plain text |
| 943 |
#: kubernetes.adoc:427 |
| 944 |
msgid "Default: `autoPlace: 1`" |
| 945 |
msgstr "默认值:`autoPlace:1`" |
| 946 |
|
| 947 |
#. type: Title ==== |
| 948 |
#: kubernetes.adoc:430 |
| 949 |
#, no-wrap |
| 950 |
msgid "replicasOnSame" |
| 951 |
msgstr "replicasOnSame" |
| 952 |
|
| 953 |
#. These should link to the linstor documentation about node properties, but |
| 954 |
#. those |
| 955 |
#. do not exist at the time of this commit. |
| 956 |
#. type: Plain text |
| 957 |
#: kubernetes.adoc:441 |
| 958 |
msgid "" |
| 959 |
"`replicasOnSame` is a list of key=value pairs used as required autoplacement" |
| 960 |
" selection labels when <<s-kubernetes-autoplace,autoplace>> is used to " |
| 961 |
"determine where to provision storage. These labels correspond to LINSTOR " |
| 962 |
"node aux props. Please note both the key and value names are user-defined " |
| 963 |
"and arbitrary. Let's explore this behavior with examples assuming a LINSTOR " |
| 964 |
"cluster such that `node-a` is configured with the following aux props " |
| 965 |
"`zone=z1` and `role=backups`, while `node-b` is configured with only " |
| 966 |
"`zone=z1`." |
| 967 |
msgstr "" |
| 968 |
"`replicasOnSame`是一个key=value对的列表,当使用<<s-kubernetes-" |
| 969 |
"autoplace,autoplace>>确定在何处设置存储时,它用作所需的自动放置选择标签。这些标签对应于LINSTOR node aux props。请注意,键和值的名称都是用户定义的,并且是任意的。假设LINSTOR集群的 `node-a` 配置了以下aux" |
| 970 |
" props `zone=z1` 和 `role=backups` ,而 `node-b` 只配置了 `zone=z1` ,让我们通过示例来探索这种行为。" |
| 971 |
|
| 972 |
#. type: Plain text |
| 973 |
#: kubernetes.adoc:446 |
| 974 |
msgid "" |
| 975 |
"If we configure a _StorageClass_ with `autoPlace: \"1\"` and " |
| 976 |
"`replicasOnSame: \"zone=z1 role=backups\"`, then all volumes created from " |
| 977 |
"that _StorageClass_ will be provisioned on `node-a`, since that is the only " |
| 978 |
"node with all of the correct key=value pairs in the LINSTOR cluster. This is" |
| 979 |
" the most flexible way to select a single node for provisioning." |
| 980 |
msgstr "" |
| 981 |
"如果我们使用 `autoPlace: \"1\" ` 和 `replicasOnSame: \"zone=z1 role=backups\"`" |
| 982 |
"来配置一个 _StorageClass_` ,那么从该 _StorageClass_ 创建的所有卷都将配置在 `node-a` 上,因为这是LINSTOR集群中唯一具有所有正确的key=value对的节点。这是选择单个节点进行资源调配的最灵活方式。" |
| 983 |
|
| 984 |
#. type: Plain text |
| 985 |
#: kubernetes.adoc:450 |
| 986 |
msgid "" |
| 987 |
"If we configure a _StorageClass_ with `autoPlace: \"1\"` and " |
| 988 |
"`replicasOnSame: \"zone=z1\"`, then volumes will be provisioned on either " |
| 989 |
"`node-a` or `node-b` as they both have the `zone=z1` aux prop." |
| 990 |
msgstr "" |
| 991 |
"如果我们使用 `autoPlace: \"1\" ` 和 `replicasOnSame: \"zone=z1\" ` 来配置一个 _StorageClass_ ,那么卷将在 `node-a` 或 `node-b` 上配置,因为它们都有 `zone=z1` 辅助属性。" |
| 992 |
|
| 993 |
#. type: Plain text |
| 994 |
#: kubernetes.adoc:454 |
| 995 |
msgid "" |
| 996 |
"If we configure a _StorageClass_ with `autoPlace: \"2\"` and " |
| 997 |
"`replicasOnSame: \"zone=z1 role=backups\"`, then provisioning will fail, as " |
| 998 |
"there are not two or more nodes that have the appropriate aux props." |
| 999 |
msgstr "" |
| 1000 |
"如果我们使用 `autoPlace: \"2\"` 和 `replicasOnSame: \"zone=z1 role=backups\"`来配置一个 _StorageClass_, " |
| 1001 |
"那么设置将失败,因为没有两个或更多节点具有适当的aux props。" |
| 1002 |
|
| 1003 |
#. type: Plain text |
| 1004 |
#: kubernetes.adoc:458 |
| 1005 |
msgid "" |
| 1006 |
"If we configure a _StorageClass_ with `autoPlace: \"2\"` and " |
| 1007 |
"`replicasOnSame: \"zone=z1\"`, then volumes will be provisioned on both " |
| 1008 |
"`node-a` and `node-b` as they both have the `zone=z1` aux prop." |
| 1009 |
msgstr "" |
| 1010 |
"如果我们用 `autoPlace: \"2\"` 和 `replicasOnSame: \"zone=z1\"` 配置一个存储类,那么卷将同时在 `node-a` 和 `node-b` 上配置,因为它们都有 `zone=z1` 辅助属性。" |
| 1011 |
|
| 1012 |
#. type: Plain text |
| 1013 |
#: kubernetes.adoc:460 |
| 1014 |
msgid "Example: `replicasOnSame: \"zone=z1 role=backups\"`" |
| 1015 |
msgstr "示例:`replicasOnSame: \"zone=z1 role=backups\"`" |
| 1016 |
|
| 1017 |
#. type: Title ==== |
| 1018 |
#: kubernetes.adoc:462 |
| 1019 |
#, no-wrap |
| 1020 |
msgid "replicasOnDifferent" |
| 1021 |
msgstr "replicasOnDifferent" |
| 1022 |
|
| 1023 |
#. type: Plain text |
| 1024 |
#: kubernetes.adoc:466 |
| 1025 |
msgid "" |
| 1026 |
"`replicasOnDifferent` is a list of key=value pairs to avoid as autoplacement" |
| 1027 |
" selection. It is the inverse of <<s-kubernetes-" |
| 1028 |
"replicasonsame,replicasOnSame>>." |
| 1029 |
msgstr "" |
| 1030 |
"`replicasOnDifferent`是一个key=value对的列表,避免作为自动放置选择。它与<<s-kubernetes-" |
| 1031 |
"replicasonsame,replicasOnSame>>相反。" |
| 1032 |
|
| 1033 |
#. type: Plain text |
| 1034 |
#: kubernetes.adoc:468 |
| 1035 |
msgid "Example: `replicasOnDifferent: \"no-csi-volumes=true\"`" |
| 1036 |
msgstr "示例:`replicasOnDifferent: \"no csi volumes=true\"`" |
| 1037 |
|
| 1038 |
#. type: Title ==== |
| 1039 |
#: kubernetes.adoc:470 |
| 1040 |
#, no-wrap |
| 1041 |
msgid "localStoragePolicy" |
| 1042 |
msgstr "localStoragePolicy" |
| 1043 |
|
| 1044 |
#. type: Plain text |
| 1045 |
#: kubernetes.adoc:475 |
| 1046 |
msgid "" |
| 1047 |
"`localStoragePolicy` determines, via volume topology, which LINSTOR " |
| 1048 |
"__Satellite__s volumes should be assigned and from where Kubernetes will " |
| 1049 |
"access volumes. The behavior of each option is explained below in detail." |
| 1050 |
msgstr "" |
| 1051 |
"`localStoragePolicy`通过卷拓扑结构确定应分配哪些LINSTOR _Satellite__s 卷以及Kubernetes访问卷的位置。下面将详细说明每个选项的行为。" |
| 1052 |
|
| 1053 |
#. type: Plain text |
| 1054 |
#: kubernetes.adoc:479 |
| 1055 |
msgid "" |
| 1056 |
"If you specify a <<s-kubernetes-nodelist,nodeList>>, volumes will be created" |
| 1057 |
" on those nodes, irrespective of the `localStoragePolicy`; however, the " |
| 1058 |
"accessibility reporting will still be as described." |
| 1059 |
msgstr "" |
| 1060 |
"如果指定<<s-kubernetes-" |
| 1061 |
"nodelist,nodeList>>,将在这些节点上创建卷,而不考虑 `localStoragePolicy` ;但是,辅助功能报告仍将如所述。" |
| 1062 |
|
| 1063 |
#. type: Plain text |
| 1064 |
#: kubernetes.adoc:485 |
| 1065 |
msgid "" |
| 1066 |
"You must set `volumeBindingMode: WaitForFirstConsumer` in the _StorageClass_" |
| 1067 |
" and the LINSTOR __Satellite__s running on the __kubelet__s must be able to " |
| 1068 |
"support the diskful placement of volumes as they are configured in that " |
| 1069 |
"_StorageClass_ for <<s-kubernetes-localstoragepolicy-required,required>> or " |
| 1070 |
"<<s-kubernetes-localstoragepolicy-preferred,preferred>> to work properly." |
| 1071 |
msgstr "" |
| 1072 |
"您必须在 _StorageClasses_ 中设置 `volumeBindingMode:WaitForFirstConsumer` ,并且运行在 __kubelet__s 上的LINSTOR __Satellite__s 必须能够支持卷的磁盘完全放置,因为它们是在存储类中为<<s-kubernetes-" |
| 1073 |
"localstoragepolicy-required,required>>或<<s-kubernetes-localstoragepolicy-preferred>>中配置的,以使得其工作正常。" |
| 1074 |
|
| 1075 |
#. type: Plain text |
| 1076 |
#: kubernetes.adoc:489 |
| 1077 |
msgid "" |
| 1078 |
"Use `topologyKey: \"linbit.com/hostname\"` rather than `topologyKey: " |
| 1079 |
"\"kubernetes.io/hostname\"` if you are setting `affinity` in your _Pod_ or " |
| 1080 |
"_StatefulSet_ specs." |
| 1081 |
msgstr "" |
| 1082 |
"如果要在 _Pod_ 或 _StatefulSet_ 规范中设置 `affinity`, 请使用 `topologyKey: \"linbit.com/hostname\"`, 而不是 `topologyKey: \"kubernetes.io/hostname\"`。 " |
| 1083 |
|
| 1084 |
#. type: Plain text |
| 1085 |
#: kubernetes.adoc:491 |
| 1086 |
msgid "Example: `localStoragePolicy: required`" |
| 1087 |
msgstr "实例: `localStoragePolicy: required`" |
| 1088 |
|
| 1089 |
#. type: Title ===== |
| 1090 |
#: kubernetes.adoc:493 |
| 1091 |
#, no-wrap |
| 1092 |
msgid "ignore (default)" |
| 1093 |
msgstr "ignore (default)" |
| 1094 |
|
| 1095 |
#. type: Plain text |
| 1096 |
#: kubernetes.adoc:501 |
| 1097 |
msgid "" |
| 1098 |
"When `localStoragePolicy` is set to `ignore`, regular autoplacement occurs " |
| 1099 |
"based on <<s-kubernetes-autoplace,autoplace>>, <<s-kubernetes-" |
| 1100 |
"replicasonsame,replicasOnSame>>, and <<s-kubernetes-" |
| 1101 |
"replicasonsame,replicasOnDifferent>>. Volume location will not affect _Pod_ " |
| 1102 |
"scheduling in Kubernetes and the volumes will be accessed over the network " |
| 1103 |
"if they're not local to the _kubelet_ where the _Pod_ was scheduled." |
| 1104 |
msgstr "" |
| 1105 |
"当 `localStoragePolicy` 设置为 `ignore` 时,将基于<<s-kubernetes-" |
| 1106 |
"autoplace,autoplace>>、<<s-kubernetes-" |
| 1107 |
"replicasonsame,replicasOnSame>>和<<s-kubernetes-" |
| 1108 |
"replicasonsame,replicasOnDifferent>>进行常规自动放置。卷位置不会影响Kubernetes中的 _Pod_ 调度,如果卷不在调度 _Pod_ 的 _kubelet_ 本地,则可以通过网络访问它们。" |
| 1109 |
|
| 1110 |
#. type: Title ===== |
| 1111 |
#: kubernetes.adoc:503 |
| 1112 |
#, no-wrap |
| 1113 |
msgid "required" |
| 1114 |
msgstr "required" |
| 1115 |
|
| 1116 |
#. type: Plain text |
| 1117 |
#: kubernetes.adoc:510 |
| 1118 |
msgid "" |
| 1119 |
"When `localStoragePolicy` is set to `required`, Kubernetes will report a " |
| 1120 |
"list of places that it wants to schedule a _Pod_ in order of preference. The" |
| 1121 |
" plugin will attempt to provision the volume(s) according to that " |
| 1122 |
"preference. The number of volumes to be provisioned in total is based off of" |
| 1123 |
" <<s-kubernetes-autoplace,autoplace>>." |
| 1124 |
msgstr "" |
| 1125 |
"当 `localStoragePolicy` 设置为 `required` 时,Kubernetes将报告一个位置列表,其中列出了它希望按优先顺序安排的位置。插件将尝试根据该首选项设置卷。要配置的卷总数基于<<s-kubernetes-" |
| 1126 |
"autoplace,autoplace>>。" |
| 1127 |
|
| 1128 |
#. type: Plain text |
| 1129 |
#: kubernetes.adoc:513 |
| 1130 |
msgid "" |
| 1131 |
"If all preferences have been attempted, but no volumes where successfully " |
| 1132 |
"assigned volume creation will fail." |
| 1133 |
msgstr "如果已尝试所有首选项,但仍然没有成功分配卷,则创建会失败。" |
| 1134 |
|
| 1135 |
#. type: Plain text |
| 1136 |
#: kubernetes.adoc:518 |
| 1137 |
msgid "" |
| 1138 |
"In case of multiple replicas when all preferences have been attempted, and " |
| 1139 |
"at least one has succeeded, but there are still replicas remaining to be " |
| 1140 |
"provisioned, <<s-kubernetes-autoplace,autoplace>> behavior will apply for " |
| 1141 |
"the remaining volumes." |
| 1142 |
msgstr "" |
| 1143 |
"如果尝试了所有首选项后有多个副本,并且至少有一个已成功,但仍有副本需要配置,则<<s-kubernetes-" |
| 1144 |
"autoplace,autoplace>>行为将应用于其余卷。" |
| 1145 |
|
| 1146 |
#. type: Plain text |
| 1147 |
#: kubernetes.adoc:521 |
| 1148 |
msgid "" |
| 1149 |
"With this option set, Kubernetes will consider volumes that are not locally " |
| 1150 |
"present on a _kubelet_ to be unaccessible from that _kubelet_." |
| 1151 |
msgstr "设置此选项后,Kubernetes将认为不在 _kubelet_ 上本地存在的卷无法从该 _kubelet_ 访问。" |
| 1152 |
|
| 1153 |
#. type: Title ===== |
| 1154 |
#: kubernetes.adoc:523 |
| 1155 |
#, no-wrap |
| 1156 |
msgid "preferred" |
| 1157 |
msgstr "preferred" |
| 1158 |
|
| 1159 |
#. type: Plain text |
| 1160 |
#: kubernetes.adoc:531 |
| 1161 |
msgid "" |
| 1162 |
"When `localStoragePolicy` is set to `preferred`, volume placement behavior " |
| 1163 |
"will be the same as when it's set to <<s-kubernetes-localstoragepolicy-" |
| 1164 |
"required,required>> with the exception that volume creation will not fail if" |
| 1165 |
" no preference was able to be satisfied. Volume accessibility will be the " |
| 1166 |
"same as when set to <<s-kubernetes-localstoragepolicy-ignore,ignore>>." |
| 1167 |
msgstr "" |
| 1168 |
"当 `localStoragePolicy` 设置为 `preferred` 时,卷放置行为将与设置为<<s-kubernetes-" |
| 1169 |
"localstoragepolicy-" |
| 1170 |
"required,required>>时相同,但如果无法满足任何首选项,则卷创建不会失败。卷可访问性将与设置为<<s-kubernetes-" |
| 1171 |
"localstoragepolicy-ignore,ignore>>时相同。" |
| 1172 |
|
| 1173 |
#. type: Title ==== |
| 1174 |
#: kubernetes.adoc:533 |
| 1175 |
#, no-wrap |
| 1176 |
msgid "storagePool" |
| 1177 |
msgstr "storagePool" |
| 1178 |
|
| 1179 |
#. type: Plain text |
| 1180 |
#: kubernetes.adoc:537 |
| 1181 |
msgid "" |
| 1182 |
"`storagePool` is the name of the LINSTOR <<s-storage_pools,storage pool>> " |
| 1183 |
"that will be used to provide storage to the newly-created volumes." |
| 1184 |
msgstr "" |
| 1185 |
"`storagePool` 是用于为新创建的卷提供存储的LINSTOR <<s-storage_pools,storage pool>>的名称。" |
| 1186 |
|
| 1187 |
#. type: Plain text |
| 1188 |
#: kubernetes.adoc:542 |
| 1189 |
msgid "" |
| 1190 |
"Only nodes configured with this same _storage pool_ with be considered for " |
| 1191 |
"<<s-kubernetes-autoplace,autoplacement>>. Likewise, for _StorageClasses_ " |
| 1192 |
"using <<s-kubernetes-nodelist,nodeList>> all nodes specified in that list " |
| 1193 |
"must have this _storage pool_ configured on them." |
| 1194 |
msgstr "" |
| 1195 |
"只有配置了相同 _storage pool_ 的节点才被考虑用于<<s-kubernetes-" |
| 1196 |
"autoplace,autoplacement>>。同样,对于使用<<s-kubernetes-" |
| 1197 |
"nodelist,nodeList>>该列表中指定的所有节点,都必须在其上配置此 _storage pool_。" |
| 1198 |
|
| 1199 |
#. type: Plain text |
| 1200 |
#: kubernetes.adoc:544 |
| 1201 |
msgid "Example: `storagePool: my-storage-pool`" |
| 1202 |
msgstr "示例:`storagePool: my-storage-pool`" |
| 1203 |
|
| 1204 |
#. type: Title ==== |
| 1205 |
#: kubernetes.adoc:546 |
| 1206 |
#, no-wrap |
| 1207 |
msgid "disklessStoragePool" |
| 1208 |
msgstr "disklessStoragePool" |
| 1209 |
|
| 1210 |
#. This should link to the linstor section talking about diskless storage |
| 1211 |
#. pools |
| 1212 |
#. when that gets written. |
| 1213 |
#. type: Plain text |
| 1214 |
#: kubernetes.adoc:553 |
| 1215 |
msgid "" |
| 1216 |
"`disklessStoragePool` is an optional parameter that only effects LINSTOR " |
| 1217 |
"volumes assigned disklessly to _kubelets_ i.e., as clients. If you have a " |
| 1218 |
"custom _diskless storage pool_ defined in LINSTOR, you'll specify that here." |
| 1219 |
msgstr "" |
| 1220 |
"`disklessStoragePool` 是一个可选参数,它只影响作为客户端无磁盘分配给 _kubelets_ 的LINSTOR卷。如果在LINSTOR中定义了自定义 _diskless storage pool_,请在此处指定。" |
| 1221 |
|
| 1222 |
#. type: Plain text |
| 1223 |
#: kubernetes.adoc:555 |
| 1224 |
msgid "Example: `disklessStoragePool: my-custom-diskless-pool`" |
| 1225 |
msgstr "示例: `disklessStoragePool: my-custom-diskless-pool`" |
| 1226 |
|
| 1227 |
#. type: Title ==== |
| 1228 |
#: kubernetes.adoc:557 |
| 1229 |
#, no-wrap |
| 1230 |
msgid "encryption" |
| 1231 |
msgstr "encryption" |
| 1232 |
|
| 1233 |
#. type: Plain text |
| 1234 |
#: kubernetes.adoc:562 |
| 1235 |
msgid "" |
| 1236 |
"`encryption` is an optional parameter that determines whether to encrypt " |
| 1237 |
"volumes. LINSTOR must be <<s-linstor-encrypted-Volumes,configured for " |
| 1238 |
"encryption>> for this to work properly." |
| 1239 |
msgstr "" |
| 1240 |
"`encryption` 是一个可选参数,用于确定是否加密卷。LINSTOR必须<<s-linstor-encrypted-" |
| 1241 |
"Volumes,configured for encryption>>才能正常工作。" |
| 1242 |
|
| 1243 |
#. type: Plain text |
| 1244 |
#: kubernetes.adoc:564 |
| 1245 |
msgid "Example: `encryption: \"true\"`" |
| 1246 |
msgstr "示例: `encryption: \"true\"`" |
| 1247 |
|
| 1248 |
#. type: Title ==== |
| 1249 |
#: kubernetes.adoc:566 |
| 1250 |
#, no-wrap |
| 1251 |
msgid "filesystem" |
| 1252 |
msgstr "filesystem" |
| 1253 |
|
| 1254 |
#. type: Plain text |
| 1255 |
#: kubernetes.adoc:570 |
| 1256 |
msgid "" |
| 1257 |
"`filesystem` is an option parameter to specify the filesystem for non raw " |
| 1258 |
"block volumes. Currently supported options are `xfs` and `ext4`." |
| 1259 |
msgstr "`filesystem` 是一个选项参数,用于指定非原始块卷的文件系统。当前支持的选项是 `xfs` 和 `ext4` 。" |
| 1260 |
|
| 1261 |
#. type: Plain text |
| 1262 |
#: kubernetes.adoc:572 |
| 1263 |
msgid "Example: `filesystem: \"xfs\"`" |
| 1264 |
msgstr "示例: `filesystem: \"xfs\"`" |
| 1265 |
|
| 1266 |
#. type: Plain text |
| 1267 |
#: kubernetes.adoc:574 |
| 1268 |
msgid "Default: `filesystem: \"ext4\"`" |
| 1269 |
msgstr "Default: `filesystem: \"ext4\"`" |
| 1270 |
|
| 1271 |
#. type: Title ==== |
| 1272 |
#: kubernetes.adoc:576 |
| 1273 |
#, no-wrap |
| 1274 |
msgid "fsOpts" |
| 1275 |
msgstr "fsOpts" |
| 1276 |
|
| 1277 |
#. type: Plain text |
| 1278 |
#: kubernetes.adoc:579 |
| 1279 |
msgid "" |
| 1280 |
"`fsOpts` is an optional parameter that passes options to the volume's " |
| 1281 |
"filesystem at creation time." |
| 1282 |
msgstr "`fsOpts` 是一个可选参数,在创建时将选项传递给卷的文件系统。" |
| 1283 |
|
| 1284 |
#. type: Plain text |
| 1285 |
#: kubernetes.adoc:582 |
| 1286 |
msgid "" |
| 1287 |
"Please note these values are specific to your chosen <<s-kubernetes-" |
| 1288 |
"filesystem, filesystem>>." |
| 1289 |
msgstr "请注意,这些值特定于您选择的<<s-kubernetes-filesystem, filesystem>>。" |
| 1290 |
|
| 1291 |
#. type: Plain text |
| 1292 |
#: kubernetes.adoc:584 |
| 1293 |
msgid "Example: `fsOpts: \"-b 2048\"`" |
| 1294 |
msgstr "示例: `fsOpts: \"-b 2048\"`" |
| 1295 |
|
| 1296 |
#. type: Title ==== |
| 1297 |
#: kubernetes.adoc:586 |
| 1298 |
#, no-wrap |
| 1299 |
msgid "mountOpts" |
| 1300 |
msgstr "mountOpts" |
| 1301 |
|
| 1302 |
#. type: Plain text |
| 1303 |
#: kubernetes.adoc:589 |
| 1304 |
msgid "" |
| 1305 |
"`mountOpts` is an optional parameter that passes options to the volume's " |
| 1306 |
"filesystem at mount time." |
| 1307 |
msgstr "`mountOpts` 是一个可选参数,在装载时将选项传递给卷的文件系统。" |
| 1308 |
|
| 1309 |
#. type: Plain text |
| 1310 |
#: kubernetes.adoc:590 |
| 1311 |
msgid "Example: `mountOpts: \"sync,noatime\"`" |
| 1312 |
msgstr "示例: `mountOpts: \"sync,noatime\"`" |