I used conda and flask in k8s, but ‘kubectl logs pod’does not have any logs.
- activate conda env:
SHELL ["conda","run","-n","env_name","bin/bash","-c"]
- run flask(seldon) application:
CMD exec seldon-core-microservice Model --service-type MODEL --persistence 0
- "docker run -ti " local container can display logs
- "kubectl logs " dones not have any logs
I set log config in .py:
logging.basicConfig(level=logging.INFO)
logger = logging.get Logger(__name__)
And try to print some logs by:
logging.info("hello world")
Debug in the local container can see logs, but pod does not have logs. Other pods created in the same way, as long as Conda is not used, can see logs Any advices? Thanks.