- 19 Regions, 57 Availability Zones with more coming.
- A region is a geographical area. Each region consists of 2 or more availability zones.
- An availability zone is one or more discrete data centres, each with redundant power, networking and connectivity, housed in seperate facilities.
- One subnet equals one availability zone.
- Edge locations are endpoints for AWS which are used for caching content. Typically this consists of CloudFront, Amazon's Content Delivery Network (CDN)
|Region Name| Region| Endpoint| Protocol|
[ToC]
本練習內容用來架設一評等網站,網站由多個元件所組成。 包含一個 Web 前端、一個儲存所擷取資料的文件資料庫,以及一個 RESTful API,並使用 Kubernetes 作為其計算平台。在本課程中,將會逐步執行工作,將多容器應用程式部署至 Azure Kubernetes Service (AKS) 上的 Kubernetes
- Azure Subscription (Azure 訂用帳戶)
- 需指派使用者為訂用帳戶中 Owner/Contributor 權限:使用 Azure 入口網站指派 Azure 角色-Azure RBAC | Microsoft Docs (建議提供訂閱帳戶這層的權限而非單一資源群組)
- 使用者可以在 AAD 中註冊應用程式
This file contains hidden or 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
| # connectivity subscription | |
| az group create --name subscription-connectivity --location eastus | |
| az network private-dns zone create -g subscription-connectivity \ | |
| -n privatelink.eastus.azmk8s.io | |
| AKS_PRIVATE_DNS_ZONE_ID=$(az network private-dns zone show -g subscription-connectivity \ | |
| -n privatelink.eastus.azmk8s.io --query id -o tsv) |
This file contains hidden or 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
| #!/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 |
This file contains hidden or 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
| --- | |
| - hosts: localhost | |
| connection: local | |
| become: yes | |
| become_user: root | |
| become_method: sudo | |
| tasks: | |
| - name: Google Chrome PGP Key | |
| apt_key: url=https://dl.google.com/linux/linux_signing_key.pub state=present |
This file contains hidden or 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
| # configurations | |
| $workingDirectory = "$(System.DefaultWorkingDirectory)" | |
| $sourceArtifact = "ZIP_FILE_THAT_HAS_YOUR_AAPLICATION_(PRODUCED_BY_BUILD)" | |
| $entryPointDll = "FILE_THAT_HAS_STATIC_VOID_MAIN.dll" | |
| $webJobName = "THE_NAME_OF_THE_WEBJOB" | |
| $jobType = "continuous" | |
| $appName = "THE_NAME_OF_AZURE_WEB_APP_THAT_WILL_HOST_JOB" | |
| $resourceGroupName = "GROUP_NAME" | |
| Write-Host "Validating artifact file" |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console