Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
| #!/bin/bash | |
| # Add to your .bashrc on Mac OSX, then run camfix in Terminal | |
| # if the Mac's built-in camera stops working. | |
| # Thanks to: http://osxdaily.com/2013/12/27/fix-there-is-no-connected-camera-error-mac/ | |
| alias camfix='sudo killall VDCAssistant; sudo killall AppleCameraAssistant' |
| Industry | ||
|---|---|---|
| Accounting | ||
| Airlines/Aviation | ||
| Alternative Dispute Resolution | ||
| Alternative Medicine | ||
| Animation | ||
| Apparel/Fashion | ||
| Architecture/Planning | ||
| Arts/Crafts | ||
| Automotive |
| Backup: | |
| docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
| Restore: | |
| cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |