- service principal
- resource groupname
- subnet id of subnet where will be AKS
command:
| # Pull base image. | |
| FROM ubuntu:latest | |
| RUN \ | |
| # Update | |
| apt-get update -y && \ | |
| # Install Unzip | |
| apt-get install unzip -y && \ | |
| # need wget | |
| apt-get install wget -y && \ |
| docker run -p 3306:3306 --name mysql2 -e MYSQL_ROOT_PASSWORD=test -e MYSQL_ROOT_HOST=% -d mysql/mysql-server:latest |
| { | |
| "apiVersion": "vlabs", | |
| "properties": { | |
| "orchestratorProfile": { | |
| "orchestratorType": "Kubernetes" | |
| }, | |
| "masterProfile": { | |
| "count": 1, | |
| "dnsPrefix": "", | |
| "vmSize": "Standard_D2_v2" |
| #!/bin/bash | |
| GRE='\033[1;32m' | |
| RED='\033[1;31m' | |
| NC='\033[0m' # No Color | |
| function checkport { | |
| if nc -zv -w10 $1 $2 <<< '' &> /dev/null | |
| then |