Last active
January 24, 2019 08:09
-
-
Save jacopen/45da6e262364bde923a9f1fd3c7b746b to your computer and use it in GitHub Desktop.
PKS VM停止手順
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
## aliasを設定 | |
ubuntu@ip-10-128-0-181:~$ alias bosh="BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=foo BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=10.128.4.10 bosh " | |
## VM一覧を表示 | |
ubuntu@ip-10-128-0-181:~$ bosh vms | |
Using environment '10.128.4.10' as client 'ops_manager' | |
Task 19999 | |
Task 20000 | |
Task 20001 | |
Task 20000 done | |
Task 20001 done | |
Task 19999 done | |
Deployment 'concourse' | |
Instance Process State AZ IPs VM CID VM Type Active | |
db/b9a32315-4b3b-48c0-b162-cfc271f3d7ea running ap-northeast-1a 10.128.4.13 i-0095e306e2b48f249 t2.small true | |
web/6904cfea-0cc3-4fd5-b32b-17ce6d5fafb3 running ap-northeast-1a 10.128.4.12 i-018582583d3bb94d4 t2.small true | |
worker/391c46ed-8cb2-4d13-8e09-c3a662cb233d running ap-northeast-1a 10.128.4.14 i-024e2463466000aff t2.medium true | |
3 vms | |
Deployment 'pivotal-container-service-88a62568412dda4f3cde' | |
Instance Process State AZ IPs VM CID VM Type Active | |
pivotal-container-service/9edba47d-c1ad-4a85-bb02-e5dd0b0be500 running ap-northeast-1a 10.128.4.11 i-079769840c4937bfa t2.small true | |
1 vms | |
Deployment 'service-instance_531effac-84ac-495f-bee0-c107a1a313a6' | |
Instance Process State AZ IPs VM CID VM Type Active | |
master/0d423945-ab76-483b-85a1-fcac8974eb0d running ap-northeast-1a 10.128.8.10 i-03eea10f14d6eb1bc t2.micro true | |
worker/1719b828-5988-4f6a-bbd9-9ea6ef138d28 running ap-northeast-1c 10.128.9.10 i-0dafb1240dcefa3fd t2.small true | |
worker/3d2e7f81-20d0-4a28-84f5-50e0865269cf running ap-northeast-1a 10.128.8.11 i-0b40acab45164ab94 t2.small true | |
worker/518da231-550d-4682-9c1f-9388fb0d5f0c running ap-northeast-1d 10.128.10.10 i-0ecb1fb19f503c8ac t2.small true | |
4 vms | |
Succeeded | |
# bosh vmsの中にある Deployment 'xxxx' となっているところのDeployment名 「xxxx」 を控えておきます。 | |
############### bosh stopコマンドの実施 ##################### | |
# -d の後に、先ほど控えたDeployment名を指定します | |
ubuntu@ip-10-128-0-181:~$ bosh stop -d service-instance_531effac-84ac-495f-bee0-c107a1a313a6 --hard # --hardをつけるとVMごと停止します | |
Using environment '10.128.4.10' as client 'ops_manager' | |
Using deployment 'service-instance_531effac-84ac-495f-bee0-c107a1a313a6' | |
Continue? [yN]: y | |
Task 20010 | |
Task 20010 | 08:02:47 | Preparing deployment: Preparing deployment (00:00:01) | |
(中略) | |
Deployment名のうち | |
service-instance_* => Kubernetesクラスタ | |
pivotal-container-service-* => PKS API | |
concourse => Concourse | |
となっています。この中ではとくに停止順序に決まりはありませんが、 prometheus => k8s cluster => pks-api => concourse くらいの順序で |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment