Skip to content

Instantly share code, notes, and snippets.

Avatar

Ashish Amarnath ashish-amarnath

View GitHub Profile
@ashish-amarnath
ashish-amarnath / velero-csi-plugin-demo.md
Last active Dec 8, 2021
This gist is a follow-up to the CSI Integration blog post on the Velero website.
View velero-csi-plugin-demo.md

This gist is a follow-up to the CSI Integration blog post on the Velero website. Updates here include:

  1. Using v0.1.2 release of velero-plugin-for-csi
  2. Using [v1.1.1 release of velero-plugin-for-microsoft-azure](https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/releases/tag/v1.1.1)
  3. Using v1.5.2 release of Velero

Below are the updated set of instructions to

  1. Create AKS cluster with kubernetes version v1.17 or later. In this example an AKS cluster running v1.18.6 is used.
  2. Install CSI driver
@ashish-amarnath
ashish-amarnath / otfEmailScrapper.gs
Last active Feb 24, 2020
App script to scrape OTF Email Summary
View otfEmailScrapper.gs
function scrapeEmail() {
var sheet = SpreadsheetApp.getActiveSheet();
var threads = GmailApp.search("from:OTbeatReport@orangetheoryfitness.com OR OtBeatSummary@orangetheoryfitness.com ");
sheet.getRange(1,1).setValue("Date");
sheet.getRange(1,2).setValue("Time");
sheet.getRange(1,3).setValue("Coach");
sheet.getRange(1,4).setValue("Location");
sheet.getRange(1,5).setValue("Minutes in Grey Zone");
sheet.getRange(1,6).setValue("Minutes in Blue Zone");
sheet.getRange(1,7).setValue("Minutes in Green Zone");
@ashish-amarnath
ashish-amarnath / setup-csi.sh
Created Feb 11, 2020
Setting up a K8s cluster to support CSI beta snapshot APIs
View setup-csi.sh
echo "Creating a Kubernetes 1.17 cluster using Kind..."
kind create cluster --image=kindest/node:v1.17.0 --name csi-117
# https://github.com/ashish-amarnath/csi-driver-host-path/tree/deploy-1.17
cd /Users/ashisham/work/kubernetes/src/code/csi-driver-host-path/
echo "Deploying hostpath plugin from $(PWD), from branch $(git branch | grep "*") *"
read -p "Press enter to deploy"
./deploy/kubernetes-1.17/deploy-hostpath.sh
# from https://github.com/ashish-amarnath/external-snapshotter/tree/deploy-1.17
@ashish-amarnath
ashish-amarnath / velero-memory-analysis.md
Last active Jan 30, 2020
Velero memory usage analysis
View velero-memory-analysis.md

Setup port-forwarding for the velero metric server address

$ kubectl --namespace velero portforward deploy/velero 8085:8085

Scrapping Velero memory metrics

$ while true; do curl http://localhost:8085/metrics | grep -E \