######################
1 - old redis in k8s cluster #1
2 - fresh install of redis in Cluster #2
- Target backup data in old cluster and restore in new cluster
| For macOS users, you can set the shortcut in the same keybindings.json file. | |
| You can access the file using the shortcut cmd+shift+p, then write/select Preferences: Open Keyboard Shortcuts (JSON). | |
| In keybindings.json, paste the following code between the square brackets: | |
| ``` | |
| { | |
| "key": "cmd+.", | |
| "command": "runCommands", | |
| "when": "!terminalFocus", | |
| "args": { | |
| "commands": [ |
| alias mc="SHELL=/bin/bash TERM=xterm-256color /opt/homebrew/bin/mc" |
| #!/bin/sh | |
| # k8s-hello-world | |
| # Kubernetes deployment resources for testing new k8s cluster | |
| kubectl apply -f https://raw.githubusercontent.com/oleksdovz/k8s-hello-world/main/deployment.yaml | |
| kubectl apply -f https://raw.githubusercontent.com/oleksdovz/k8s-hello-world/main/service.yaml | |
| kubectl apply -f https://raw.githubusercontent.com/oleksdovz/k8s-hello-world/main/ingres.yaml | |
| # or |
| #!/bin/bash | |
| # make screenshot of site | |
| google-chrome --headless --no-sandbox --virtual-time-budget=25000 --screenshot https://war.ukrzen.in.ua/alerts |
| #!/bin/bash | |
| set -e | |
| set -o pipefail | |
| # Add user to k8s using service account, RBAC role file needed | |
| if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]]; then | |
| echo "usage: $0 <service_account_name> <namespace> [rbac-role-yaml]" | |
| exit 1 | |
| fi |