coreos_on_ec2:一组 bash 脚本,用于在 EC2 上轻松启动 CoreOS 集群

  • R7_956533
    了解作者
  • 12KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-15 09:28
    上传日期
一组 bash 脚本,用于在 ec2 上轻松启动 coreos 集群 先决条件 这些脚本使用,因此需要在开始之前安装和配置。 pip install awscli aws configure # Will propmt you to enter your AWS access credentials 如果您可以运行aws ec2 describe-regions --output text并获取区域列表,那么您就可以开始了。 如果遇到任何问题,请参阅。 安装 克隆存储库,然后从 repo 文件夹中运行脚本。 git clone https://github.com/bigblue/coreos_on_ec2.git cd coreos_on_ec2 演练 有关命令的背景以及启动新集群的过程,请参阅。 命令 $ ./launchInstances.sh -h launchInstan
coreos_on_ec2-master.zip
  • coreos_on_ec2-master
  • multi_region_userdata.yml
    384B
  • _common.sh
    1.3KB
  • listInstances.sh
    3.2KB
  • terminateInstances.sh
    3.3KB
  • connectToInstance.sh
    2.8KB
  • single_region_userdata.yml
    220B
  • LICENSE
    1.1KB
  • README.md
    4.1KB
  • install_weave_userdata.yml
    2KB
  • launchInstances.sh
    6.5KB
内容介绍
# A set of bash scripts to ease launching a coreos cluster on ec2 ## Prerequisites These scripts use the [AWS command line client](https://github.com/aws/aws-cli), so that needs to be installed and configured before you get started. ```bash pip install awscli aws configure #Will propmt you to enter your AWS access credentials ``` If you can run `aws ec2 describe-regions --output text` and get a list of regions back then you are good to go. See the [AWS cli docs](https://github.com/aws/aws-cli) if you run into any problems. ## Installation Clone the repository and then run the scripts from within the repo folder. ```bash git clone https://github.com/bigblue/coreos_on_ec2.git cd coreos_on_ec2 ``` ## Walkthrough See [this accompanying blog post](http://blog.bigbluedev.com/coreos/quickly-setup-a-coreos-cluster-on-ec2.html) for a background on the commands and to see the process of launching a new cluster. ## Commands ```bash $ ./launchInstances.sh -h launchInstances.sh [OPTION]... Launch instances to create new coreos cluster Options: -n, --number Number of instances to launch [default: 1] -g, --group Security group name for new instances [default: coreosgroup] -r, --region Region to launch instance(s) in, comma seperate multiple regions e.g. 'us-east-1, us-west-1' [default: us-west-1] -k, --key Path to public key of keypair to use [default: ~/.ssh/CoreOSKey_rsa.pub] A new keypair will be generated if file does not exist -t, --token Discovery token to use (will be inserted into userdata) [default: New token will be autogenerated from https://discovery.etcd.io/new ] -u, --userdata Path to userdata file to boot instances with [default: ./single_region_userdata.yml] -s, --skip-aws-checks Skip checking if aws cli is installed -w, --weave-rules Include weave security group -h, --help Display this help and exit --version Output version information and exit ~ ``` ```bash $ ./listinstances.sh -h listInstances.sh [OPTION]... List currently running instances in coreos cluster Options: -g, --group Filter by cluster security group [default: coreosgroup] -r, --region Filter by region, comma seperate multiple regions e.g. 'us-east-1, us-west-1' [default: all regions] -s, --skip-aws-checks Skip checking if aws cli is installed -h, --help Display this help and exit --version Output version information and exit ``` ```bash $ ./connectToInstance.sh -h connectToInstance.sh [OPTION]... Quickly connect to one of the instances listed by listInstances.sh Options: -i, --index Which instance in list to connect to [default: 1] -k, --key Path to private key to authenticate with [default: ~/.ssh/CoreOSKey_rsa] -g, --group Security group to filter listInstances.sh with [default: coreosgroup] -h, --help Display this help and exit --version Output version information and exit ``` ```bash $ ./terminateInstances.sh -h terminateInstances.sh [OPTION]... Terminate currently running instances in coreos cluster Options: -g, --group Filter by cluster security group [default: coreosgroup] -r, --region Filter by region, comma seperate multiple regions e.g. 'us-east-1, us-west-1' [default: all regions] -s, --skip-aws-checks Skip checking if aws cli is installed -h, --help Display this help and exit --version Output version information and exit ``` ## Acknowledgements Used [oxyc's](https://github.com/oxyc) [bash boilerplate script](https://github.com/oxyc/bash-boilerplate) as a starting point. ## Contributing 1. Create an issue to discuss about your idea 2. [Fork it] (https://github.com/bigblue/coreos_on_ec2/fork) 3. Create your feature branch (`git checkout -b my-new-feature`) 4. Commit your changes (`git commit -am 'Add some feature'`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create a new Pull Request 7. Profit! :white_check_mark: ## License Released under the MIT License. See [LICENSE](http://github.com/bigblue/coreos_on_ec2/blob/master/LICENSE).
评论
    相关推荐