k8sConfigs/efk/fluentdLogs.sh
2025-01-23 01:35:27 +08:00

6 lines
181 B
Bash
Executable File

#!/bin/bash
FLUENTD_POD=$(microk8s.kubectl get pods -n efk | grep fluentd | awk '{print $1}')
echo "new pod is: " ${FLUENTD_POD}
microk8s.kubectl logs -f pod/${FLUENTD_POD} -n efk