Regarding c.KubeSpawner.environment and the EnvVar structure's valueFrom field
See original GitHub issueI tried
hub:
extraConfig:
jupyterlab: |
c.KubeSpawner.extra_container_config = {
"env": [{
"name": "MY_POD_IP",
"valueFrom": {
"fieldRef": {
"fieldPath": "status.podIP"
}
}
}]
}
But this will overwrite the default env, and cause error. Any way to append env instead of replace all env?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:21 (8 by maintainers)
Top Results From Across the Web
jupyterhub_config.py - Kubespawner - Read the Docs
A JupyterHub spawner that spawn pods in a Kubernetes Cluster. Each server spawned by a user will have its own KubeSpawner instance. after_pod_created_hook...
Read more >Add environment variable from k8s secret to notebook in ...
Basic idea is to use c.KubeSpawner.modify_pod_hook to add the variable to the pod specification. hub: extraConfig: ipaddress: | from kubernetes ...
Read more >Zero to JupyterHub - Read the Docs
Step Zero: Kubernetes on Microsoft Azure Container Service (AKS) . ... c.KubeSpawner.cmd = ['jupyter-labhub'].
Read more >containers.goffinet.org.pdf - GitLab
lorsque l'on doit la faire évoluer. C'est pourquoi Kubernetes a également été conçu pour servir de plate-forme et favoriser la.
Read more >Advanced Platform Development with Kubernetes: Enabling ...
Leverage Kubernetes for the rapid adoption of emerging technologies. Kubernetes is the future of enterprise platform dev...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @consideRatio! Last point was really the hit.
Here is my solution for now:
In case of resources, you can use
V1ResourceFieldSelector
for example,