Comments (2)
So this issue occurs when you open pod shell from pod details? For terminal sessions lens app will use temporary kubeconfig generated for the active cluster, so there should be only one context to use.
What is the exact error message that you will see? Also, please could you specify your OS (MacOS, Linux, Window) and Kubernetes version.
from lens.
I see. The temporary kubeconfig doesn't seem to be loaded properly in my case. I use a prompt that displays the active context and namespace, and I can still see that my terminal session is targeting a different context than what I attempt to connect to via Lens. I've actually determined that the issue is resolved by removing my KUBECONFIG export from ~/.zshenv
. That said, here is my information regarding the issue:
Here is the shell output (names altered). As you can see, my shell prompt displays the active context and namespace above command output. The pod I am trying to is running on a separate context. As mentioned above, unsetting my KUBECONFIG variable resolves the issue
kubectl exec -i -t -n mynamespace mypod-78c5b4fd9-zbkhj -c mycontainer -- sh -c "((clear && bash) || (clear && ash) || (clear && sh))"
~ (active-context/active-namespace)
❯ kubectl exec -i -t -n mynamespace mypod-78c5b4fd9-zbkhj -c mycontainer -- sh -c "((clear && bash) || (clear && ash) || (clear && sh))"
Error from server (NotFound): pods "mypod-78c5b4fd9-zbkhj" not found
System Version: macOS 10.14.3 (18D109)
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T23:49:20Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: varies by context
from lens.
Related Issues (20)
- Improve auto-detection when multiple Prometheus instances are installed HOT 1
- Resource Content Not Visible as Text
- Add pod limits show to lens HOT 8
- Lens 2024 port forwarding broken on Windows HOT 2
- App Crash when opening details on Knative Service HOT 2
- Terminal in connecting... HOT 1
- Unable to Install Extension - Starboard from AquaSecurity HOT 1
- Text is vertical in details menu of pods, hosts and others. HOT 1
- Option to extend the column view
- can't use node-shell HOT 3
- The pod's logs are black color. HOT 1
- Cannot acces cluster
- Allow for container logs to continue to stay on screen after pod is terminated HOT 1
- App crash at /workloads HOT 1
- Command Palette: View Events
- clicking on any element gives this error
- Metrics are not available due to missing or invalid Prometheus configuration.
- UI freeze part 473 HOT 3
- Realme Narzo 50 5G HOT 1
- CPU and Memory values appear as NA in the Pods List HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lens.