k8sConfigs/efk_cluster/fluentdLogs.sh
2025-03-24 19:12:41 +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