Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate values for ENV vars for pods in shared mode #204

Open
galal-hussein opened this issue Jan 22, 2025 · 0 comments
Open

Duplicate values for ENV vars for pods in shared mode #204

galal-hussein opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
bug Something isn't working priority/1 virtual-kubelet all virtual kubelet related issues

Comments

@galal-hussein
Copy link
Collaborator

Currently we modify the env vars for the pods created in shared mode, mainly the KUBERNETES_* env vars to connect the pods to the API of the virtual cluster, however it seems that we are duplicating the value and not actually replacing the old values, this is causing many warnings:

{"level":"info","timestamp":"2025-01-22T17:46:30.655Z","logger":"KubeAPIWarningLogger","msg":"spec.containers[0].env[8]: hides previous definition of \"KUBERNETES_PORT_443_TCP\", which may be dropped when using apply"}
{"level":"info","timestamp":"2025-01-22T17:46:30.655Z","logger":"KubeAPIWarningLogger","msg":"spec.containers[0].env[9]: hides previous definition of \"KUBERNETES_PORT\", which may be dropped when using apply"}
{"level":"info","timestamp":"2025-01-22T17:46:30.655Z","logger":"KubeAPIWarningLogger","msg":"spec.containers[0].env[10]: hides previous definition of \"KUBERNETES_PORT_443_TCP_ADDR\", which may be dropped when using apply"}
{"level":"info","timestamp":"2025-01-22T17:46:30.655Z","logger":"KubeAPIWarningLogger","msg":"spec.containers[0].env[11]: hides previous definition of \"KUBERNETES_SERVICE_HOST\", which may be dropped when using apply"}
{"level":"info","timestamp":"2025-01-22T17:46:30.655Z","logger":"KubeAPIWarningLogger","msg":"spec.containers[0].env[12]: hides previous definition of \"KUBERNETES_SERVICE_PORT\", which may be dropped when using apply"}
@galal-hussein galal-hussein self-assigned this Jan 22, 2025
@galal-hussein galal-hussein added virtual-kubelet all virtual kubelet related issues priority/1 bug Something isn't working labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority/1 virtual-kubelet all virtual kubelet related issues
Projects
None yet
Development

No branches or pull requests

1 participant