mirror of
https://github.com/lukaszraczylo/kportal.git
synced 2026-06-05 23:03:40 +00:00
1167847fd4
* Add mDNS resolution. * Update the website and documentation
2.2 KiB
2.2 KiB
Interactive Wizards
kportal includes wizards for adding and removing port forwards from the running UI.
⌨️ Quick Reference
| Key | Action |
|---|---|
a |
Add new forward |
d |
Delete forwards |
➕ Add Forward Wizard
Press a from the main view to start the wizard.
Steps
- Context - Select Kubernetes context
- Namespace - Select namespace
- Resource Type - Choose pod (prefix), pod (selector), or service
- Resource - Enter prefix, selector, or select service
- Remote Port - Enter port on the resource
- Local Port - Enter local port (validates availability)
- Confirm - Review and optionally add an alias
Navigation
| Key | Action |
|---|---|
↑↓ / j/k |
Navigate options |
Enter |
Confirm and proceed |
Esc |
Go back / Cancel |
Ctrl+C |
Cancel immediately |
🗑️ Delete Forward Wizard
Press d from the main view.
Navigation
| Key | Action |
|---|---|
↑↓ / j/k |
Navigate |
Space |
Toggle selection |
a |
Select all |
n |
Deselect all |
Enter |
Confirm deletion |
Esc |
Cancel |
🎯 Resource Selection
Pod by Prefix
Enter app name prefix to match pods:
nginxmatchesnginx-deployment-abc123postgresmatchespostgres-statefulset-0
Pod by Selector
Use Kubernetes label syntax:
app=nginxapp=nginx,env=prod
Matching pods are shown in real-time.
Service
Select from discovered services in the namespace.
🔄 Auto Hot-Reload
Changes are applied automatically:
- Wizard writes to
.kportal.yamlatomically - File watcher detects change (~100ms)
- Manager reloads and starts forward
- UI updates
Error Handling
The wizards handle:
- Cluster unreachable - allows manual entry
- Port conflicts - shows which process is using the port
- Invalid selectors - real-time validation
- Duplicate ports - prevents conflicts
🐛 Troubleshooting
Wizard not appearing
Verify cluster connectivity:
kubectl cluster-info
Port validation delayed
Port checks run asynchronously. Wait briefly after typing.
Changes not visible
Check:
.kportal.yamlwas written correctly- No validation errors in file
- kportal process is running