1. Virtual Machine Ubuntu 20.04LTS (Azure, GCP, AWS, Aliyun, etc)
2. 16GB RAM
3. 512 GB Storage
4. One disk add for PV
This file contains 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
Install youtube-dl | |
brew install youtube-dl | |
Install ffmpeg for mp3 conversion | |
brew install ffmpeg | |
Installing spotify dl |
This file contains 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
k9s is an excellent cli tool to interact with the kubernetes clusters | |
brew install derailed/k9s/k9s | |
Ref: | |
https://k9scli.io/topics/install/ | |
https://k9scli.io/ |
This file contains 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
curl -sfL https://get.k3s.io | sh - | |
k3s kubectl get nodes | |
The kubeconfig is stored at | |
cat /etc/rancher/k3s/k3s.yaml | |
To join other nodes to the cluster |
This file contains 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
curl -sLS https://dl.get-arkade.dev | sudo sh | |
ark --help | |
arkade info openfaas | |
arkade install openfaas | |
kubectl -n openfaas get deployments -l "release=openfaas, app=openfaas" | |
curl -SLsf https://cli.openfaas.com | sudo sh | |
kubectl rollout status -n openfaas deploy/gateway | |
kubectl port-forward --address 0.0.0.0 -n openfaas svc/gateway 8080:8080 & | |
PASSWORD=$(kubectl get secret -n openfaas basic-auth -o jsonpath="{.data.basic-auth-password}" | base64 --decode; echo) | |
echo -n $PASSWORD | faas-cli login --username admin --password-stdin |
This file contains 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
Installing RKE and Rancher | |
Ubuntu 20.04 | |
1 vim /etc/ssh/sshd_config | |
2 systemctl restart sshd | |
3 sudo apt-get update | |
4 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
5 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
6 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ |
This file contains 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
********************************************************************************************* | |
# 1. Create 4 VMs - master(1) and worker(3) nodes | |
Node Reqs (varies depending on usage) | |
------------------------------------- | |
Master: 2 vCPUs - 6GB Ram | |
Worker: 1 vCPUs - 3GB RAM | |
OS: CentOS/RHEL 7 |
This file contains 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/zsh | |
vared -p "Enter commit message: " -c message | |
printf "\e[33m\nBuilding project...\e[39m\n" | |
hugo -d ../YOUR_GITHUB_USERNAME.github.io | |
printf "\\e[33m\nPushing to YOUR_GITHUB_USERNAME.github.io repository...\e[39m\n\n" | |
cd ../YOUR_GITHUB_USERNAME.github.io | |
git add . |
This file contains 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
Check the ruby version | |
kiranchavala@Kirans-MacBook-Pro ~ % ruby -v | |
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19] | |
gem version | |
kiranchavala@Kirans-MacBook-Pro ~ % gem -v | |
3.0.3 |
I hereby claim:
- I am kiranchavala on github.
- I am kiranchavala (https://keybase.io/kiranchavala) on keybase.
- I have a public key ASB0wltcVttdhmAW6vrdXSuq-CqNOo6Mb99NN1-VVyJYwQo
To claim this, I am signing this object: