#!/bin/bash

password=“xxxxxxx”

kubectl -n xxxxns exec -it mysql-0-0 -- mysql -h10.1.5.1 -P3306 -u dbuser -Deip -p$password  -e "select * from iptbs" | while read line

do

   echo "Row: $line"

done