Developer configuration options

While Revisions cannot be created manually without modifying the Configuration of a Knative Service, you can modify the spec of an existing Revision to change its behavior.

Garbage collection

When Revisions of a Knative Service are inactive, they are automatically cleaned up and cluster resources are reclaimed after a set time period. This is known as garbage collection.

You can configure garbage collection parameters a specific Revision if you are a developer. You can also configure default, cluster-wide garbage collection parameters for all the Revisions of all the Services on a cluster if you have cluster administrator permissions.

Disabling garbage collection for a Revision

You can configure a Revision so that it is never garbage collected by adding the serving.knative.dev/no-gc: "true" annotation:

  1. apiVersion: serving.knative.dev/v1
  2. kind: Revision
  3. metadata:
  4. annotations:
  5. serving.knative.dev/no-gc: "true"
  6. ...