DEMO - AKS
$ az login
$ az group create --name k8s-summit --location eastasia
$ az aks create \
--name aks-2020 \
--resource-group k8s-summit \
--node-count 2
# 等待建置完成 ~
# 設定 kubeconfig
$ az aks get-credentials --resource-group k8s-summit --name aks-2020
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
aks-nodepool1-30396539-vmss000000 Ready agent 21m v1.17.9
aks-nodepool1-30396539-vmss000001 Ready agent 20m v1.17.9
Slide 31
Slide 31 text
DEMO - GKE
# 取得操作權限: 登入帳號, 設定隨意專案, 預設區域 26 (asia-east1-b)
$ gcloud init
$ gcloud container clusters create gke-2020 --num-nodes=2
# 等待建置完成 ~
# 設定 kubeconfig
$ gcloud container clusters get-credentials gke-2020
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
gke-gke-2020-default-pool-ed94fc94-l7cs Ready 6m59s
v1.15.12-gke.2
gke-gke-2020-default-pool-ed94fc94-rfkz Ready 6m59s
v1.15.12-gke.2
Slide 32
Slide 32 text
DEMO - EKS
$ export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
$ export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
$ export AWS_DEFAULT_REGION=us-west-2
$ eksctl create cluster \
--name eks-2020 \
--managed \
--node-type t3.medium
# 等待建置完成, 自動更新 kubeconfig
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-192-168-31-192.us-west-2.compute.internal Ready 3m33s
v1.17.9-eks-4c6976
ip-192-168-89-55.us-west-2.compute.internal Ready 3m52s
v1.17.9-eks-4c6976
Helm
wordpress/
Chart.yaml # A YAML file containing information about the chart
LICENSE # OPTIONAL: A plain text file containing the license for the chart
README.md # OPTIONAL: A human-readable README file
values.yaml # The default configuration values for this chart
values.schema.json # OPTIONAL: A JSON Schema for imposing a structure on the values.yaml
file
charts/ # A directory containing any charts upon which this chart depends.
crds/ # Custom Resource Definitions
templates/ # A directory of templates that, when combined with values,
deployment.yaml
service.yaml
configmap.yaml
ingress.yaml
# will generate valid Kubernetes manifest files.
templates/NOTES.txt # OPTIONAL: A plain text file containing short usage notes
感謝您參加今天的活動!歡迎填寫此份問卷取得價 值25美元的AWS Credit Code,請務必正確填
寫資訊,以確保後續順利提供 Credit code,謝謝!
Thank you for joining the event today! Please take a few minutes to finish the survey and make
sure you check the box to receive US$25 AWS credits. Thank you for your time.