0

我使用 bosh/microbosh 安装了 Cloud Foundry。现在我正在尝试使用admin-ui-boshrelease安装Cloud Foundry Admin UI

运行./make_manifest warden时,我收到错误:

Can only target Bosh Lite Director. Please use 'bosh target' before running this script.

我已将目标设置为 192.168.0.5:

$ bosh target
Current target is https://192.168.0.5:25555 (vms-dev2)   

我打开make_manifest文件,发现它支持 aws、vsphere 和warden。如果是warden,它会查找导演名称为“Bosh Lite Director”。在我的例子中,bosh 导演的名字是“vms-dev2”。

我使用 BOSH 而不是 BOSH-Lite 安装了 Cloud Foundry。此 Cloud Foundry Admin UI 版本是否仅在 BOSH-Lite 中支持,而不在 BOSH 中?

4

1 回答 1

0

我创建了部署文件,它对我来说很好。

<%
load '/opt/installer/tenant-devtest1/cf-deploy/cf-settings.rb'
%>
name: <%= $deployment_name %>

director_uuid: 0de3e7b2-4e02-4149-bb79-980c1fe19f74

releases:
- {name: admin-ui, version: 6}

networks:
- name: ccc-bosh-net1
  type: dynamic
  cloud_properties:
    net_id: <%= $bosh_net_id %>
    security_groups:
        - cfoundry
        - bosh
        - default

resource_pools:
  - name: small
    network: ccc-bosh-net1
    stemcell:
      name: bosh-openstack-kvm-ubuntu-trusty-go_agent-raw
      version: <%= $stemcell_version %>
    cloud_properties:
      instance_type: Micro-Small

compilation:
  workers: 2
  network: ccc-bosh-net1
  cloud_properties:
    instance_type: Micro-Small

update:
  canaries: 0
  canary_watch_time: 30000-600000
  update_watch_time: 30000-600000
  max_in_flight: 4
  serial: true

jobs:
- name: admin_ui
  template: admin_ui
  instances: 1
  resource_pool: small
  persistent_disk: 5120
  networks:
    - name: ccc-bosh-net1

- name: register_admin_ui
  template: register_admin_ui
  instances: 1
  resource_pool: small
  lifecycle: errand
  networks:
    - name: ccc-bosh-net1

- name: deregister_admin_ui
  template: deregister_admin_ui
  instances: 1
  resource_pool: small
  lifecycle: errand
  networks:
    - name: ccc-bosh-net1

properties:
  cc:
    srv_api_uri: <%= $protocol %>://api.<%= $root_domain %>
  system_domain: <%= $root_domain %>
  uaa:
    url: <%= $protocol %>://uaa.<%= $root_domain %>
    admin:
      client_secret: <%= $common_password %>
  admin_ui:
    cloud_controller_uri: <%= $protocol %>://api.<%= $root_domain %>
    cloud_controller_ssl_verify_none: true
    uri: <%= $protocol %>://admin.<%= $root_domain %>
    users: ~
    uaa:
      url: <%= $protocol %>://uaa.<%= $root_domain %>
      admin_client_secret: <%= $common_password %>
      client:
        id: admin_ui_client
        secret: <%= $common_password %>
      scopes:
        admin: ~
        user: ~

    ccdb:
      scheme: postgres
      address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh
      port: 5524
      username: ccadmin
      password: <%= $common_password %>
      database: ccdb
    uaadb:
      scheme: postgresql
      address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh
      port: 5524
      username: uaaadmin
      password: <%= $common_password %>
      database: uaadb

  ssl:
    skip_cert_verify: true
  networks:
    apps: ccc-bosh-net1

  nats:
    user: nats
    password: <%= $common_password %>
    address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh
    port: 4222
于 2016-01-23T18:57:41.587 回答