Skip to content

Instantly share code, notes, and snippets.


Ashish Amarnath ashish-amarnath

View GitHub Profile
ashish-amarnath /
Last active Dec 8, 2021
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](
  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 /
Last active Feb 24, 2020
App script to scrape OTF Email Summary
function scrapeEmail() {
var sheet = SpreadsheetApp.getActiveSheet();
var threads =" OR ");
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 /
Created Feb 11, 2020
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
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"
# from
ashish-amarnath /
Last active Jan 30, 2020
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 \