Created
June 2, 2022 04:12
-
-
Save GitHub30/448620c268c492c6ae4214fc8b995da5 to your computer and use it in GitHub Desktop.
Google Cloud を使用したクラウド環境のデプロイと管理: チャレンジラボ
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
cd /work/dm | |
sed -i s/SET_REGION/us-east1/g prod-network.yaml | |
gcloud deployment-manager deployments create prod-network --config=prod-network.yaml | |
gcloud config set compute/zone us-east1-b | |
gcloud container clusters create kraken-production-882 \ | |
--num-nodes 2 \ | |
--network kraken-prod-vpc \ | |
--subnetwork kraken-prod-subnet\ | |
--zone us-east1-b | |
gcloud container clusters get-credentials kraken-production-882 | |
cd /work/k8s | |
for F in $(ls *.yaml); do kubectl create -f $F; done | |
gcloud config set compute/zone us-east1-b | |
gcloud compute instances create kraken-admin-124 --network-interface="subnet=kraken-mgmt-subnet" --network-interface="subnet=kraken-prod-subnet" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment