当前位置: 首页 > 工具软件 > BOSH > 使用案例 >

基本 BOSH 命令

白翰海
2023-12-01

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
 类似资料: