#!/bin/bash if [ $# -ne 1 ]; then echo "Incorrect number of arguments" fi NODE=$1 DIR=$2 echo "Resetting $DIR on ${NODE}" NODEIP=$(kubectl get nodes -o wide | grep ${NODE} | grep -v "INTERNAL-IP" | awk '{print $6}') echo "Node IP: $NODEIP" echo "Creating ceph-wipe pod to clear $DIR on $NODE (${NODEIP})" cat <