Skip to content

Commit 31cb0ff

Browse files
committed
use deploy instead of pod
1 parent bdfe85f commit 31cb0ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

assets/training-backup/cheatsheet.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
kubectl exec $POD -n postgres -- createdb pxdemo
1+
kubectl exec deploy/postgres -n postgres -- createdb pxdemo
22

3-
kubectl exec $POD -n postgres -- psql -l
3+
kubectl exec deploy/postgres -n postgres -- psql -l
44

5-
kubectl exec $POD -n postgres -- pgbench -i -s 50 pxdemo
5+
kubectl exec deploy/postgres -n postgres -- pgbench -i -s 50 pxdemo
66

7-
kubectl exec $POD -n postgres -- psql pxdemo -c 'select count(*) from pgbench_accounts'
7+
kubectl exec deploy/postgres -n postgres -- psql pxdemo -c 'select count(*) from pgbench_accounts'
88

9-
kubectl exec $POD -n postgres -- psql -c 'drop database pxdemo'
9+
kubectl exec deploy/postgres -n postgres -- psql -c 'drop database pxdemo'
1010

1111
mongosh --host localhost --port 27017 --eval 'db.adminCommand({ fsync: 1, lock: true })'
1212

0 commit comments

Comments
 (0)