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

add a client to register endpoint to tks-info #3

Merged
merged 2 commits into from
Jul 7, 2021
Merged

add a client to register endpoint to tks-info #3

merged 2 commits into from
Jul 7, 2021

Conversation

intelliguy
Copy link
Contributor

lma 설치용 workflow에서 사용할 binary 생성

epportlist := flag.String("epportlist", "",
"The list of port per app like (application_type, port) eg. {\"1\":\"80\",\"2\":\"10232\"}")
eplist := flag.String("eplist", "",
"The list of endpoints like (application_type, endpoint) eg. {\"1\":\"192.168.5.55\",\"2\":\"192.168.5.55:10232\"}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'192.168.5.55:10232'은 '192.168.5.55'의 오타일까요?
그리고 Endpoint라고 하면 'IP:Port' 가 한 쌍일텐데 지금 CLI 옵션은 IP와 포트가 나누어져 있어서 일반적인 형식은 아닌 거 같습니다. 특별한 이유가 있는지 궁금합니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 다양하게 적용할수 있도록 넣은 것입니다.
(openinfradev/decapod-flow#30 도 참조)

  1. 앱별 전체 url을 넣거나
  2. 대표 ip 적고 포트별로 넣거나
  3. 대표 ip만 적어서 default로 미리 정해진것 넣거나
    위 세가지를 위한 것이고 일단 쓸것은 3번째 사용예입니다.

Copy link
Contributor Author

@intelliguy intelliguy Jun 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

192.168.5.55는 192.168.5.55:80의 의도였습니다만 꼭 http가 아닐수도 있으니 한번 변경을 고려해봐야겠네요.
그런데 예시라서..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 수정했어요


ip := flag.String("tks", "127.0.0.1", "An address of TKS-info")
clusterid := flag.String("clusterid", "", "Cluster ID to apply. eg. 6abead61-ff2a-4af4-8f41-d2c44c745de7")
appid := flag.String("appid", "", "Application ID of The endpoint. eg. 6abead61-ff2a-4af4-8f41-d2c44c745de7")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존 appID가 appGroupID로 변경되어서 appid => appGroupID로 바뀌어야 할 것 같습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반영했습니다.

// three types to define eps
// - eplist: set of entry (type, url)
// - clusterep and epportlist: cluster endpoint and set of entry (type, port)
// - clusterep only: cluster endpoint and default endpoint using the node port. (currently prometheus)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

주석 의미가 좀 혼동됩니다. ep 가 두개라는 것처럼 보여서..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

걍 명확하게 default cluster endpoint 라고 해주심이..

@github-actions
Copy link

This PR is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale There has been no activity on this label Jun 14, 2021
@github-actions
Copy link

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this Jun 17, 2021
@bluejayA bluejayA reopened this Jun 17, 2021
@github-actions
Copy link

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this Jun 21, 2021
@bluejayA bluejayA reopened this Jun 21, 2021
@github-actions
Copy link

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this Jun 24, 2021
@bluejayA bluejayA reopened this Jun 24, 2021
@bluejayA bluejayA removed the Stale There has been no activity on this label Jun 24, 2021
@github-actions
Copy link

This PR is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale There has been no activity on this label Jun 28, 2021
@github-actions
Copy link

github-actions bot commented Jul 1, 2021

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this Jul 1, 2021
@bluejayA bluejayA added the frozen This issue or pull request is necessary, but on hold label Jul 2, 2021
@intelliguy intelliguy reopened this Jul 7, 2021
@zugwan zugwan merged commit 4752040 into main Jul 7, 2021
@zugwan zugwan deleted the ep2tks branch July 7, 2021 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frozen This issue or pull request is necessary, but on hold Stale There has been no activity on this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants