Refactor scripts names and location

This commit is contained in:
Matheus Albino Brunhara
2024-02-22 14:09:23 -03:00
parent 186be867c5
commit 160476e536
9 changed files with 86 additions and 0 deletions

13
scripts/shell/job/klogs.sh Executable file
View File

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