-
Notifications
You must be signed in to change notification settings - Fork 4
/
help.sh
executable file
·27 lines (24 loc) · 1.41 KB
/
help.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e
KUBECTL_HELP=$(kubectl help)
KTL_HELP="\
Basic Commands (ktl):
promote Promote staging image versions to production by updating values files
shell Connects to the shell of a random pod selected by label and namespace
pg:ps View active queries with execution time
pg:kill Kill a query.
pg:outliers Show queries that have longest execution time in aggregate
pg:diagnose Shows diagnostics report
pg:psql Run psql with a cluster database
pg:open Open local app binded to postgres:// protocol with a cluster database
pg:proxy Port-forward cluster database to connect on localhost
pg:dump Dumps PostgreSQL database to local directory in binary format
pg:resotre Restore PostgreSQL database from dump
pg:copy Copy query result from a remote PostgreSQL database and to a local one
erl:shell Connect to a Erlang shell of running Erlang/OTP node (executes wihin the pod)
iex:shell Connect to a IEx shell of running Erlang/OTP node (executes wihin the pod)
iex:remsh Remote shell into a running Erlang/OTP node (via port-foward and iex --remsh), run with sudo
iex:observer Connect to a running Erlang/OTP node an locally run observer, run with sudo
status Show version information for deployed containers
"
echo "${KUBECTL_HELP/Basic Commands (Beginner):/${KTL_HELP}Basic Commands (Beginner):}"