kubernetes – kubectl how to get config connector version

There are two ways to get the version of Config Connector installed on your Kubernetes cluster:

1. Using the kubectl command:

Run the following command:

kubectl get ns cnrm-system -o jsonpath="{.metadata.annotations.cnrm.cloud.google.com/version}"

This will output the version of Config Connector installed in the cnrm-system namespace.

2. Using the config-connector CLI:

Run the following command:

config-connector version

This will output the version of Config Connector installed on your cluster.

If you have installed Config Connector in namespaced-mode, then you can use the following command to get the version of Config Connector installed in a specific namespace:

kubectl get ns $NAMESPACE -o jsonpath="{.metadata.annotations.cnrm.cloud.google.com/version}"

Replace $NAMESPACE with the name of the namespace where you installed Config Connector.

Note: The config-connector CLI is only available if you installed Config Connector using the CLI installation method.

Read more here: Source link