mirror of https://github.com/knative/docs.git
change in doc - progress deadline annotation on per revision basis (#5777)
Co-authored-by: navinag1989 <navinag1989@gmail.com>
This commit is contained in:
parent
ac2cda45a3
commit
9f47cc50b3
|
@ -73,21 +73,45 @@ You may want to configure this setting as a higher value if any of the following
|
||||||
|
|
||||||
See the [Kubernetes documentation](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#progress-deadline-seconds) for more information.
|
See the [Kubernetes documentation](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#progress-deadline-seconds) for more information.
|
||||||
|
|
||||||
The following example shows a snippet of an example Deployment Config Map that sets this value to 10 minutes:
|
Progress deadline setting can be configured at global level through a ConfigMap or at the per-revision level using an annotation.
|
||||||
|
|
||||||
```yaml
|
* **Global key:** `progress-deadline`
|
||||||
apiVersion: v1
|
* **Per-revision annotation key:** `serving.knative.dev/progress-deadline`
|
||||||
kind: ConfigMap
|
* **Possible values:** `time.Duration`
|
||||||
metadata:
|
* **Default:** `"600s"`
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
=== "Global (ConfigMap)"
|
||||||
|
```yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
name: config-deployment
|
name: config-deployment
|
||||||
namespace: knative-serving
|
namespace: knative-serving
|
||||||
labels:
|
labels:
|
||||||
serving.knative.dev/release: devel
|
serving.knative.dev/release: devel
|
||||||
annotations:
|
annotations:
|
||||||
knative.dev/example-checksum: "fa67b403"
|
knative.dev/example-checksum: "fa67b403"
|
||||||
data:
|
data:
|
||||||
progress-deadline: "10m"
|
progress-deadline: "10m"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
=== "Per Revision"
|
||||||
|
```yaml
|
||||||
|
apiVersion: serving.knative.dev/v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: helloworld-go
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
serving.knative.dev/progress-deadline: "60s"
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/knative/helloworld-go:latest
|
||||||
|
```
|
||||||
|
|
||||||
## Skipping tag resolution
|
## Skipping tag resolution
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue