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

Allow more flexible way to config the api server addr in persistence agent #867

Merged
merged 2 commits into from
Apr 24, 2019
Merged

Allow more flexible way to config the api server addr in persistence agent #867

merged 2 commits into from
Apr 24, 2019

Conversation

ywskycn
Copy link
Member

@ywskycn ywskycn commented Feb 27, 2019

In some clusters, service addr may not be formatted as "%s.%s.svc.cluster.local:%s". We need to a more flexible way to handle it. I checked approach in ml-pipeline-ui, which just make the entire FQDN configurable. But this change would bring incompatibility, as previously users may only config the service name while now need full name to make it work.

@IronPan thoughts?


This change is Reviewable

@k8s-ci-robot
Copy link
Contributor

Hi @ywskycn. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

1 similar comment
@k8s-ci-robot
Copy link
Contributor

Hi @ywskycn. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@IronPan
Copy link
Member

IronPan commented Mar 1, 2019

/ok-to-test

@IronPan
Copy link
Member

IronPan commented Mar 1, 2019

@ywskycn Have you verified on your local cluster this would work?

In some clusters, service addr may not be formatted as "%s.%s.svc.cluster.local:%s".

I'd be curious what cluster those are. Could you provide more detail.

@@ -55,8 +55,8 @@ func NewPipelineClient(
mlPipelineServiceName string,
mlPipelineServiceHttpPort string,
mlPipelineServiceGRPCPort string) (*PipelineClient, error) {
httpAddress := fmt.Sprintf(addressTemp, mlPipelineServiceName, namespace, mlPipelineServiceHttpPort)
Copy link
Member

Choose a reason for hiding this comment

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

instead, can you parameterize the domain name, and give default value "local"?
%s.%s.svc.cluster.%s:%s

It would be easier for customizations in future. we don't assume api and persistentagent in the same namespace.

Copy link
Member Author

Choose a reason for hiding this comment

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

We need to put "cluster" together with "local", as this field represents , https://github.com/kubernetes/dns/blob/master/docs/specification.md#21---definitions. If we go that way, we'll have three configs to generate the full service name: ..svc.. Another way (just as the diff) would be, just using one config to config the full path, which includes the three configs aforementioned.

Copy link
Member

Choose a reason for hiding this comment

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

i think these deserves flexible configurations so having a "zone" parameter with default value cluster.local make sense.
With that it's easy to change namespace without changing anything else.
WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

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

haha, I'm ok with 1 config or 3 configs. Another thing is, we need to introduce another config "informerNamespace" in #901. I used to think about releasing "namespace" config here to replace "informerNamespace", to keep consistent with #851 swf.

Copy link
Member

Choose a reason for hiding this comment

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

sounds good. do you want to do it as part of this PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated the diff to remove "namespace" which is not needed anymore.

@IronPan
Copy link
Member

IronPan commented Apr 24, 2019

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 982d94a into kubeflow:master Apr 24, 2019
Linchin pushed a commit to Linchin/pipelines that referenced this pull request Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants