Azure / Azure/azure-cli-extensions
Cannot run 2 instances of "az connectedk8s proxy" on the same VM
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
### Describe the bug
The "az connectedk8s proxy" does not allow a client proxy to run more than one instance on a VM. We would like to be able to run multiple proxies by specifying client port number.
The following code prohibit the "az connectedk8s proxy" from running multi-instances on a VM.
The code only allows a single process running:
1. Does not allow the Client port to be set. https://github.com/Azure/azure-cli-extensions/blob/c984268f77196374baf9c058bafd957ce95ce052/src/connectedk8s/azext_connectedk8s/custom.py#L1801
2. Check for a process name only. https://github.com/Azure/azure-cli-extensions/blob/c984268f77196374baf9c058bafd957ce95ce052/src/connectedk8s/azext_connectedk8s/_clientproxyutils.py#L125
What is the process for getting an idea like this evaluated?
### Related command
None
### Errors
Another instance of proxy already running
### Issue script & Debug output
none
### Expected behavior
Allow to specify client port and run instance of proxy on different local ports against different clusters.
### Environment Summary
dschveninger@LAPTOP-GLS580EI:~/nc-scripts$ az --version
azure-cli 2.39.0 *
core 2.39.0 *
telemetry 1.0.6 *
Extensions:
connectedmachine 0.5.1
connectedk8s 1.3.13
azure-devops 0.25.0
k8s-extension 1.4.1
networkcloud 0.1.7.post234
customlocation 0.1.3
hybridaks 0.1.3
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
Python location '/opt/az/bin/python3'
Extensions directory '/home/dschveninger/.azure/cliextensions'
Python (Linux) 3.10.5 (main, Jul 29 2022, 03:26:59) [GCC 9.4.0]
Legal docs and information: aka.ms/AzureCliLegal
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.