az k8s-runtime bgp-peer
Note
此參考是 Azure CLI 的 k8s 執行時間 延伸模組的一部分(2.70.0 版或更高版本)。 當您第一次 執行 az k8s-runtime bgp-peer 命令時,擴充功能會自動安裝。 深入了解擴充功能。
管理 Arc Kubernetes 叢集的 BGP 對等互連。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az k8s-runtime bgp-peer create |
建立 BgpPeer。 |
Extension | GA |
| az k8s-runtime bgp-peer delete |
刪除 BgpPeer。 |
Extension | GA |
| az k8s-runtime bgp-peer list |
依父代列出 BgpPeer 資源。 |
Extension | GA |
| az k8s-runtime bgp-peer show |
取得 BgpPeer。 |
Extension | GA |
| az k8s-runtime bgp-peer update |
更新 BgpPeer。 |
Extension | GA |
| az k8s-runtime bgp-peer wait |
將 CLI 置於等候狀態,直到符合條件為止。 |
Extension | GA |
az k8s-runtime bgp-peer create
建立 BgpPeer。
az k8s-runtime bgp-peer create --bgp-peer-name
--resource-uri
[--bfd-profile]
[--bgp-multi-hop {Disabled, Enabled}]
[--hold-time]
[--keep-alive-time]
[--my-asn]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--node-selector]
[--peer-address]
[--peer-asn]
[--peer-port]
範例
建立 BGP 對等互連
az k8s-runtime bgp-peer create --bgp-peer-name bgpPeer1 --resource-uri subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1 --my-asn 10000 --peer-asn 20000 --peer-address 192.168.50.1
必要參數
BgpPeer 的名稱。
資源的完整 Azure Resource Manager 標識碼。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
BFD 設定檔。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
EBGP 多重躍點。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
每個RFC4271保留時間。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
每個RFC4271的保留時間。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
我的 ASN。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
動態標籤對應,用來選取要與對等互連的相關節點。 例如,如果您想要只針對標籤為 「a=b」 的節點建立 BGP 對等互連,請在字段中指定 {“a”: “b”} 。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
對等位址。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
對等 ASN。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
對等 BGP 埠。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az k8s-runtime bgp-peer delete
刪除 BgpPeer。
az k8s-runtime bgp-peer delete --bgp-peer-name
--resource-uri
[--yes]
範例
刪除 BGP 對等互連
az k8s-runtime bgp-peer delete --bgp-peer-name bgpPeer1 --resource-uri subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1
必要參數
BgpPeer 的名稱。
資源的完整 Azure Resource Manager 標識碼。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az k8s-runtime bgp-peer list
依父代列出 BgpPeer 資源。
az k8s-runtime bgp-peer list --resource-uri
[--max-items]
[--next-token]
範例
列出叢集中的所有 BGP 對等互連
az k8s-runtime bgp-peer list --resource-uri subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1
必要參數
資源的完整 Azure Resource Manager 標識碼。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。
| 屬性 | 值 |
|---|---|
| 參數群組: | Pagination Arguments |
標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。
| 屬性 | 值 |
|---|---|
| 參數群組: | Pagination Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az k8s-runtime bgp-peer show
取得 BgpPeer。
az k8s-runtime bgp-peer show --bgp-peer-name
--resource-uri
範例
取得 BGP 對等
az k8s-runtime bgp-peer show --bgp-peer-name bgpPeer1 --resource-uri subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1
必要參數
BgpPeer 的名稱。
資源的完整 Azure Resource Manager 標識碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az k8s-runtime bgp-peer update
更新 BgpPeer。
az k8s-runtime bgp-peer update --bgp-peer-name
--resource-uri
[--add]
[--bfd-profile]
[--bgp-multi-hop {Disabled, Enabled}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--hold-time]
[--keep-alive-time]
[--my-asn]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--node-selector]
[--peer-address]
[--peer-asn]
[--peer-port]
[--remove]
[--set]
範例
更新 BGP 對等互連
az k8s-runtime bgp-peer update --bgp-peer-name bgpPeer1 --resource-uri subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/example/providers/Microsoft.Kubernetes/connectedClusters/cluster1 --my-asn 10000 --peer-asn 20000 --peer-address 192.168.50.1
必要參數
BgpPeer 的名稱。
資源的完整 Azure Resource Manager 標識碼。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
藉由指定路徑和索引鍵值組,將物件加入物件清單。 範例: --add property.listProperty <key=value, string or JSON string>.
| 屬性 | 值 |
|---|---|
| 參數群組: | Generic Update Arguments |
BFD 設定檔。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
EBGP 多重躍點。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
使用 'set' 或 'add' 時,請保留字串常值,而不是嘗試轉換成 JSON。
| 屬性 | 值 |
|---|---|
| 參數群組: | Generic Update Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
每個RFC4271保留時間。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
每個RFC4271的保留時間。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
我的 ASN。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
動態標籤對應,用來選取要與對等互連的相關節點。 例如,如果您想要只針對標籤為 「a=b」 的節點建立 BGP 對等互連,請在字段中指定 {“a”: “b”} 。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
對等位址。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
對等 ASN。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
對等 BGP 埠。
| 屬性 | 值 |
|---|---|
| 參數群組: | Properties Arguments |
從清單中移除屬性或專案。 範例: --remove property.list <indexToRemove> 或 --remove propertyToRemove。
| 屬性 | 值 |
|---|---|
| 參數群組: | Generic Update Arguments |
指定要設定的屬性路徑和值,以更新物件。 範例: --set property1.property2=<value>.
| 屬性 | 值 |
|---|---|
| 參數群組: | Generic Update Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az k8s-runtime bgp-peer wait
將 CLI 置於等候狀態,直到符合條件為止。
az k8s-runtime bgp-peer wait --bgp-peer-name
--resource-uri
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
必要參數
BgpPeer 的名稱。
資源的完整 Azure Resource Manager 標識碼。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請等候在 'Succeeded' 使用 'provisioningState' 建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
等到刪除為止。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等候資源存在。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
輪詢間隔以秒為單位。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 30 |
以秒為單位的等候上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 3600 |
等到 provisioningState 更新為 'Succeeded'。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |