
I have different Kubernetes clusters (TKG and non TKG) and installed Tanzu Build Service (TBS) with different version on few of them. Later, I tried to identify the installed TBS version and really struggled to figure out. In this blog post, I want to help you with simple steps involved in identifying the TBS version.
Steps to identify the TBS version installed on a Kubernetes Cluster
– List the created configmap on build-service namespace
k get cm -n build-service
NAME DATA AGE
build-service-version 1 44d
ca-cert 1 44d
http-proxy 1 44d
https-proxy 1 44d
kube-root-ca.crt 1 44d
no-proxy 1 44d
setup-ca-certs-image 1 44d
sleeper-image 1 44d
tanzunet-config 2 44d
– In the list above, build-service-version is the one that holds the TBS version information
– Run the below command to see the TBS version
kubectl describe configMap build-service-version -n build-service
Name: build-service-version
Namespace: build-service
Labels: kapp.k14s.io/app=1634210927201093416
kapp.k14s.io/association=v1.dd0b54a9f3b308f5cd8a9656c9980dab
Annotations: kapp.k14s.io/identity: v1;build-service//ConfigMap/build-service-version;v1
kapp.k14s.io/original:
{"apiVersion":"v1","data":{"version":"1.3.0"},"kind":"ConfigMap","metadata":{"labels":{"kapp.k14s.io/app":"1634210927201093416","kapp.k14s...
kapp.k14s.io/original-diff-md5: c6e94dc94aed3401b5d0f26ed6c0bff3
Data
====
version:
----
1.3.0
Events: <none>
– Notice the Data section in above output, you can see that the installed TBS version on this cluster is 1.3.0
It is simple enough to know but difficult to find out where is this information stored. Hope, it is helpful for you and will save your time finding the TBS version.