blob: f9368d2020798afc6ebd57d794af00fbd1d33096 [file] [log] [blame]
Oleh Hryhorovac5f6012021-03-05 18:26:25 +02001How to deploy TryMOS on AWS
2===========================
3
41. Dowload tryMOS image from Mirantis repo
5 wget https://artifactory.mcp.mirantis.net/artifactory/binary-dev-kaas-local/trymos/bin/trymos-bionic-amd64-master-20210316183204.qcow2
6
72. Convert QCOW2 image to RAW format
8 qemu-img convert -f qcow2 -O raw ./trymos-bionic-amd64-master-20210316183204.qcow2 ./trymos-bionic-amd64-master-20210316183204.raw
9
103. Upload RAW image to S3 storage, where `trymos-raw` name of a bucket
11 aws s3 cp ./trymos-bionic-amd64-master-20210316183204.raw s3://trymos-raw
12
134. Create a snapshot from the image which had been uploaded
14 aws ec2 import-snapshot --disk-container file://containers.json
15
16containers.json
17
18{
19 "Description": "TryMOS RAW",
20 "Format": "RAW",
21 "UserBucket": {
22 "S3Bucket": "trymos-raw",
23 "S3Key": "trymos-bionic-amd64-master-20210316183204.raw"
24 }
25}
26
275. Create an image from the snapshot in EC2 Service -> Elastic Block Store -> Snapshots -> Actions -> Create image
28 with root storage 30Gb and additional volume 20Gb (volume type EBS (gp3))
29
306. Launch instance from the image EC2 Service -> Images -> AMIs -> Launch with flavor minimal 16 CPUs and
31 30Gb RAM (c4.4xlarge).
32
337. Connect to intance via external IP with keyfile which was defined during instance was brought up as root
34 ssh 13.59.177.99 -i ./trymos-pair.pem -l root
35
368. Run following commands to prepare env for deployment
37 sed -i 's/vdb/xvdb/g' /usr/share/metadata/ceph.yaml
38
39 and export control network CIDR
40 root@ip-172-31-11-89:/srv/bin# ip route
41 default via 172.31.0.1 dev eth0 proto dhcp src 172.31.11.89 metric 100
42 172.31.0.0/20 dev eth0 proto kernel scope link src 172.31.11.89
43 172.31.0.1 dev eth0 proto dhcp scope link src 172.31.11.89 metric 100
44
45 root@ip-172-31-11-89:/srv/bin# export CONTROL_NETWORK_CIDR='172.31.0.0/20'
46
479. Run installation script
48 /srv/bin/bootstrap_trymos_aws.sh