Ark gives you tools to back up and restore your Kubernetes cluster resources and persistent volumes.
helm install --name $ARK_NAME -n $ARK_NS --version v1.2.3 -f helm_charts/stable/ark/values.yaml stable/ark
kubectl run nginx --image=nginx:latest | |
kubectl get deploy nginx -o yaml > nginx.default.yaml | |
kubectl delete deployment nginx |
#!/usr/bin/env bash | |
: ' | |
Usage: | |
Run next command | |
./aks_connect.sh <aks subscription> <aks resource group> <aks name> | |
OR change vars AKS_SUBS, AKS_RG & AKS_NAME and run | |
./aks_connect.sh | |
' | |
AKS_SUBS=XXX |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: frontend | |
labels: | |
app: guestbook | |
tier: frontend | |
namespace: web | |
spec: |
Ark gives you tools to back up and restore your Kubernetes cluster resources and persistent volumes.
helm install --name $ARK_NAME -n $ARK_NS --version v1.2.3 -f helm_charts/stable/ark/values.yaml stable/ark
#!/usr/bin/env bash | |
VERSION=v2.13.1 | |
helm_install(){ | |
wget https://storage.googleapis.com/kubernetes-helm/helm-$VERSION-linux-amd64.tar.gz | |
tar zxvf helm-$VERSION-linux-amd64.tar.gz | |
sudo mv linux-amd64/helm /usr/local/bin/ | |
} |
(from https://github.com/vouill/jq-cheatsheet)
find json online:
This repo > click on a JSON > view Raw and curl the url. ex:
#!/usr/bin/env bash | |
echo "I was called with $# parameters" | |
echo "My name is: $0" | |
echo "All parameters are: $@" | |
echo "With @" | |
for var in "$@" | |
do | |
echo " Parameter: $var" |
#!/usr/bin/env bash | |
: ' | |
SOURCE node creates a tunnel to DESTINATION | |
This allows connections from DESTINATION to SOURCE with: ssh $USERNAME@localhost -p 19999 | |
' | |
USERNAME=tunnel | |
PRIVKEY=/etc/tunnel/id_rsa | |
DESTINATION=ssh.example.com |
Tools
Presentations