Search code examples
postgresqlkubernetesredismodbus

Viewing data from currently active kubernetes pods


I have three kubernetes pods currently running, one postgresql database, one redis database and a modbus server. I am running them on a Linux VM, I was wondering how I can view the data they are collecting, whilst they are running? Any help would be much appreciated!


Solution

  • You could use the command kubectl exec <pod-name> -- psql -d <db-name> -U <username> -W or something similar, depending on what you want to search for.