Is there an existing issue for this?
Product concerned
cloud
Feature description
Add the ability to generate Kubernetes configuration (kubeconfig) from the browser interface and directly launch Kubernetes CLI tools (kubectl or k9s) for the selected cluster.
Use Case
When browsing Kubernetes clusters in the browser, users should be able to:
- Select a Kubernetes cluster from the list
- Generate the kubeconfig file for that cluster
- Launch a Kubernetes management tool directly from the browser with the generated config
This streamlines the workflow by eliminating the need to manually:
- Navigate to the OVHcloud Manager
- Download kubeconfig
- Set up environment variables
- Launch k9s/kubectl separately
Acceptance Criteria
Implementation Details
- Integrate with OVHcloud API to fetch kubeconfig endpoint
- Generate temporary kubeconfig file in
~/.kube/ or temp directory
- Detect if k9s/kubectl are installed before launching
- Provide helpful error messages if tools are missing
- Clean up temporary files appropriately (or keep in ~/.kube for persistence)
Related Components
internal/services/browser/api.go - Add kubeconfig fetching method
internal/services/browser/manager.go - Add action handler for launching tools
- Browser UI - Add menu option for Kubernetes actions
Optional Enhancements
- Merge generated config with existing kubeconfig instead of replacing
- Save kubeconfig with cluster name for future reference
- Add keyboard shortcut to quickly launch k9s/kubectl
- Display cluster context information before launching
Is there an existing issue for this?
Product concerned
cloud
Feature description
Add the ability to generate Kubernetes configuration (kubeconfig) from the browser interface and directly launch Kubernetes CLI tools (
kubectlork9s) for the selected cluster.Use Case
When browsing Kubernetes clusters in the browser, users should be able to:
This streamlines the workflow by eliminating the need to manually:
Acceptance Criteria
kubectlwith the generated configk9swith the generated configImplementation Details
~/.kube/or temp directoryRelated Components
internal/services/browser/api.go- Add kubeconfig fetching methodinternal/services/browser/manager.go- Add action handler for launching toolsOptional Enhancements