This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
连接到 Red Hat OpenShift(预览版)
创建和管理连接和资源介绍了用于创建连接的向导。 以下信息涵盖了 Red Hat OpenShift 特有的详细信息。
注意:
在创建与 Red Hat OpenShift 的连接之前,您需要先完成 Red Hat OpenShift 的设置。 请参阅 Red Hat OpenShift 虚拟化环境。
创建连接
可以使用以下方式创建与 Red Hat OpenShift 群集的连接:
使用 Web Studio 创建连接
- 在 Web Studio 中,打开托管 > 添加连接和资源。
- 在连接页面上,按照以下步骤配置连接:
- 选择创建新连接。
- 选择 Red Hat OpenShift 作为连接类型。
- 在连接地址字段中,输入 OpenShift 服务器的 IP 地址、主机名或 FQDN。
- 输入您的服务帐户令牌和友好连接名称。
- 将区域设置保留为默认值。
-
(这是可选页面。)单击下一步。 连接设置开始。
如果检测到自签名证书,则会出现带有证书指纹的警告页面。 要继续,请执行以下操作:
- 将指纹与服务器的指纹进行比较以验证证书的有效性。
-
如果有效,请选择信任证书并单击确定完成连接设置。
该证书被标记为受信任,并且保存指纹以供将来验证时使用。
使用 PowerShell 命令创建连接
使用 PowerShell 命令创建连接时,请提供以下信息:
- 托管连接名称
- 群集 API 地址
- 用户名
- 密码(服务帐户令牌)
- SSLThumbprint:这是 CA 证书指纹,而非 API 服务器指纹。 如果您尝试创建托管连接但未指定指纹,服务器将提供 CA 证书指纹。
- ZoneUid
- 打开 PowerShell 窗口。
- 运行
add-pssnapin citrix*。 -
运行以下命令来创建托管连接。
如果您尝试创建托管连接而不指定指纹,服务器将提供 CA 证书指纹。 例如:
$newItemParameters = @{ ConnectionType= "Custom" PluginId= "OpenShiftPluginFactory" HypervisorAddress = "https://api.myopenshiftclusteraddress.mydomain.local:6443" Path= "XDHyp:\Connections\OpenShiftConnectionName" Persist= $true UserName= "__ServiceAccount__" Password= "<service account token>" ErrorVariable= "connectionError" } & New-Item @newItemParameters $newItemParameters["SSLThumbprint"] = $connectionError[0].ErrorData.Thumbprint $connection = & New-Item @newItemParameters $brokerConnection = New-BrokerHypervisorConnection -HypHypervisorConnectionUid $connection.HypervisorConnectionUid <!--NeedCopy-->
创建托管单元
托管单元代表在其中创建了 VM 的环境。 要创建托管单元,您需要来自 OpenShift 的以下输入:
- 命名空间
- StorageClasses
- 网络附件定义
托管单元是命名空间绑定的。 这意味着一个托管单元只能访问一个命名空间并管理该命名空间下的 VM。
您当前只能使用 PowerShell 创建托管单元:
使用 PowerShell 命令创建托管单元时,请提供以下信息:
- 托管连接名称
- 托管单元名称
- 目标命名空间名称
- StorageClasses 名称
- NetworkAttachmentDefinition 名称
- 打开 PowerShell 窗口。
- 运行
add-pssnapin citrix*。 -
运行 PowerShell 命令来创建托管单元。 例如:
$HostingConnectionName = "OpenShiftConnectionName" $HostingUnitName = "HostingUnitName" $TargetNamespace = "TargetNamespaceName" $StorageClassToUse = "YourStorageClassesName" $NetworkAttachmentDefinition = "YourNetworkAttachmentDefinitionName" New-HypStorage ` -StoragePath @("XDHyp:\Connections\$HostingConnectionName\$TargetNamespace.namespace\$StorageClassToUse.storage") ` -StorageType "TemporaryStorage" New-Item ` -CustomProperties "" ` -HypervisorConnectionName $HostingConnectionName ` -NetworkPath @("XDHyp:\Connections\$HostingConnectionName\$TargetNamespace.namespace\$NetworkAttachmentDefinition.network") ` -Path @("XDHyp:\HostingUnits\$HostingUnitName") -RootPath "XDHyp:\Connections\$HostingConnectionName\$TargetNamespace.namespace" ` -StoragePath @("XDHyp:\Connections\$HostingConnectionName\$TargetNamespace.namespace\$StorageClassToUse.storage") <!--NeedCopy-->
接下来要去哪里
- 如果您正在执行初始部署过程,请参阅创建计算机目录
- 有关 Red Hat OpenShift 的具体信息,请参阅创建 Red Hat OpenShift 目录
更多信息
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.