cloud-barista / cb-operator

The Operator for Cloud-Barista system
Apache License 2.0
6 stars 6 forks source link

CB-Dragonfly related containers are in a separated Docker network #109

Closed jihoon-seo closed 3 years ago

jihoon-seo commented 3 years ago

CC: @hyokyungk

Docker Compose mode 에 관련된 사항입니다.


In CB-Tumblebug container

The domain name cb-spider is resolvable

root@3140e9421da6:~# wget cb-spider
--2021-03-10 02:04:56--  http://cb-spider/
Resolving cb-spider (cb-spider)... 172.18.0.7
Connecting to cb-spider (cb-spider)|172.18.0.7|:80... failed: Connection refused.

The domain name cb-dragonfly is not resolvable

root@3140e9421da6:~# wget cb-dragonfly
--2021-03-10 02:04:59--  http://cb-dragonfly/
Resolving cb-dragonfly (cb-dragonfly)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'cb-dragonfly'

In CB-Dragonfly container

The domain name cb-spider and cb-tumblebug is not resolvable

bash-5.0# wget cb-tumblebug
wget: bad address 'cb-tumblebug'

bash-5.0# wget cb-spider
wget: bad address 'cb-spider'

The domain name cb-dragonfly-influxdb is resolvable

bash-5.0# wget cb-dragonfly-influxdb
Connecting to cb-dragonfly-influxdb (172.19.0.2:80)
wget: can't connect to remote host (172.19.0.2): Connection refused

[원인] cb-operator/docker-compose-mode-files/docker-compose.yaml 에 다음과 같은 부분이 있습니다.

  cb-dragonfly:
    networks:
      cb-dragonfly:
        aliases:
          - cb-dragonfly

  cb-dragonfly-influxdb:
    networks:
      cb-dragonfly:
        aliases:
          - cb-dragonfly-influxdb

networks:
  cb-dragonfly:

[해결 방법] cb-operator/docker-compose-mode-files/docker-compose.yaml 에서 위의 부분을 삭제하겠습니다.