基本 BOSH 命令

BOSH 是一个包含6个虚机的分布式部署系统,用于Cloud Foundry的大规模部署

安装bosh

gem install bosh_cli

bosh target

  1. bosh vms
    显示bosh管理的虚机的状态

  2. bosh ssh
    启动interactive ssh连接到上述的CF 模块的虚机上

  3. bosh cck
    进行CF安装的修复

PCF BOSH login

  1. ssh tempest@OPSMGRIP
    使用部署Ops Manager ova时候的密码

  2. export bundle
    export BUNDLE_GEMFILE=/home/tempest-web/tempest/web/bosh.Gemfile

  3. bundle exec bosh target OPS-MANAGER-DIRECTOR-IP-ADDRESS (从Ops Manager的status界面得到)
    bundle exec bosh target
    使用用户名director登录,密码是OpsManagerDirector的密码,从OpsManagerDirector Credential的界面得到

  4. bundle exec bosh deployment /var/tempest/workspaces/default/deployments/cf-cca18e39287264623408.yml
    bundle exec bosh deployment /var/tempest/workspaces/default/deployments/cf-cca18e39287264623408.yml
    这里的yml文件是cf得yml,名字可能不一样,但是是以cf-*.yml

  5. start bosh command
    bundle exec bosh

BOSH SSH

Use bosh ssh to SSH into the VMs in your deployment.

To use bosh ssh:

Run
ssh-keygen -t rsa
to provide BOSH with the correct public key.
Accept the defaults.

Run
bundle exec bosh ssh

Select a VM to access.

BOSH操作部署的基本步骤

  1. bosh target
  2. bosh create release
    bosh upload release XXX.tgz
  3. bosh deployment -> yml 配置文件
  4. bosh deploy
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值