HAProxy boshrelease + Docker boshrelease 链接
HAProxy boshrelease + Docker boshrelease linking
我正在使用 HAProxy boshrelease and the Docker boshrelease in the bosh release. I'm trying to link 它们,但我尝试过的都没有奏效。在 HAProxy 配置部分,我使用的是 tcp_link_port,但这显然不起作用。有没有人成功链接了这两个boshreleases或者知道如何配置?
这是我的清单:
instance_groups:
- azs:
- az2
instances: 1
jobs:
- name: haproxy
properties:
ha_proxy:
backend_port: 80
tcp_link_port: 4447
release: haproxy
name: haproxy
networks:
- [...]
- azs:
- z2
instances: 3
jobs:
- name: docker
properties:
insecure_registries:
- ((insecure-registry))
[...]
release: docker
- depends_on:
- docker
name: containers
properties:
containers:
- bind_ports:
- 80:8080
- 4447:4447
name: mydocker
[...]
release: docker
此致
Onke
我能够通过手动定位后端服务器来"solve"这个问题:
tcp:
- backend_port: 4447
backend_servers: "((backend-ips.key_list))"
name: awesomeBackend
port: 4447
其中 backend-ips 是 json.
类型的 CredHub 条目
我正在使用 HAProxy boshrelease and the Docker boshrelease in the bosh release. I'm trying to link 它们,但我尝试过的都没有奏效。在 HAProxy 配置部分,我使用的是 tcp_link_port,但这显然不起作用。有没有人成功链接了这两个boshreleases或者知道如何配置?
这是我的清单:
instance_groups:
- azs:
- az2
instances: 1
jobs:
- name: haproxy
properties:
ha_proxy:
backend_port: 80
tcp_link_port: 4447
release: haproxy
name: haproxy
networks:
- [...]
- azs:
- z2
instances: 3
jobs:
- name: docker
properties:
insecure_registries:
- ((insecure-registry))
[...]
release: docker
- depends_on:
- docker
name: containers
properties:
containers:
- bind_ports:
- 80:8080
- 4447:4447
name: mydocker
[...]
release: docker
此致
Onke
我能够通过手动定位后端服务器来"solve"这个问题:
tcp:
- backend_port: 4447
backend_servers: "((backend-ips.key_list))"
name: awesomeBackend
port: 4447
其中 backend-ips 是 json.
类型的 CredHub 条目