Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature that writes DF's public IP addr to DF config.yaml #171

Open
jihoon-seo opened this issue Nov 17, 2021 · 1 comment
Open

Feature that writes DF's public IP addr to DF config.yaml #171

jihoon-seo opened this issue Nov 17, 2021 · 1 comment

Comments

@jihoon-seo
Copy link
Member

What would you like to be added
:
Feature that writes DF's public IP addr to DF config.yaml

[참고]
TB에서, DF를 deploy하는 스크립트
https://github.com/cloud-barista/cb-tumblebug/blob/c4082fb3d5cbc84eb231050f0f8dbcc2eb931b8f/scripts/setcbdf.sh#L42
(sed 사용하여 127.0.0.1 을 DF's public IP 주소로 변경)

Why is this needed
:

DF를 실행하기 전에,
DF's public IP 주소를
DF의 config.yaml에 기록해야 함

@jihoon-seo
Copy link
Member Author

[1안]
operator subcommand 에 config 를 추가

  • CB 실행 절차
    • 사용자가 ./operator config --dragonfly-public-ip=1.2.3.4 로 설정 후
    • 사용자가 ./operator run 실행
    • (사용자가 ./operator config 실행 안하고 바로 run 실행하는 경우에는 어떻게 할까?)

[2안]
operator run 에 --dragonfly-public-ip 플래그를 추가

Docker Compose 모드는
cb-operator 실행 컴퓨터 == CB 실행 컴퓨터 이므로,

  • Docker Compose 모드에서의 CB 실행 절차
    • 사용자가 --dragonfly-public-ip 플래그 없이
      ./operator run 만 실행하면,
      operator가 Public IP 주소를 획득하여 cb-dragonfly/config.yaml 을 수정하고
      CB 실행
    • 사용자가 ./operator run --dragonfly-public-ip=1.2.3.4 와 같이 실행하면,
      operator가 Public IP 주소를 획득하지 않고
      플래그에 명시된 Public IP 주소를 cb-dragonfly/config.yaml 에 기재하고
      CB 실행

K8s 모드는
cb-operator 실행 컴퓨터 != CB 실행 컴퓨터 이므로,

  • K8s 모드에서의 CB 실행 절차
    • 사용자가 ./operator run --dragonfly-public-ip=1.2.3.4 와 같이 실행하면,
      operator가 Public IP 주소를 획득하지 않고
      플래그에 명시된 Public IP 주소를 cb-dragonfly/config.yaml 에 기재하고
      CB 실행

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant