Checking your Knative version

To check the version of your Knative installation, use one of the following commands, depending on whether you installed Knative with YAML or with the Operator.

If you installed with YAML

To verify the version of the Knative component that you have running on your cluster, query for the <component>.knative.dev/release label.

Knative Serving

Check the installed Knative Serving version by running the command:

  1. kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}'

Example output:

  1. v0.23.0

Knative Eventing

Check the installed Knative Eventing version by running the command:

  1. kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels "eventing.knative.dev/release"}}'

Example output:

  1. v0.23.0

If you installed with the Operator

To verify the version of your current Knative installation:

Knative Serving

Check the installed Knative Serving version by running the command:

  1. kubectl get KnativeServing knative-serving --namespace knative-serving

Example output:

  1. NAME VERSION READY REASON
  2. knative-serving 0.23.0 True

Knative Eventing

Check the installed Knative Eventing version by running the command:

  1. kubectl get KnativeEventing knative-eventing --namespace knative-eventing

Example output:

  1. NAME VERSION READY REASON
  2. knative-eventing 0.23.0 True