Azure 'da OpenShift kapsayıcı platformu 3,11 dağıtmaDeploy OpenShift Container Platform 3.11 in Azure
Azure 'da OpenShift kapsayıcı platformu 3,11 dağıtmak için birkaç yöntemden birini kullanabilirsiniz:You can use one of several methods to deploy OpenShift Container Platform 3.11 in Azure:
- Gerekli Azure altyapı bileşenlerini el ile dağıtabilir ve ardından OpenShift kapsayıcı platformu belgelerinitakip edebilirsiniz.You can manually deploy the necessary Azure infrastructure components and then follow the OpenShift Container Platform documentation.
- OpenShift kapsayıcı platformu kümesinin dağıtımını kolaylaştıran mevcut bir Kaynak Yöneticisi şablonunu da kullanabilirsiniz.You can also use an existing Resource Manager template that simplifies the deployment of the OpenShift Container Platform cluster.
- Diğer bir seçenek de Azure Market Teklifinikullanmaktır.Another option is to use the Azure Marketplace offer.
Tüm seçenekler için, Red Hat aboneliği gerekir.For all options, a Red Hat subscription is required. Dağıtım sırasında Red Hat Enterprise Linux örneği Red Hat aboneliğine kaydedilir ve OpenShift kapsayıcı platformu için yetkilendirmeleri içeren havuz KIMLIĞINE eklenir.During the deployment, the Red Hat Enterprise Linux instance is registered to the Red Hat subscription and attached to the Pool ID that contains the entitlements for OpenShift Container Platform. Geçerli bir Red Hat abonelik Yöneticisi (RHSM) Kullanıcı adı, parola ve havuz KIMLIĞINIZ olduğundan emin olun.Make sure you have a valid Red Hat Subscription Manager (RHSM) username, password, and Pool ID. Etkinleştirme anahtarı, kuruluş KIMLIĞI ve havuz KIMLIĞI kullanabilirsiniz.You can use an Activation Key, Org ID, and Pool ID. Bu bilgileri, ' de oturum açarak doğrulayabilirsiniz https://access.redhat.com .You can verify this information by signing in to https://access.redhat.com.
OpenShift kapsayıcı platformu Kaynak Yöneticisi 3,11 şablonunu kullanarak dağıtmaDeploy using the OpenShift Container Platform Resource Manager 3.11 template
Özel kümelerPrivate Clusters
Özel OpenShift kümelerini dağıtmak, ana yük dengeleyici (Web Konsolu) veya Infra yük dengeleyici (yönlendirici) ile ilişkilendirilmiş genel bir IP 'yi kullanmaktan daha fazlasını gerektirir.Deploying private OpenShift clusters requires more than just not having a public IP associated to the master load balancer (web console) or to the infra load balancer (router). Özel bir küme genellikle özel bir DNS sunucusu (varsayılan Azure DNS değil), özel bir etki alanı adı (örneğin, contoso.com) ve önceden tanımlanmış sanal ağlar kullanır.A private cluster generally uses a custom DNS server (not the default Azure DNS), a custom domain name (such as contoso.com), and pre-defined virtual network(s). Özel kümeler için, Sanal ağınızı, uygun tüm alt ağlar ve DNS sunucusu ayarları önceden ile yapılandırmanız gerekir.For private clusters, you need to configure your virtual network with all the appropriate subnets and DNS server settings in advance. Ardından, küme tarafından kullanılacak mevcut alt ağı belirtmek için Existingmastersubnetreference, existingInfraSubnetReference, Existingcnssubnetreference ve existingnodesubnetreference kullanın.Then use existingMasterSubnetReference, existingInfraSubnetReference, existingCnsSubnetReference, and existingNodeSubnetReference to specify the existing subnet for use by the cluster.
Özel ana öğe seçilirse (Masterclustertype= Private), masterprivateclusterıp IÇIN statik bir özel IP belirtilmelidir.If private master is selected (masterClusterType=private), a static private IP needs to be specified for masterPrivateClusterIp. Bu IP, ana yük dengeleyicinin ön ucuna atanacak.This IP will be assigned to the front end of the master load balancer. IP, ana alt ağ için CıDR içinde olmalı ve kullanımda olmalıdır.The IP must be within the CIDR for the master subnet and not in use. Masterclusterdnstype , "Custom" olarak ayarlanmalıdır ve masterclusterdns için ana DNS adı belirtilmelidir.masterClusterDnsType must be set to "custom" and the master DNS name must be provided for masterClusterDns. DNS adı statik özel IP ile eşlenmelidir ve ana düğümlerde konsola erişmek için kullanılacaktır.The DNS name must map to the static Private IP and will be used to access the console on the master nodes.
Özel yönlendirici seçilmişse (Routerclustertype= Private), routerprivateclusterıp IÇIN statik bir özel IP belirtilmelidir.If private router is selected (routerClusterType=private), a static private IP needs to be specified for routerPrivateClusterIp. Bu IP, Infra yük dengeleyicinin ön ucuna atanır.This IP will be assigned to the front end of the infra load balancer. IP, Infra alt ağı için CIDR içinde olmalı ve kullanımda olmalıdır.The IP must be within the CIDR for the infra subnet and not in use. Routingsubdomaintype , "Custom" olarak ve yönlendirme IÇIN joker karakter DNS adı belirtilmelidir.routingSubDomainType must be set to "custom" and the wildcard DNS name for routing must be provided for routingSubDomain.
Özel ana bilgisayarlar ve özel yönlendirici seçilirse, özel etki alanı adının de domainName için girilmesi gerekirIf private masters and private router are selected, the custom domain name must also be entered for domainName
Dağıtım başarılı olduktan sonra savunma düğümü, SSH ile kullanabileceğiniz tek bir genel IP 'nin bulunduğu düğümdür.After successful deployment, the Bastion Node is the only node with a public IP that you can ssh into. Ana düğümler genel erişim için yapılandırılmış olsa bile, SSH erişimi için sunulmazlar.Even if the master nodes are configured for public access, they aren't exposed for ssh access.
Kaynak Yöneticisi şablonu kullanarak dağıtmak için, giriş parametrelerini sağlamak üzere bir parametreler dosyası kullanırsınız.To deploy using the Resource Manager template, you use a parameters file to supply the input parameters. Dağıtımı daha fazla özelleştirmek için GitHub deposunun çatalını yapın ve uygun öğeleri değiştirin.To further customize the deployment, fork the GitHub repo and change the appropriate items.
Bazı yaygın özelleştirme seçenekleri şunlardır, ancak bunlarla sınırlı değildir:Some common customization options include, but aren't limited to:
- Savunma VM boyutu (azuredeploy.jsdeğişken)Bastion VM size (variable in azuredeploy.json)
- Adlandırma kuralları (azuredeploy.jsdeğişkenler)Naming conventions (variables in azuredeploy.json)
- OpenShift küme özellikleri, Hosts dosyası aracılığıyla değiştirildi (deployOpenShift.sh)OpenShift cluster specifics, modified via hosts file (deployOpenShift.sh)
Parametreler dosyasını yapılandırmaConfigure the parameters file
OpenShift kapsayıcı platformu şablonunda , OpenShift kapsayıcı platformunun farklı sürümleri için kullanılabilen birden çok dal vardır.The OpenShift Container Platform template has multiple branches available for different versions of OpenShift Container Platform. Gereksinimlerinize bağlı olarak, depoyu doğrudan depodan dağıtabilir veya dağıtmadan önce şablonlarda veya betiklerinizde özel değişiklikler yapabilirsiniz.Based on your needs, you can deploy directly from the repo or you can fork the repo and make custom changes to the templates or scripts before deploying.
appId
Daha önce parametresi için oluşturduğunuz hizmet sorumlusunun değerini kullanın aadClientId
.Use the appId
value from the service principal you created earlier for the aadClientId
parameter.
Aşağıdaki örnek, tüm gerekli girişlerle birlikte azuredeploy.parameters.jsadlı bir parametre dosyasını gösterir.The following example shows a parameters file named azuredeploy.parameters.json with all the required inputs.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"_artifactsLocation": {
"value": "https://raw.githubusercontent.com/Microsoft/openshift-container-platform/master"
},
"location": {
"value": "eastus"
},
"masterVmSize": {
"value": "Standard_E2s_v3"
},
"infraVmSize": {
"value": "Standard_D4s_v3"
},
"nodeVmSize": {
"value": "Standard_D4s_v3"
},
"cnsVmSize": {
"value": "Standard_E4s_v3"
},
"osImageType": {
"value": "defaultgallery"
},
"marketplaceOsImage": {
"value": {
"publisher": "RedHat",
"offer": "RHEL",
"sku": "7-RAW",
"version": "latest"
}
},
"storageKind": {
"value": "changeme"
},
"openshiftClusterPrefix": {
"value": "changeme"
},
"minorVersion": {
"value": "69"
},
"masterInstanceCount": {
"value": 3
},
"infraInstanceCount": {
"value": 3
},
"nodeInstanceCount": {
"value": 3
},
"cnsInstanceCount": {
"value": 3
},
"osDiskSize": {
"value": 64
},
"dataDiskSize": {
"value": 64
},
"cnsGlusterDiskSize": {
"value": 128
},
"adminUsername": {
"value": "changeme"
},
"enableMetrics": {
"value": "false"
},
"enableLogging": {
"value": "false"
},
"enableCNS": {
"value": "false"
},
"rhsmUsernameOrOrgId": {
"value": "changeme"
},
"rhsmPoolId": {
"value": "changeme"
},
"rhsmBrokerPoolId": {
"value": "changeme"
},
"sshPublicKey": {
"value": "GEN-SSH-PUB-KEY"
},
"keyVaultSubscriptionId": {
"value": "255a325e-8276-4ada-af8f-33af5658eb34"
},
"keyVaultResourceGroup": {
"value": "changeme"
},
"keyVaultName": {
"value": "changeme"
},
"enableAzure": {
"value": "true"
},
"aadClientId": {
"value": "changeme"
},
"domainName": {
"value": "contoso.com"
},
"masterClusterDnsType": {
"value": "default"
},
"masterClusterDns": {
"value": "console.contoso.com"
},
"routingSubDomainType": {
"value": "nipio"
},
"routingSubDomain": {
"value": "apps.contoso.com"
},
"virtualNetworkNewOrExisting": {
"value": "new"
},
"virtualNetworkName": {
"value": "changeme"
},
"addressPrefixes": {
"value": "10.0.0.0/14"
},
"masterSubnetName": {
"value": "changeme"
},
"masterSubnetPrefix": {
"value": "10.1.0.0/16"
},
"infraSubnetName": {
"value": "changeme"
},
"infraSubnetPrefix": {
"value": "10.2.0.0/16"
},
"nodeSubnetName": {
"value": "changeme"
},
"nodeSubnetPrefix": {
"value": "10.3.0.0/16"
},
"existingMasterSubnetReference": {
"value": "/subscriptions/abc686f6-963b-4e64-bff4-99dc369ab1cd/resourceGroups/vnetresourcegroup/providers/Microsoft.Network/virtualNetworks/openshiftvnet/subnets/mastersubnet"
},
"existingInfraSubnetReference": {
"value": "/subscriptions/abc686f6-963b-4e64-bff4-99dc369ab1cd/resourceGroups/vnetresourcegroup/providers/Microsoft.Network/virtualNetworks/openshiftvnet/subnets/infrasubnet"
},
"existingCnsSubnetReference": {
"value": "/subscriptions/abc686f6-963b-4e64-bff4-99dc369ab1cd/resourceGroups/vnetresourcegroup/providers/Microsoft.Network/virtualNetworks/openshiftvnet/subnets/cnssubnet"
},
"existingNodeSubnetReference": {
"value": "/subscriptions/abc686f6-963b-4e64-bff4-99dc369ab1cd/resourceGroups/vnetresourcegroup/providers/Microsoft.Network/virtualNetworks/openshiftvnet/subnets/nodesubnet"
},
"masterClusterType": {
"value": "public"
},
"masterPrivateClusterIp": {
"value": "10.1.0.200"
},
"routerClusterType": {
"value": "public"
},
"routerPrivateClusterIp": {
"value": "10.2.0.200"
},
"routingCertType": {
"value": "selfsigned"
},
"masterCertType": {
"value": "selfsigned"
}
}
}
Parametreleri kendi özel bilgileriniz ile değiştirin.Replace the parameters with your specific information.
Farklı yayınlar farklı parametrelere sahip olabilir, bu nedenle kullandığınız dal için gerekli parametreleri doğrulayın.Different releases may have different parameters so verify the necessary parameters for the branch you use.
Açıklanan dosyada azuredeploy.Parameters.jsazuredeploy.Parameters.json file explained
ÖzellikProperty | AçıklamaDescription | Geçerli seçeneklerValid Options | Varsayılan değerDefault Value |
---|---|---|---|
_artifactsLocation |
Yapıtlar URL 'SI (JSON, betikler, vb.)URL for artifacts (json, scripts, etc.) | https: / /RAW.githubusercontent.com/Microsoft/OpenShift-Container-platform/Masterhttps://raw.githubusercontent.com/Microsoft/openshift-container-platform/master | |
location |
Kaynakların dağıtılacağı Azure bölgesiAzure region to deploy resources to | ||
masterVmSize |
Ana VM 'nin boyutu.Size of the Master VM. Dosyadaki azuredeploy.jslistelenen izin verilen VM boyutlarından birini seçinSelect from one of the allowed VM sizes listed in the azuredeploy.json file | Standard_E2s_v3Standard_E2s_v3 | |
infraVmSize |
Infra VM 'sinin boyutu.Size of the Infra VM. Dosyadaki azuredeploy.jslistelenen izin verilen VM boyutlarından birini seçinSelect from one of the allowed VM sizes listed in the azuredeploy.json file | Standard_D4s_v3Standard_D4s_v3 | |
nodeVmSize |
Uygulama düğümü VM 'sinin boyutu.Size of the App Node VM. Dosyadaki azuredeploy.jslistelenen izin verilen VM boyutlarından birini seçinSelect from one of the allowed VM sizes listed in the azuredeploy.json file | Standard_D4s_v3Standard_D4s_v3 | |
cnsVmSize |
Kapsayıcı yerel depolama (CNS) düğüm VM 'sinin boyutu.Size of the Container Native Storage (CNS) Node VM. Dosyadaki azuredeploy.jslistelenen izin verilen VM boyutlarından birini seçinSelect from one of the allowed VM sizes listed in the azuredeploy.json file | Standard_E4s_v3Standard_E4s_v3 | |
osImageType |
Kullanılacak RHEL görüntüsü.The RHEL image to use. defaultgallery: Isteğe bağlı; Market: üçüncü taraf görüntüdefaultgallery: On-Demand; marketplace: third-party image | defaultgallerydefaultgallery Marketmarketplace |
defaultgallerydefaultgallery |
marketplaceOsImage |
osImageType Market ise, Market teklifinin ' Yayımcı ', ' teklif ', ' SKU ' ve ' sürüm ' için uygun değerleri girin.If osImageType is marketplace, then enter the appropriate values for 'publisher', 'offer', 'sku', 'version' of the marketplace offer. Bu parametre bir nesne türüdürThis parameter is an object type |
||
storageKind |
Kullanılacak depolamanın türüThe type of storage to be used | lebilmesimanaged yönetilmeyenunmanaged |
lebilmesimanaged |
openshiftClusterPrefix |
Tüm düğümlerde konak adlarını yapılandırmak için kullanılan küme öneki.Cluster Prefix used to configure hostnames for all nodes. 1 ila 20 karakter arasındaBetween 1 and 20 characters | MyClustermycluster | |
minoVersion |
Dağıtım için OpenShift kapsayıcı platformu 3,11 ' ün ikincil sürümüThe minor version of OpenShift Container Platform 3.11 to deploy | 6969 | |
masterInstanceCount |
Dağıtılacak ana düğüm sayısıNumber of Masters nodes to deploy | 1, 3, 51, 3, 5 | 33 |
infraInstanceCount |
Dağıtılacak Infra düğümlerinin sayısıNumber of infra nodes to deploy | 1, 2, 31, 2, 3 | 33 |
nodeInstanceCount |
Dağıtılacak düğüm sayısıNumber of Nodes to deploy | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 301, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 | 22 |
cnsInstanceCount |
Dağıtılacak CNS node sayısıNumber of CNS nodes to deploy | 3, 43, 4 | 33 |
osDiskSize |
VM için işletim sistemi diskinin boyutu (GB olarak)Size of OS disk for the VM (in GB) | 64, 128, 256, 512, 1024, 204864, 128, 256, 512, 1024, 2048 | 6464 |
dataDiskSize |
Docker birimi için düğümlere iliştirilecek veri diski boyutu (GB olarak)Size of data disk to attach to nodes for Docker volume (in GB) | 32, 64, 128, 256, 512, 1024, 204832, 64, 128, 256, 512, 1024, 2048 | 6464 |
cnsGlusterDiskSize |
GlusterFS tarafından kullanılmak üzere CNS Nodes 'a iliştirilecek veri diski boyutu (GB olarakSize of data disk to attach to CNS nodes for use by glusterfs (in GB | 32, 64, 128, 256, 512, 1024, 204832, 64, 128, 256, 512, 1024, 2048 | 128128 |
adminUsername |
Hem işletim sistemi (VM) oturum açma hem de ilk OpenShift kullanıcısı için Yönetici Kullanıcı adıAdmin username for both OS (VM) login and initial OpenShift user | ocpadminocpadmin | |
enableMetrics |
Ölçümleri etkinleştirin.Enable Metrics. Ölçümler daha fazla kaynak gerektirir, bu nedenle Infra sanal makinesi için uygun boyutu seçinMetrics require more resources so select proper size for Infra VM | truetrue yanlışfalse |
yanlışfalse |
enableLogging |
Günlüğe kaydetmeyi etkinleştirin.Enable Logging. elagra Search Pod, 8 GB RAM gerektirdiğinden Infra VM için uygun boyutu seçinelasticsearch pod requires 8 GB RAM so select proper size for Infra VM | truetrue yanlışfalse |
yanlışfalse |
enableCNS |
Kapsayıcı yerel depolamayı etkinleştirEnable Container Native Storage | truetrue yanlışfalse |
yanlışfalse |
rhsmUsernameOrOrgId |
Red Hat abonelik Yöneticisi Kullanıcı adı veya kuruluş KIMLIĞIRed Hat Subscription Manager Username or Organization ID | ||
rhsmPoolId |
İşlem düğümleri için OpenShift yetkilendirmelerinizi içeren Red Hat abonelik Yöneticisi havuz KIMLIĞIThe Red Hat Subscription Manager Pool ID that contains your OpenShift entitlements for compute nodes | ||
rhsmBrokerPoolId |
Ana bilgisayarlar ve Infra düğümleri için OpenShift yetkilendirmelerinizi içeren Red Hat abonelik Yöneticisi havuz kimliği.The Red Hat Subscription Manager Pool ID that contains your OpenShift entitlements for masters and infra nodes. Farklı havuz kimliğiniz yoksa, ' rhsmPoolId ' ile aynı havuz KIMLIĞINI girinIf you don't have different pool IDs, enter same pool ID as 'rhsmPoolId' | ||
sshPublicKey |
SSH ortak anahtarınızı buraya kopyalayınCopy your SSH Public Key here | ||
keyVaultSubscriptionId |
Key Vault içeren aboneliğin abonelik KIMLIĞIThe Subscription ID of the subscription that contains the Key Vault | ||
keyVaultResourceGroup |
Key Vault içeren kaynak grubunun adıThe name of the Resource Group that contains the Key Vault | ||
keyVaultName |
Oluşturduğunuz Key Vault adıThe name of the Key Vault you created | ||
enableAzure |
Azure bulut sağlayıcısını etkinleştirEnable Azure Cloud Provider | truetrue yanlışfalse |
truetrue |
aadClientId |
Hizmet sorumlusu için uygulama KIMLIĞI olarak da bilinen Azure Active Directory Istemci KIMLIĞIAzure Active Directory Client ID also known as Application ID for Service Principal | ||
domainName |
Kullanılacak özel etki alanı adının adı (varsa).Name of the custom domain name to use (if applicable). Tam özel küme dağıtmadığı takdirde "none" olarak ayarlayınSet to "none" if not deploying fully private cluster | yoknone | |
masterClusterDnsType |
OpenShift web konsolunun etki alanı türü.Domain type for OpenShift web console. ' default ', ana Infra genel IP DNS etiketini kullanır.'default' will use DNS label of master infra public IP. ' Custom ' kendi adınızı tanımlamanızı sağlar'custom' allows you to define your own name | defaultdefault özelcustom |
defaultdefault |
masterClusterDns |
İçin ' özel ' seçtiyseniz OpenShift web konsoluna erişmek için kullanılacak özel DNS adı masterClusterDnsType The custom DNS name to use to access the OpenShift web console if you selected 'custom' for masterClusterDnsType |
console.contoso.comconsole.contoso.com | |
routingSubDomainType |
' Nipio ' olarak ayarlanırsa, routingSubDomain Nip.io kullanır.If set to 'nipio', routingSubDomain will use nip.io. Yönlendirme için kullanmak istediğiniz kendi etki alanınız varsa ' Custom ' kullanınUse 'custom' if you have your own domain that you want to use for routing |
nipionipio özelcustom |
nipionipio |
routingSubDomain |
İçin ' Custom ' seçtiyseniz, yönlendirme için kullanmak istediğiniz joker karakter DNS adı routingSubDomainType The wildcard DNS name you want to use for routing if you selected 'custom' for routingSubDomainType |
apps.contoso.comapps.contoso.com | |
virtualNetworkNewOrExisting |
Mevcut bir sanal ağın kullanılıp kullanılmayacağını seçin veya yeni bir sanal ağ oluşturunSelect whether to use an existing Virtual Network or create a new Virtual Network | Mevcutexisting newnew |
newnew |
virtualNetworkResourceGroupName |
İçin ' yeni ' seçtiyseniz yeni sanal ağın kaynak grubunun adı virtualNetworkNewOrExisting Name of the Resource Group for the new Virtual Network if you selected 'new' for virtualNetworkNewOrExisting |
resourceGroup (). NameresourceGroup().name | |
virtualNetworkName |
İçin ' yeni ' seçtiyseniz oluşturulacak yeni sanal ağın adı virtualNetworkNewOrExisting The name of the new Virtual Network to create if you selected 'new' for virtualNetworkNewOrExisting |
openshiftvnetopenshiftvnet | |
addressPrefixes |
Yeni sanal ağın adres ön ekiAddress prefix of the new virtual network | 10.0.0.0/1410.0.0.0/14 | |
masterSubnetName |
Ana alt ağın adıThe name of the master subnet | mastersubnetmastersubnet | |
masterSubnetPrefix |
Ana alt ağ için kullanılan CıDR, Addresspredüzeltmesini alt kümesi olmalıdırCIDR used for the master subnet - needs to be a subset of the addressPrefix | 10.1.0.0/1610.1.0.0/16 | |
infraSubnetName |
Infra alt ağının adıThe name of the infra subnet | infrasubnetinfrasubnet | |
infraSubnetPrefix |
Infra alt ağı için kullanılan CIDR-addresspredüzeltmesinin bir alt kümesi olması gerekirCIDR used for the infra subnet - needs to be a subset of the addressPrefix | 10.2.0.0/1610.2.0.0/16 | |
nodeSubnetName |
Düğüm alt ağının adıThe name of the node subnet | nodesubnetnodesubnet | |
nodeSubnetPrefix |
Düğüm alt ağı için kullanılan CıDR-Addresspredüzeltmesini 'nin bir alt kümesi olması gerekirCIDR used for the node subnet - needs to be a subset of the addressPrefix | 10.3.0.0/1610.3.0.0/16 | |
existingMasterSubnetReference |
Ana düğümler için mevcut alt ağa tam başvuru.Full reference to existing subnet for master nodes. Yeni vNet/alt ağ oluşturulmadığında gerekli değildirNot needed if creating new vNet / Subnet | ||
existingInfraSubnetReference |
Infra düğümleri için mevcut alt ağa tam başvuru.Full reference to existing subnet for infra nodes. Yeni vNet/alt ağ oluşturulmadığında gerekli değildirNot needed if creating new vNet / Subnet | ||
existingCnsSubnetReference |
CNS Nodes için mevcut alt ağa tam başvuru.Full reference to existing subnet for CNS nodes. Yeni vNet/alt ağ oluşturulmadığında gerekli değildirNot needed if creating new vNet / Subnet | ||
existingNodeSubnetReference |
İşlem düğümleri için mevcut alt ağa tam başvuru.Full reference to existing subnet for compute nodes. Yeni vNet/alt ağ oluşturulmadığında gerekli değildirNot needed if creating new vNet / Subnet | ||
masterClusterType |
Kümenin özel veya ortak ana düğümler kullanıp kullanmadığını belirtin.Specify whether the cluster uses private or public master nodes. Özel seçilirse, ana düğümler genel bir IP aracılığıyla Internet 'e gösterilmez.If private is chosen, the master nodes won't be exposed to the Internet via a public IP. Bunun yerine, içinde belirtilen özel IP 'yi kullanır masterPrivateClusterIp Instead, it will use the private IP specified in the masterPrivateClusterIp |
publicpublic privateprivate |
publicpublic |
masterPrivateClusterIp |
Özel ana düğümler seçilirse, ana düğümlerin iç yük dengeleyici tarafından kullanılmak üzere özel bir IP adresinin belirtilmesi gerekir.If private master nodes are selected, then a private IP address must be specified for use by the internal load balancer for master nodes. Bu statik IP, ana alt ağ için CıDR bloğunda olmalıdır ve zaten kullanımda olmalıdır.This static IP must be within the CIDR block for the master subnet and not already in use. Ortak ana düğümler seçilirse, bu değer kullanılmaz ancak yine de belirtilmesi gerekirIf public master nodes are selected, this value won't be used but must still be specified | 10.1.0.20010.1.0.200 | |
routerClusterType |
Kümenin özel veya genel Infra düğümleri kullanıp kullanmayacağını belirtin.Specify whether the cluster uses private or public infra nodes. Özel seçilirse, Infra düğümleri Internet 'e genel bir IP üzerinden gösterilmez.If private is chosen, the infra nodes won't be exposed to the Internet via a public IP. Bunun yerine, içinde belirtilen özel IP 'yi kullanır routerPrivateClusterIp Instead, it will use the private IP specified in the routerPrivateClusterIp |
publicpublic privateprivate |
publicpublic |
routerPrivateClusterIp |
Özel Infra düğümleri seçilirse, Infra düğümleri için iç yük dengeleyici tarafından kullanılmak üzere özel bir IP adresinin belirtilmesi gerekir.If private infra nodes are selected, then a private IP address must be specified for use by the internal load balancer for infra nodes. Bu statik IP, Infra alt ağı için CIDR bloğunda olmalıdır ve zaten kullanımda olmalıdır.This static IP must be within the CIDR block for the infra subnet and not already in use. Ortak Infra düğümleri seçilirse, bu değer kullanılmaz ancak yine de belirtilmesi gerekirIf public infra nodes are selected, this value won't be used but must still be specified | 10.2.0.20010.2.0.200 | |
routingCertType |
Yönlendirme etki alanı veya varsayılan otomatik olarak imzalanan sertifika için özel sertifika kullan- özel sertifikalar bölümündeki yönergeleri izleyinUse custom certificate for routing domain or the default self-signed certificate - follow instructions in Custom Certificates section | selfsignedselfsigned özelcustom |
selfsignedselfsigned |
masterCertType |
Ana etki alanı için özel sertifika veya varsayılan otomatik olarak imzalanan sertifika kullan- özel sertifikalar bölümündeki yönergeleri izleyinUse custom certificate for master domain or the default self-signed certificate - follow instructions in Custom Certificates section | selfsignedselfsigned özelcustom |
selfsignedselfsigned |
Azure CLI’yi kullanarak dağıtmaDeploy using Azure CLI
Not
Aşağıdaki komut, Azure CLı 2.0.8 veya üstünü gerektirir.The following command requires Azure CLI 2.0.8 or later. CLı sürümünü az --version
komutuyla doğrulayabilirsiniz.You can verify the CLI version with the az --version
command. CLı sürümünü güncelleştirmek için bkz. Azure CLI 'Yı yüklemek.To update the CLI version, see Install Azure CLI.
Aşağıdaki örnek, OpenShift kümesini ve tüm ilgili kaynakları openkaydırıcı adlı bir kaynak grubunda myOpenShiftCluster dağıtım adı ile dağıtır.The following example deploys the OpenShift cluster and all related resources into a resource group named openshiftrg, with a deployment name of myOpenShiftCluster. Şablona doğrudan GitHub deposundan başvurulur ve dosyada azuredeploy.parameters.jsadlı bir yerel parametre dosyası kullanılır.The template is referenced directly from the GitHub repo, and a local parameters file named azuredeploy.parameters.json file is used.
az deployment group create -g openshiftrg --name myOpenShiftCluster \
--template-uri https://raw.githubusercontent.com/Microsoft/openshift-container-platform/master/azuredeploy.json \
--parameters @./azuredeploy.parameters.json
Dağıtım, dağıtılan toplam düğüm sayısına ve yapılandırılmış seçeneklere bağlı olarak en az 60 dakika sürer.The deployment takes at least 60 minutes to complete, based on the total number of nodes deployed and options configured. Dağıtım tamamlandığında, OpenShift konsolunun savunma DNS FQDN 'si ve URL 'si terminale yazdırılır.The Bastion DNS FQDN and URL of the OpenShift console prints to the terminal when the deployment finishes.
{
"Bastion DNS FQDN": "bastiondns4hawllzaavu6g.eastus.cloudapp.azure.com",
"OpenShift Console URL": "http://openshiftlb.eastus.cloudapp.azure.com/console"
}
Dağıtımın tamamlanmasını bekleyen komut satırını bağlamak istemiyorsanız, --no-wait
Grup dağıtımına yönelik seçeneklerden birini ekleyin.If you don't want to tie up the command line waiting for the deployment to complete, add --no-wait
as one of the options for the group deployment. Dağıtımdan alınan çıkış, kaynak grubunun dağıtım bölümündeki Azure portal alabilir.The output from the deployment can be retrieved from the Azure portal in the deployment section for the resource group.
OpenShift kümesine bağlanmaConnect to the OpenShift cluster
Dağıtım tamamlandığında, dağıtımın çıkış bölümünden bağlantıyı alın.When the deployment finishes, retrieve the connection from the output section of the deployment. OpenShift konsol URL'sini kullanarak, tarayıcınızla OpenShift konsoluna bağlanın.Connect to the OpenShift console with your browser by using the OpenShift Console URL. Ayrıca, savunma ana bilgisayarına SSH de ekleyebilirsiniz.You can also SSH to the Bastion host. Aşağıda Yönetici Kullanıcı adının kümeyöneticisi olduğu ve savunma genel IP DNS FQDN 'sinin bastiondns4hawllzaavu6g.eastus.cloudapp.azure.com olduğu bir örnek verilmiştir:Following is an example where the admin username is clusteradmin and the bastion public IP DNS FQDN is bastiondns4hawllzaavu6g.eastus.cloudapp.azure.com:
$ ssh clusteradmin@bastiondns4hawllzaavu6g.eastus.cloudapp.azure.com
Kaynakları temizlemeClean up resources
Kaynak grubunu, OpenShift kümesini ve artık gerekli olmadığında tüm ilgili kaynakları kaldırmak için az Group Delete komutunu kullanın.Use the az group delete command to remove the resource group, OpenShift cluster, and all related resources when they're no longer needed.
az group delete --name openshiftrg