#!/bin/bash # Check if an argument was provided if [ $# -eq 0 ]; then echo "Usage: ./script.sh " exit 1 fi # Get the deployment name from the first argument deployment_name=$1 # Run the kubectl command kubectl logs -l app.kubernetes.io/instance="$deployment_name"