vagrant@Master:~$ kubectl logs emailservice-7d4b8cd7d6-xjk9q -n online kubectl logs…
- User
vagrant@Master:~$ kubectl logs emailservice-7d4b8cd7d6-xjk9q -n online kubectl logs recommendationservice-5966b9f59d-lsslz -n online /usr/local/lib/python3.12/site-packages/google/rpc/init.py:18: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources /usr/local/lib/python3.12/site-packages/opentelemetry/instrumentation/dependencies.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import (
- Assistant
The warnings you are seeing in the logs are related to the
pkg_resourcespackage, which is part ofsetuptools. The message indicates that:pkg_resourcesis deprecated and planned for removal as early as November 30, 2025.- You should avoid using
pkg_resourcesor ensure your environment usessetuptoolsversions lower than 81 to prevent future issues.
These warnings come from libraries you are using inside your containers (Google RPC, OpenTelemetry instrumentation, etc.) and are triggered during Python imports.
- User
ai for debug k8s
- Assistant
- User
mcp
- Assistant
- User
export GEMINI_API_KEY=AIzaSyAxkNup3I add to busr rc to dont ask me
- Assistant
To make the environment variable
GEMINI_API_KEYpersistent so you don't have to export it every time you start a new shell session, you need to add the export command to your shell's rc file.
Steps:
- Open your shell rc file for editing. This depends on your shell:
- For bash (most common):
~/.bashrc - For zsh (if you use Zsh):
~/.zshrc
Example for bash:
bashnano ~/.bashrc- Add the following line at the end of the file:
bashexport GEMINI_API_KEY=AIzaSyAxkNup3I-
Save and exit (
Ctrl+O,Enter,Ctrl+Xin nano).