fix currenservice ports
This commit is contained in:
parent
a4da01c64e
commit
b67c91b545
2 changed files with 4 additions and 1 deletions
|
@ -32,6 +32,9 @@ spec:
|
|||
ports:
|
||||
- name: grpc
|
||||
containerPort: 7000
|
||||
env:
|
||||
- name: PORT
|
||||
value: "7000"
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:7000"]
|
||||
|
|
|
@ -36,7 +36,7 @@ const protoLoader = require('@grpc/proto-loader');
|
|||
const MAIN_PROTO_PATH = path.join(__dirname, './proto/demo.proto');
|
||||
const HEALTH_PROTO_PATH = path.join(__dirname, './proto/grpc/health/v1/health.proto');
|
||||
|
||||
const PORT = 7000;
|
||||
const PORT = process.env.PORT;
|
||||
|
||||
const shopProto = _loadProto(MAIN_PROTO_PATH).hipstershop;
|
||||
const healthProto = _loadProto(HEALTH_PROTO_PATH).grpc.health.v1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue