Skip to content

Commit 0852e1d

Browse files
option to start hpo with different port
Signed-off-by: kusumachalasani <[email protected]>
1 parent 9d08ea5 commit 0852e1d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

deploy_hpo.sh

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function usage() {
5353
echo " -o | --container_image: deploy specific hpo container image name [Default - kruize/hpo:<version>]"
5454
echo " -n | --namespace : Namespace to which hpo is deployed [Default - monitoring namespace for cluster type minikube]"
5555
echo " -d | --configmaps_dir : Config maps directory [Default - manifests/configmaps]"
56+
echo " -p | --port: hpo rest server port for cluster_type=native [Default - 8085]"
5657
echo " --both: install both REST and the gRPC service"
5758
echo " --rest: install REST only"
5859
echo " Environment Variables to be set: REGISTRY, REGISTRY_EMAIL, REGISTRY_USERNAME, REGISTRY_PASSWORD"

src/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def main():
3434
gRPCservice = threading.Thread(target=grpc_service.serve)
3535
gRPCservice.daemon = True
3636
gRPCservice.start()
37-
if (sys.argv[2] != ''):
37+
if ( len(sys.argv) == 3 and sys.argv[2] != '' ):
3838
server_port = int(sys.argv[2])
3939
else:
4040
server_port=8085

0 commit comments

Comments
 (0)