Append a random number to postgres client
This commit is contained in:
parent
82c167d842
commit
35074c098e
2
mev
2
mev
@ -13,7 +13,7 @@ function db(){
|
|||||||
username=$(get_kube_db_secret "username")
|
username=$(get_kube_db_secret "username")
|
||||||
password=$(get_kube_db_secret "password")
|
password=$(get_kube_db_secret "password")
|
||||||
|
|
||||||
kubectl run -i --rm --tty postgres-client \
|
kubectl run -i --rm --tty postgres-client-$RANDOM \
|
||||||
--env="PGPASSWORD=$password" \
|
--env="PGPASSWORD=$password" \
|
||||||
--image=jbergknoff/postgresql-client \
|
--image=jbergknoff/postgresql-client \
|
||||||
-- $DB_NAME --host=$host --user=$username
|
-- $DB_NAME --host=$host --user=$username
|
||||||
|
Loading…
x
Reference in New Issue
Block a user