Rename my-scripts folder to scripts
This commit is contained in:
13
scripts/shell/klogs.sh
Executable file
13
scripts/shell/klogs.sh
Executable 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
|
||||
Reference in New Issue
Block a user