Skip to content

Commit

Permalink
[RELEASE-v1.2] Sync to serving v1.2.5 (#1128)
Browse files Browse the repository at this point in the history
* Pin to 1.23 S-O branch

* Add 0-kourier.yaml and 1-config-network.yaml to kourier.yaml (#1122)

* Rename kourier.yaml with 0-kourier.yaml

* Concat the files

* fix csv logic (#1125)

* Reduce the period and failure threshold for activator readiness (knative#12618)

The default drain timeout is 45 seconds which was much shorter than
the time it takes the activator to be recognized as not ready (2 minutes)

This was resulting in 503s since the activator was receiving traffic when it
was not expecting it

Co-authored-by: dprotaso <dprotaso@gmail.com>

* Address 503s when the autoscaler is being rolled (knative#12621)

The activator's readiness depends on the status of web socket connection
to the autoscaler. When the connection is down the activator will report
ready=false. This can occur when the autoscaler deployment is updating.

PR knative#12614 made the activator's readiness probe fail aggressively after
a single failure. This didn't seem to impact istio but with contour it
started returning 503s since the activator started to report ready=false
immediately.

This PR does two things to mitigate 503s:
- bump the readiness threshold to give the autoscaler more time to
  rollout/startup. This still remains lower than the drain duration
- Update the autoscaler rollout strategy so we spin up a new instance
  prior to bring down the older one. This is done using maxUnavailable=0

Co-authored-by: dprotaso <dprotaso@gmail.com>

* [release-1.2] Drop MaxDurationSeconds from the RevisionSpec  (knative#12640)

* Drop MaxDurationSeconds from the RevisionSpec (knative#12635)

We added MaxDurationSeconds (knative#12322) because the behaviour of
RevisionSpec.Timeout changed from total duration to time to first byte.

In hindsight changing the behaviour of Timeout was a mistake since
it goes against the original specification.

Thus we're going to create a path for migration and the first part is
to remove MaxDurationSeconds from the RevisionSpec.

* fix conformance test

* [release-1.2] fix ytt package name (knative#12657)

* fix ytt package name

* use correct path

Co-authored-by: dprotaso <dprotaso@gmail.com>

* Remove an unnecessary start delay when resolving tag to digests (knative#12669)

Co-authored-by: dprotaso <dprotaso@gmail.com>

* Drop collecting performance data in release branch (knative#12673)

Co-authored-by: dprotaso <dprotaso@gmail.com>

* bump ggcr which includes auth config lookup fixes for k8s (knative#12656)

Includes the fixes:
- google/go-containerregistry#1299
- google/go-containerregistry#1300

* Fixes an activator panic when the throttle encounters a cache.DeleteFinalStateUnknown (knative#12680)

Co-authored-by: dprotaso <dprotaso@gmail.com>

* upgrade to latest dependencies (knative#12674)

bumping knative.dev/pkg 77555ea...083dd97:
  > 083dd97 Wait for reconciler/controllers to return prior to exiting the process (# 2438)
  > df430fa dizzy: we must use `flags` instead of `pflags`, since this is not working. It seems like pflag.* adds the var to its own flag set, not the one package flag uses, and it doesn't expose the internal flag.Var externally - hence this fix. (# 2415)

Signed-off-by: Knative Automation <automation@knative.team>

* [release-1.2] fix tag to digest resolution (ggcr bump) (knative#12834)

* pin k8s dep

* Fix tag to digest resolution with K8s secrets

I forgot to bump ggcr's sub package in the prior release

github.com/google/go-containerregistry/pkg/authn/k8schain

* bump ggcr which fixes tag-to-digest resolution for Azure & GitLab (knative#12857)

Co-authored-by: Stavros Kontopoulos <st.kontopoulos@gmail.com>
Co-authored-by: Knative Prow Robot <knative-prow-robot@google.com>
Co-authored-by: dprotaso <dprotaso@gmail.com>
Co-authored-by: knative-automation <automation@knative.team>
  • Loading branch information
5 people authored May 26, 2022
1 parent cbcc812 commit 3393be7
Show file tree
Hide file tree
Showing 275 changed files with 13,843 additions and 5,377 deletions.
4 changes: 0 additions & 4 deletions config/core/300-resources/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,6 @@ spec:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
maxDurationSeconds:
description: MaxDurationSeconds is the maximum duration in seconds a request will be allowed to stay open.
type: integer
format: int64
serviceAccountName:
description: 'ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/'
type: string
Expand Down
4 changes: 0 additions & 4 deletions config/core/300-resources/revision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,6 @@ spec:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
maxDurationSeconds:
description: MaxDurationSeconds is the maximum duration in seconds a request will be allowed to stay open.
type: integer
format: int64
serviceAccountName:
description: 'ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/'
type: string
Expand Down
4 changes: 0 additions & 4 deletions config/core/300-resources/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,6 @@ spec:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
maxDurationSeconds:
description: MaxDurationSeconds is the maximum duration in seconds a request will be allowed to stay open.
type: integer
format: int64
serviceAccountName:
description: 'ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/'
type: string
Expand Down
4 changes: 3 additions & 1 deletion config/core/deployments/activator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,15 @@ spec:
httpHeaders:
- name: k-kubelet-probe
value: "activator"
failureThreshold: 12
periodSeconds: 5
failureThreshold: 5
livenessProbe:
httpGet:
port: 8012
httpHeaders:
- name: k-kubelet-probe
value: "activator"
periodSeconds: 10
failureThreshold: 12
initialDelaySeconds: 15

Expand Down
4 changes: 4 additions & 0 deletions config/core/deployments/autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
selector:
matchLabels:
app: autoscaler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
template:
metadata:
annotations:
Expand Down
39 changes: 0 additions & 39 deletions docs/serving-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -920,19 +920,6 @@ layer will wait for a request delivered to a container to begin replying
(send network traffic). If unspecified, a system default will be provided.</p>
</td>
</tr>
<tr>
<td>
<code>maxDurationSeconds</code><br/>
<em>
int64
</em>
</td>
<td>
<em>(Optional)</em>
<p>MaxDurationSeconds is the maximum duration in seconds a request will be allowed
to stay open.</p>
</td>
</tr>
</table>
</td>
</tr>
Expand Down Expand Up @@ -1395,19 +1382,6 @@ layer will wait for a request delivered to a container to begin replying
(send network traffic). If unspecified, a system default will be provided.</p>
</td>
</tr>
<tr>
<td>
<code>maxDurationSeconds</code><br/>
<em>
int64
</em>
</td>
<td>
<em>(Optional)</em>
<p>MaxDurationSeconds is the maximum duration in seconds a request will be allowed
to stay open.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="serving.knative.dev/v1.RevisionStatus">RevisionStatus
Expand Down Expand Up @@ -1608,19 +1582,6 @@ layer will wait for a request delivered to a container to begin replying
(send network traffic). If unspecified, a system default will be provided.</p>
</td>
</tr>
<tr>
<td>
<code>maxDurationSeconds</code><br/>
<em>
int64
</em>
</td>
<td>
<em>(Optional)</em>
<p>MaxDurationSeconds is the maximum duration in seconds a request will be allowed
to stay open.</p>
</td>
</tr>
</table>
</td>
</tr>
Expand Down
33 changes: 20 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ require (
github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee // indirect
github.com/davecgh/go-spew v1.1.1
github.com/gogo/protobuf v1.3.2
github.com/google/go-cmp v0.5.6
github.com/google/go-containerregistry v0.8.1-0.20220120151853-ac864e57b117
github.com/google/go-containerregistry/pkg/authn/k8schain v0.0.0-20220120151853-ac864e57b117
github.com/google/go-cmp v0.5.7
github.com/google/go-containerregistry v0.8.1-0.20220414143355-892d7a808387
github.com/google/go-containerregistry/pkg/authn/k8schain v0.0.0-20220414154538-570ba6c88a50
github.com/google/gofuzz v1.2.0
github.com/gorilla/websocket v1.4.2
github.com/hashicorp/golang-lru v0.5.4
Expand All @@ -23,22 +23,29 @@ require (
go.uber.org/atomic v1.9.0
go.uber.org/automaxprocs v1.4.0
go.uber.org/zap v1.19.1
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
golang.org/x/net v0.0.0-20220225172249-27dd8689420f
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11
google.golang.org/api v0.63.0
google.golang.org/grpc v1.43.0
k8s.io/api v0.22.5
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65
google.golang.org/api v0.70.0
google.golang.org/grpc v1.44.0
k8s.io/api v0.23.4
k8s.io/apiextensions-apiserver v0.22.5
k8s.io/apimachinery v0.22.5
k8s.io/client-go v0.22.5
k8s.io/apimachinery v0.23.4
k8s.io/client-go v0.23.4
k8s.io/code-generator v0.22.5
k8s.io/klog v1.0.0 // indirect
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65
k8s.io/kube-openapi v0.0.0-20220124234850-424119656bbf
knative.dev/caching v0.0.0-20220118175933-0c1cc094a7f4
knative.dev/hack v0.0.0-20220118141833-9b2ed8471e30
knative.dev/networking v0.0.0-20220120043934-ec785540a732
knative.dev/pkg v0.0.0-20220118160532-77555ea48cd4
knative.dev/pkg v0.0.0-20220222214439-083dd97300e1
sigs.k8s.io/yaml v1.3.0
)

replace (
k8s.io/api => k8s.io/api v0.22.5
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.22.5
k8s.io/apimachinery => k8s.io/apimachinery v0.22.5
k8s.io/client-go => k8s.io/client-go v0.22.5
)
Loading

0 comments on commit 3393be7

Please sign in to comment.