curl -sSL -o clone.c goo.gl/G45N5X# on host| AKSNODE=aks-nodepool1-32072832-0; kubectl cordon $AKSNODE && kubectl drain $AKSNODE --ignore-daemonsets=true && echo "$AKSNODE restarting" && az vm restart -g MC_containergroupeast_managedkube_eastus -n $AKSNODE && sleep 10 && kubectl uncordon $AKSNODE && until [ $(kubectl get node $AKSNODE --output=json | jq -c '.status.conditions | map(select(.type == "Ready"))[0].status') = '"True"' ]; do echo "sleeping 10 seconds\n" && sleep 10; done && echo "$AKSNODE successfully restarted" |
| { | |
| "$schema": "http://json.schemastore.org/proxies", | |
| "proxies": { | |
| "API proxy with Credentials": { | |
| "matchCondition": { | |
| "route": "/api/{*route}", | |
| "methods": [ | |
| "GET" | |
| ] | |
| }, |
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "version": "2016-09-12T23:19:28Z", | |
| "title": "ProxyAPIwithCreds" | |
| }, | |
| "host": "my-domain.com", | |
| "basePath": "/test", | |
| "schemes": [ | |
| "https" |
| alias acr-login="echo 'Fetching available Azure container registries...'; az acr list -otable --query='[*].{Name:name,Group:resourceGroup,Location:location}'; echo '\nEnter registry name:'; read azregistry; az acr credential show -n \$azregistry --query='[passwords[0]][0].value' -otsv | docker login -u \$azregistry --password-stdin \$azregistry.azurecr.io" |
| { | |
| "workbench.colorCustomizations": { | |
| "terminal.foreground": "#839496", | |
| "terminal.background": "#002833", | |
| "terminal.ansiBlack": "#003541", | |
| "terminal.ansiBlue": "#268bd2", | |
| "terminal.ansiCyan": "#2aa198", | |
| "terminal.ansiGreen": "#859901", | |
| "terminal.ansiMagenta": "#d33682", | |
| "terminal.ansiRed": "#dc322f", |