Skip to content

Allow in-cluster connections to a route's service#1423

Closed
scothis wants to merge 1 commit intoknative:masterfrom
scothis:incluster-service
Closed

Allow in-cluster connections to a route's service#1423
scothis wants to merge 1 commit intoknative:masterfrom
scothis:incluster-service

Conversation

@scothis
Copy link
Copy Markdown
Contributor

@scothis scothis commented Jun 29, 2018

  • remove the ClusterIP: "None" from the route's service so that the service will be resolvable.
  • add service shortnames {name} and {name}.{namespace} to the route's virtual service.

In testing, accessing the service via the fqdn ({name}.{ns}.svc.cluster.local) works, but the short names do not. Adding them here since it shouldn't cause issues and may be an Istio issue we can resolve.

Refs #1415

Release Note

Routes are now accessible from inside the cluster via `{route}-service.{ns}.svc.cluster.local`

/assign @tcnghia

- remove the `ClusterIP: "None"` from the route's service so that the
  service will be resolvable.
- add service shortnames `{name}` and `{name}.{namespace}` to the
  route's virtual service.

In testing, accessing the service via the fqdn
(`{name}.{ns}.svc.cluster.local`) works, but the short names do not.
Adding them here since it shouldn't cause issues and may be an Istio
issue we can resolve.

Refs #1415
@google-prow-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: scothis
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: grantr

Assign the PR to them by writing /assign @grantr in a comment when ready.

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

The pull request process is described here

Details 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

@google-prow-robot google-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 29, 2018
@scothis
Copy link
Copy Markdown
Contributor Author

scothis commented Jun 29, 2018

/test pull-knative-serving-integration-tests

@google-prow-robot
Copy link
Copy Markdown

@scothis: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-knative-serving-integration-tests 543a9fb link /test pull-knative-serving-integration-tests

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

Name: "http",
Port: 80,
}},
ClusterIP: "None",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing this!

}, {
Authority: &v1alpha3.StringMatch{Exact: "test-route-service.test-ns.svc.cluster.local"},
}, {
Authority: &v1alpha3.StringMatch{Exact: "test-route-service.test-ns"},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I filed #1429 to track the short names.

For now I think it may be best that we leave them out to avoid confusions.

@tcnghia
Copy link
Copy Markdown
Contributor

tcnghia commented Jun 30, 2018

I submitted #1431 as discussed. Closing this.

@tcnghia tcnghia closed this Jun 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants