14 lines
404 B
Bash
Executable File
14 lines
404 B
Bash
Executable File
#!/bin/bash
|
|
|
|
microk8s.kubectl delete configMap fluentd-config -n efk
|
|
microk8s.kubectl apply -f fluentd-configMap.yaml
|
|
microk8s.kubectl delete daemonSet fluentd -n efk
|
|
microk8s.kubectl apply -f fluentd-daemonset.yaml
|
|
sleep 5
|
|
FLUENTD_POD=$(microk8s.kubectl get pods -n efk | grep fluentd | awk '{print $1}')
|
|
echo "new pod is: " ${FLUENTD_POD}
|
|
microk8s.kubectl logs pod/${FLUENTD_POD} -n efk
|
|
sleep 2
|
|
exit
|
|
|