kubectl delete -f ../kubernetes/base/reparse-logs-job.yaml
kubectl create -f ../kubernetes/base/reparse-logs-job.yaml
pod="$(kubectl get pods | grep reparse-logs | awk '{print $1}')"
echo "Waiting for pod ${pod} to be Ready"
kubectl wait --for=condition=Ready "pod/${pod}"
kubectl logs -f "${pod}"
Output:
(log-scraper) ➜ log-scraper git:(formatting-fixes) ✗ ./test.sh
job.batch "reparse-logs" deleted
job.batch/reparse-logs created
Waiting for pod reparse-logs-mmqlc to be Ready
error: timed out waiting for the condition on pods/reparse-logs-mmqlc
Traceback (most recent call last):
File "reparse_logs.py", line 1, in <module>
import sentry_sdk
ModuleNotFoundError: No module named 'sentry_sdk'
At a glance, things look fine. Pipfile should be handling the package and the Dockerfile for log-scraper uses pipenv.
Steps to reproduce:
Output:
At a glance, things look fine. Pipfile should be handling the package and the Dockerfile for log-scraper uses pipenv.
Only guess right now is the public docker image is outdated
Alternative I could just have an environment issue.