Hardcode static ports for k8s deployment (#2080)

Description
Currently we manually configure ports in deployment and service files for k8s deployment e.g here. Instead these ports should be constant since these are always the same for each deployment

Issues This PR Fixes
Fixes #2077
This commit is contained in:
Shahbaz Nazir
2018-02-22 11:52:41 +01:00
committed by GitHub
parent 1aece3c10d
commit a782fa4635
9 changed files with 35 additions and 35 deletions

View File

@@ -13,20 +13,20 @@ spec:
selector:
app: ngx-instance-0-dep
ports:
- port: "<cluster-frontend-port from ConfigMap>"
targetPort: "<cluster-frontend-port from ConfigMap>"
- port: 443
targetPort: 443
name: public-secure-cluster-port
protocol: TCP
- port: "<mongodb-frontend-port from ConfigMap>"
targetPort: "<mongodb-frontend-port from ConfigMap>"
- port: 27017
targetPort: 27017
name: public-mdb-port
protocol: TCP
- port: "<tm-pub-key-access from ConfigMap>"
targetPort: "<tm-pub-key-access from ConfigMap>"
- port: 9986
targetPort: 9986
name: tm-pub-key-access
protocol: TCP
- port: "<tm-p2p-port from ConfigMap>"
targetPort: "<tm-p2p-port from ConfigMap>"
- port: 46656
targetPort: 46656
protocol: TCP
name: tm-p2p-port
- port: 80