Table of Contents |
---|
...
Clean Ubuntu 16 = ami-cd0f5cb6Clean Rancher + Client + Helm = ami-c0c964ba
Code Block |
---|
# request the usually cheapest $0.13 spot 64G EBS instance at AWS aws ec2 request-spot-instances --spot-price "0.25" --instance-count 1 --type "one-time" --launch-specification file://aws_ec2_spot_cli.json # don't pass in the the following - it will be generated for the EBS volume "SnapshotId": "snap-0cfc17b071e696816" launch specification json { "ImageId": "ami-c0c964ba", "InstanceType": "r4.2xlarge", "KeyName": "obrien_systems_aws_20141115", "BlockDeviceMappings": [ { "DeviceName": "/dev/sda1", "Ebs": { "DeleteOnTermination": true, "VolumeType": "gp2", "VolumeSize": 120 } } ], "SecurityGroupIds": [ "sg-322c4842" ] } # results { "SpotInstanceRequests": [ { "Status": { "Message": "Your Spot request has been submitted for review, and is pending evaluation.", "Code": "pending-evaluation", "UpdateTime": "2017-10-29T14:58:58.000Z" }, "ProductDescription": "Linux/UNIX", "InstanceInterruptionBehavior": "terminate", "SpotInstanceRequestId": "sir-1tyr5etg", "State": "open", "LaunchSpecification": { "Placement": { "AvailabilityZone": "us-east-1a" }, "ImageId": "ami-cd0f5cb6", "BlockDeviceMappings": [ { "DeviceName": "/dev/sda1", "Ebs": { "SnapshotId": "snap-0cfc17b071e696816", "DeleteOnTermination": true, "VolumeType": "gp2", "VolumeSize": 120 } } ], "KeyName": "obrien_systems_aws_20141115", "SecurityGroups": [ { "GroupName": "all_open", "GroupId": "sg-322c4842" } ], "SubnetId": "subnet-ece37889", "Monitoring": { "Enabled": false }, "InstanceType": "r4.2xlarge" }, "Type": "one-time", "CreateTime": "2017-10-29T14:58:58.000Z", "SpotPrice": "0.250000" } ] } |
...
Verify Instance stopped
Video on Installing and Running the ONAP Demos#ONAPDeploymentVideos
WE can run ONAP on an AWS EC2 instance for $0.17/hour as opposed to Rackspace at $1.12/hour for a 64G Ubuntu host VM.
I have created an AMI on Amazon AWS under the following ID that has a reference 20170825 tag of ONAP 1.0 running on top of Rancher
ami-b8f3f3c3 : onap-oom-k8s-10
...