Posts

Showing posts with the label stackoverflow

Effectively Use "cbt" command to get Google Cloud BigTable Data

Image
Google Cloud BigTable is a NO-SQL time series storage. Unlike SQL or my SQL, it doesn't have a standard user interface to see data (as of 2020 Nov). Instead, it provides a command-line tool.  Thus this blog will describe how to effectively query Google Cloud BigTable instance , to view and filter rows using the cbt command-line tool. This blog expects you to have a fair understanding of: Google Cloud BigTable Row keys, columns, column qualifier in BigTable Proper access rights to query BigTable Cloud BigTable Command line tool (cbt) provided by Google helps you perform various actions on your BigTable instance. The most common purpose I have been using it is for reading rows from my BigTable instance. 'cbt' command-line tool provides you the following reading options 1. Read: Read rows between the range of keys. cbt -instance <BIGTABLE_INSTANCE_ID> -project <GCP_PROJECT_ID> read <TABLE_NAME> start=<ROW_KEY_1> end=<ROW_KEY_2> 2. Read from: S...

How To See Kubernetes Secret Data?

Image
Kubernetes secrets are data in key-value format stored secretly for your applications deployed in a Kubernetes system. If you have proper rights and, for debugging purposes you wish to see the secret data then this post will help you.  To see Kubernetes secret data you must have proper rights to see its pods/deployments/secrets. This post assumes you have basic knowledge of Kubernetes and understand how to get access to a Kubernetes instance and you can run commands like kubectl get pod/deployments/secrets successfully. Steps involved: 1. Get Kubernetes secret in details 2. Decode the secret data Get Kubernetes Secret in Detail You can normally get any resource list in Kubernetes by command 'kubectl get pods/deployments/secrets'. Similarly `secret` is also a resource. You get secret list by command: >> kubectl get secrets NAME                   TYPE   ...