Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2018-09-29 06:50:36
Size: 178
Editor: PieterSmit
Comment:
Revision 3 as of 2018-09-29 10:50:04
Size: 791
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 * {{{ az aks install-cli }}}
 * browse
 * in container add the kubectl {{{
az aks install-cli }}}
Line 9: Line 9:
 * list subscriptions {{{
az account list --output table }}}
 * set subscription to the one that contains k8s {{{
az account set --subscription xx-xx-xx
}}}
Line 10: Line 15:
 * run az proxy to connect browser to kubernets admin in cloud {{{
Proxy running on http://127.0.0.1:8001/
Press CTRL+C to close the tunnel...
Forwarding from 127.0.0.1:8001 -> 9090

## Problem only binds to loopback, in a container, if not using container for microsoft/azure-cli skip next command.
nc -v -lk -p 8001 -s $(hostname -i) -e /usr/bin/nc 127.0.0.1 8001
}}}
  * List namespaces {{{
kubectl get namespaces
}}}

Kubernets cluster in Azure cloud

  • Use az tool, with docker run -it microsoft/azure-cli
  • in container add the kubectl

    az aks install-cli 
  • list subscriptions

    az account list --output table 
  • set subscription to the one that contains k8s

    az account set --subscription xx-xx-xx
  • run az proxy to connect browser to kubernets admin in cloud

    Proxy running on http://127.0.0.1:8001/
    Press CTRL+C to close the tunnel...
    Forwarding from 127.0.0.1:8001 -> 9090
    
    ## Problem only binds to loopback, in a container, if not using container for microsoft/azure-cli skip next command.
    nc -v -lk -p 8001 -s $(hostname -i) -e /usr/bin/nc 127.0.0.1 8001
    • List namespaces

      kubectl get namespaces

...

k8s/Azure (last edited 2023-03-09 02:01:02 by PieterSmit)