- https://kubernetes.io/docs/user-guide/kubectl-cheatsheet/
- https://github.com/devoriales/kubectl-cheatsheet
- https://learncloudnative.com/blog/2022-05-10-kubectl-tips
- https://itnext.io/tips-tricks-for-cka-ckad-and-cks-exams-cc9dade1f76d
- https://cloud.google.com/anthos/gke/docs/on-prem/reference/cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://gist.github.com/bc1188d2a4b8d5295890e9c5438b9ce4 | |
| ################################# | |
| # 10 Must-Have Kubernetes Tools # | |
| # https://youtu.be/CB79eTFbR0w # | |
| ################################# | |
| # Additional Info: | |
| # - How To Replace Docker With nerdctl And Rancher Desktop: https://youtu.be/evWPib0iNgY | |
| # - k9s Kubernetes UI - A Terminal-Based Vim-Like Kubernetes Dashboard: https://youtu.be/boaW9odvRCc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for node in node1 node2 node3;do | |
| multipass launch -n $node | |
| done | |
| # Init cluster on node1 | |
| multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -" | |
| # Get node1's IP | |
| IP=$(multipass info node1 | grep IPv4 | awk '{print $2}') |
This is a Gistified version of https://gist.github.com/hfreire/5846b7aa4ac9209699ba#gistcomment-2833377
5 sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox 6 sudo su - 7 vi ~/.config/lxsession/LXDE-pi/autostart 8 pwd 9 ls -al 10 sudo raspi-config 11 sudo apt-get install lightdm 12 sudo raspi-confi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global | |
| log /dev/log local0 | |
| log /dev/log local1 notice | |
| chroot /var/lib/haproxy | |
| stats socket /run/haproxy/admin.sock mode 660 level admin | |
| stats timeout 30s | |
| user haproxy | |
| group haproxy | |
| daemon | |
| maxconn 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -uo pipefail | |
| GEO_IP=/tmp/GeoLite2-City.mmdb | |
| sudo adduser --system --shell=/bin/bash --home-dir=/opt/flectra -m flectra && sudo mkdir /etc/flectra && mkdir /var/log/flectra/ |