Devboot update: 23-10-05-08-23-11
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
# Check if an argument was provided
|
# Check if an argument was provided
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "Usage: ./script.sh <deployment-name>"
|
echo "Usage: ./script.sh <deployment-name>"
|
||||||
@@ -10,4 +10,4 @@ fi
|
|||||||
deployment_name=$1
|
deployment_name=$1
|
||||||
|
|
||||||
# Run the kubectl command
|
# Run the kubectl command
|
||||||
kubectl logs -l app.kubernetes.io/instance="$deployment_name"
|
kubectl -n$K_DEFAULT_NAMESPACE logs --selector app.kubernetes.io/instance=$deployment_name --follow
|
||||||
|
|||||||
Reference in New Issue
Block a user