Updated 10. Setting the solution up in AKS (Azure Kubernetes Service) (markdown)
parent
065747e589
commit
3dbe714f06
@ -123,6 +123,44 @@ You should see the Kubernetes dashboard, similar to the following screenshot if
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### Select the right Kubernetes context when having multiple clusters
|
||||||
|
|
||||||
|
When you have multiple Kubernetes clusters in AKS or even if you want to switch and deploy to a local Kubernetes cluster in the PC with "Docker for Windows" with Kuberentes support, you need to "point" to the right cluster before running `kubectl` commands.
|
||||||
|
|
||||||
|
In order to see the contexts you have in your local PC, type:
|
||||||
|
|
||||||
|
>```
|
||||||
|
>kubectl config get-contexts
|
||||||
|
>```
|
||||||
|
You should see something like the following:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
If you need to select a different context because the cluster you want to use is not the current one selected, type:
|
||||||
|
|
||||||
|
>```
|
||||||
|
>kubectl config use-context YoureShopAksCluster
|
||||||
|
>```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
So when you use `kubectl`, it'll be managing that particular cluster:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Now, you can also manually run the Kubernetes proxy with:
|
||||||
|
>```
|
||||||
|
>kubectl proxy
|
||||||
|
>```
|
||||||
|
|
||||||
|
So when you open the Kubernetes dashboard it'll be targeting the right cluster, too, when typeing the following URL into the browser:
|
||||||
|
|
||||||
|
>```
|
||||||
|
>URL: http://localhost:8001/#!/cluster
|
||||||
|
>```
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
## Important: Store your credentials/secrets for Kubernetes and ACR in a safe place!
|
## Important: Store your credentials/secrets for Kubernetes and ACR in a safe place!
|
||||||
|
|
||||||
The script and Azure CLI create all the infrastructure very easily. However, if you want to re-use the same Kubernetes credentials or re-use the same Azure ACR registry, it is important that you store your credentials in a safe place.
|
The script and Azure CLI create all the infrastructure very easily. However, if you want to re-use the same Kubernetes credentials or re-use the same Azure ACR registry, it is important that you store your credentials in a safe place.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user