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 app.kubernetes.io/version label in corresponding component namespace.

Knative ServingKnative Eventing

Check the installed Knative Serving version by running the command:

  1. kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'

Example output:

  1. v0.23.0

Check the installed Knative Eventing version by running the command:

  1. kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels "app.kubernetes.io/version"}}'

Example output:

  1. v0.23.0

If you installed with the Operator

To verify the version of your current Knative installation:

Knative ServingKnative Eventing

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

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