#!/usr/bin/env bash time=300 function=hello-kubeless-go-sc for (( i = 1 ; i <= $time ; i++ )); do kubectl get deployment | grep $function | awk '{print $2}' | cut -d/ -f1 >> ./data/$function.monitor.csv # echo '\n' >> ./data/$function.monitor.csv sleep 1 done