forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Improve consistency in Azure docs
- move `az aks create` to a separate file - remove `--generate-ssh-keys` as it's not required - use long flag names consistently - ensure each version creates 2-node clusters - ensure each version calls `az group create` - avoid asking user copy-paste API credentials, utilise exsiting dependency on `jq` Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
- Loading branch information
1 parent
0793cb9
commit ab3f96c
Showing
4 changed files
with
35 additions
and
25 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
Documentation/gettingstarted/k8s-install-aks-create-cluster.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. note:: **Do NOT specify the '--network-policy' flag** when creating the cluster, | ||
as this will cause the Azure CNI plugin to push down unwanted iptables rules: | ||
|
||
.. code:: bash | ||
export RESOURCE_GROUP_NAME=aks-test | ||
export CLUSTER_NAME=aks-test | ||
export LOCATION=westeurope | ||
az group create --name $RESOURCE_GROUP_NAME --location $LOCATION | ||
az aks create \ | ||
--resource-group $RESOURCE_GROUP_NAME \ | ||
--name $CLUSTER_NAME \ | ||
--location $LOCATION \ | ||
--node-count 2 \ | ||
--network-plugin azure | ||
.. note:: When setting up AKS, it is important to use the flag | ||
``--network-plugin azure`` to ensure that CNI mode is enabled. |
4 changes: 4 additions & 0 deletions
4
Documentation/gettingstarted/k8s-install-aks-get-credentials.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
.. code:: bash | ||
az aks get-credentials --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters