Enable Istio Sidecar injection for activator#966
Conversation
|
/assign mdemirhan |
There was a problem hiding this comment.
Hard coded sleeps are non-portable and a value that works in one environment is unlikely to work in another unless a real large value is chosen. Instead of this, is there a way to call the readiness probe of a pod (if one exists) and decide the readiness based on that? If that pod doesn't have one, then a hard coded sleep as a fallback might seem ok.
There was a problem hiding this comment.
Agreed. I'm going to file a github issue to replace this with a call to the readinessProbe.
There was a problem hiding this comment.
Yes, sorry for taking this long to respond. I completely missed this one.
007c0e1 to
9932ea4
Compare
|
/retest |
|
/lgtm |
|
/lgtm |
|
/test pull-knative-serving-go-coverage |
9932ea4 to
5ed60a6
Compare
0db67c1 to
24afbca
Compare
|
The following is the coverage report on pkg/. Say
*TestCoverage feature is being tested, do not rely on any info here yet |
1 similar comment
|
The following is the coverage report on pkg/. Say
*TestCoverage feature is being tested, do not rely on any info here yet |
|
/retest |
1 similar comment
|
/retest |
There was a problem hiding this comment.
By adding this label, seems like Istio sidecar will be injected into all of pods under knative-serving-system (including controller, webhook, etc.) according to my experiment. Is this what we want in this PR?
There was a problem hiding this comment.
Probably not. I'll work on it.
There was a problem hiding this comment.
I don't know, looks like you enable sidecar injection for an entire namespace https://istio.io/docs/setup/kubernetes/sidecar-injection/#deploying-an-app
There was a problem hiding this comment.
I think I might need to disable it on a case by case basis.
There was a problem hiding this comment.
There, that should do it.
There was a problem hiding this comment.
yea. or maybe we can move activator and autoscaler into a separate namespace? Just a thought :)
There was a problem hiding this comment.
I'll leave that for when we make the autoscaler multitenant
There was a problem hiding this comment.
https://istio.io/docs/setup/kubernetes/sidecar-injection/#policy suggests that it should be possible to have this governed by an annotation, but I haven't been able to make this work with experimentation.
24afbca to
179a0b9
Compare
|
The following is the coverage report on pkg/. Say
*TestCoverage feature is being tested, do not rely on any info here yet |
|
/lgtm |
|
/assign @vaikas-google |
There was a problem hiding this comment.
Probably a mistake. Should revert :)
There was a problem hiding this comment.
Probably a mistake. Should revert :)
Enable istio sidecar injection for activator.
179a0b9 to
2f81380
Compare
|
/lgtm |
|
The following is the coverage report on pkg/. Say
*TestCoverage feature is being tested, do not rely on any info here yet |
|
PTAL /assign @evankanderson |
There was a problem hiding this comment.
https://istio.io/docs/setup/kubernetes/sidecar-injection/#policy suggests that it should be possible to have this governed by an annotation, but I haven't been able to make this work with experimentation.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: evankanderson, mdemirhan, nikkithurmond, tcnghia The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
The following is the coverage report on pkg/. Say
*TestCoverage feature is being tested, do not rely on any info here yet |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
/test pull-knative-serving-integration-tests |
1 similar comment
|
/test pull-knative-serving-integration-tests |
|
The following is the coverage report on pkg/. Say
*TestCoverage feature is being tested, do not rely on any info here yet |
Enable istio sidecar injection for activator.
Fixes #838
Proposed Changes
Enable istio sidecar injection for activator.
Since istio does not support direct pod ip access istio/istio#3398, we need to use FQDN when proxy requests.
See #833 for the history of this PR
Release Note