NetScaler VPX展開用Azureタグ
VPX展開におけるAzureタグの仕組み
始める前に
VPX GUIを使用してAzureタグ設定を追加する方法
-
VPX GUIで、Configuration > Azure > Cloud Profile に移動します。
-
「追加」をクリックしてクラウドプロファイルを作成します。クラウドプロファイルウィンドウが開きます。
-
次のフィールドに値を入力します。
-
名前: プロファイルの名前を追加します
-
仮想サーバーIPアドレス: 仮想サーバーIPアドレスは、VPXインスタンスで利用可能な空きIPアドレスから自動入力されます。詳細については、Azureポータルを使用して仮想マシンに複数のIPアドレスを割り当てるを参照してください。
-
タイプ: メニューからAZURETAGSを選択します。
-
Azureタグ名: AzureポータルでVMまたはNICに割り当てた名前を入力します。
-
Azureタグ値: AzureポータルでVMまたはNICに割り当てた値を入力します。
-
Azureポーリング期間: デフォルトでは、ポーリング期間は60秒で、これが最小値です。要件に応じて変更できます。
-
ロードバランシングサーバープロトコル: ロードバランサーがリッスンするプロトコルを選択します。
-
ロードバランシングサーバーポート: ロードバランサーがリッスンするポートを選択します。
-
Azureタグ設定: このクラウドプロファイル用に作成されるサービスグループの名前。
-
Azureタグ設定プロトコル: バックエンドサーバーがリッスンするプロトコルを選択します。
-
Azureタグ設定ポート: バックエンドサーバーがリッスンするポートを選択します。
-
-
「作成」をクリックします。
VPX CLIを使用してAzureタグ設定を追加する方法
add cloud profile `<profile name>` -type azuretags -vServerName `< vserver name>` -serviceType HTTP -IPAddress `<vserver IP address>` -port 80 -serviceGroupName `<service group name>` -boundServiceGroupSvcType HTTP -vsvrbindsvcport 80 -azureTagName `<Azure tag specified on Azure portal>` -azureTagValue `<Azure value specified on the Azure portal>` -azurePollPeriod 60
save configと入力します。
add cloud profile MyTagCloudProfile -type azuretags -vServerName MyTagVServer -serviceType HTTP -IPAddress 40.115.116.57 -port 80 -serviceGroupName MyTagsServiceGroup -boundServiceGroupSvcType HTTP -vsvrbindsvcport 80 -azureTagName myTagName -azureTagValue myTagValue -azurePollPeriod 60
Done
show cloudprofileと入力します。
show cloudprofile
1) Name: MyTagCloudProfile Type: azuretags VServerName: MyTagVServer ServiceType: HTTP IPAddress: 52.178.209.133 Port: 80 ServiceGroupName: MyTagsServiceGroup BoundServiceGroupSvcType: HTTP
Vsvrbindsvcport: 80 AzureTagName: myTagName AzureTagValue: myTagValue AzurePollPeriod: 60 GraceFul: NO Delay: 60
<cloud profile name>」と入力します。
> rm cloudprofile MyTagCloudProfile
Done
トラブルシューティング
#> rm servicegroup <serviceGroupName>
#> rm server <name>
#> shell
# PID=`ps -aux | grep rain_tags | awk '{print $2}'`; kill -9 $PID