Skip to content

Instantly share code, notes, and snippets.

View ashish-amarnath's full-sized avatar

Ashish Amarnath ashish-amarnath

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

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 February 24, 2020 05:53
App script to scrape OTF Email Summary
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 February 11, 2020 19:33
Setting up a K8s cluster to support CSI beta snapshot APIs
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 January 30, 2020 22:22
Velero memory usage analysis

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 \