Modify UI Port for CodeGen to avoid unsafe_port issue (#249)
Signed-off-by: zehao-intel <zehao.huang@intel.com>
This commit is contained in:
@@ -29,7 +29,7 @@ Make sure all the pods are running, and restart the codegen-xxxx pod if necessar
|
||||
|
||||
```
|
||||
kubectl get pods
|
||||
curl http://codegen:6666/v1/codegen -H "Content-Type: application/json" -d '{
|
||||
curl http://codegen:7778/v1/codegen -H "Content-Type: application/json" -d '{
|
||||
"messages": "Implement a high-level API for a TODO list application. The API takes as input an operation request and updates the TODO list in place. If the request is invalid, raise an exception."
|
||||
}'
|
||||
```
|
||||
|
||||
@@ -58,8 +58,8 @@ metadata:
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 6666
|
||||
targetPort: 6666
|
||||
- port: 7778
|
||||
targetPort: 7778
|
||||
protocol: TCP
|
||||
name: codegen
|
||||
selector:
|
||||
@@ -202,6 +202,6 @@ spec:
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: codegen
|
||||
containerPort: 6666
|
||||
containerPort: 7778
|
||||
protocol: TCP
|
||||
resources: null
|
||||
|
||||
@@ -58,8 +58,8 @@ metadata:
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 6666
|
||||
targetPort: 6666
|
||||
- port: 7778
|
||||
targetPort: 7778
|
||||
protocol: TCP
|
||||
name: codegen
|
||||
selector:
|
||||
@@ -200,6 +200,6 @@ spec:
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: codegen
|
||||
containerPort: 6666
|
||||
containerPort: 7778
|
||||
protocol: TCP
|
||||
resources: null
|
||||
|
||||
Reference in New Issue
Block a user