fix paymentservice ports
This commit is contained in:
parent
e0f2f5ec4a
commit
a4da01c64e
2 changed files with 5 additions and 2 deletions
|
@ -31,6 +31,9 @@ spec:
|
||||||
image: paymentservice
|
image: paymentservice
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 50051
|
- containerPort: 50051
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "50051"
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
||||||
|
|
|
@ -27,7 +27,7 @@ const logger = pino({
|
||||||
});
|
});
|
||||||
|
|
||||||
class HipsterShopServer {
|
class HipsterShopServer {
|
||||||
constructor (protoRoot, port = HipsterShopServer.DEFAULT_PORT) {
|
constructor (protoRoot, port = HipsterShopServer.PORT) {
|
||||||
this.port = port;
|
this.port = port;
|
||||||
|
|
||||||
this.packages = {
|
this.packages = {
|
||||||
|
@ -99,6 +99,6 @@ class HipsterShopServer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HipsterShopServer.DEFAULT_PORT = 50051;
|
HipsterShopServer.PORT = process.env.PORT;
|
||||||
|
|
||||||
module.exports = HipsterShopServer;
|
module.exports = HipsterShopServer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue