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:
kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}'
Example output:
v0.23.0
Knative Eventing
Check the installed Knative Eventing version by running the command:
kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels "eventing.knative.dev/release"}}'
Example output:
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:
kubectl get KnativeServing knative-serving --namespace knative-serving
Example output:
NAME VERSION READY REASON
knative-serving 0.23.0 True
Knative Eventing
Check the installed Knative Eventing version by running the command:
kubectl get KnativeEventing knative-eventing --namespace knative-eventing
Example output:
NAME VERSION READY REASON
knative-eventing 0.23.0 True