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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 35 additions and 35 deletions

View File

@ -120,13 +120,13 @@ spec:
- | - |
bigchaindb -l DEBUG start bigchaindb -l DEBUG start
ports: ports:
- containerPort: "<bigchaindb-api-port from ConfigMap>" - containerPort: 9984
protocol: TCP protocol: TCP
name: bdb-port name: bdb-port
- containerPort: "<bigchaindb-ws-port from ConfigMap>" - containerPort: 9985
protocol: TCP protocol: TCP
name: bdb-ws-port name: bdb-ws-port
- containerPort: "<tm-abci-port from ConfigMap>" - containerPort: 46658
protocol: TCP protocol: TCP
name: tm-abci-port name: tm-abci-port
volumeMounts: volumeMounts:

View File

@ -9,16 +9,16 @@ spec:
selector: selector:
app: bdb-instance-0-dep app: bdb-instance-0-dep
ports: ports:
- port: "<bigchaindb-api-port from ConfigMap>" - port: 9984
targetPort: "<bigchaindb-api-port from ConfigMap>" targetPort: 9984
name: bdb-api-port name: bdb-api-port
protocol: TCP protocol: TCP
- port: "<bigchaindb-ws-port from ConfigMap>" - port: 9985
targetPort: "<bigchaindb-ws-port from ConfigMap>" targetPort: 9985
name: bdb-ws-port name: bdb-ws-port
protocol: TCP protocol: TCP
- port: "<tm-abci-port from ConfigMap>" - port: 46658
targetPort: "<tm-abci-port from ConfigMap>" targetPort: 46658
name: tm-abci-port name: tm-abci-port
protocol: TCP protocol: TCP
type: ClusterIP type: ClusterIP

View File

@ -63,7 +63,7 @@ spec:
add: add:
- FOWNER - FOWNER
ports: ports:
- containerPort: "<mongodb-backend-port from ConfigMap>" - containerPort: 27017
protocol: TCP protocol: TCP
name: mdb-api-port name: mdb-api-port
volumeMounts: volumeMounts:

View File

@ -9,8 +9,8 @@ spec:
selector: selector:
app: mdb-instance-0-ss app: mdb-instance-0-ss
ports: ports:
- port: "<mongodb-backend-port from ConfigMap>" - port: 27017
targetPort: "<mongodb-backend-port from ConfigMap>" targetPort: 27017
name: mdb-port name: mdb-port
protocol: TCP protocol: TCP
type: ClusterIP type: ClusterIP

View File

@ -90,15 +90,15 @@ spec:
# HTTPS traffic. # HTTPS traffic.
- containerPort: 80 - containerPort: 80
protocol: TCP protocol: TCP
- containerPort: "<cluster-frontend-port from ConfigMap>" - containerPort: 443
protocol: TCP protocol: TCP
- containerPort: "<cluster-health-check-port from ConfigMap>" - containerPort: 8888
protocol: TCP protocol: TCP
name: ngx-port name: ngx-port
- containerPort: "<tm-pub-key-access from ConfigMap>" - containerPort: 9986
protocol: TCP protocol: TCP
name: tm-pub-key name: tm-pub-key
- containerPort: "<tm-p2p-port from ConfigMap>" - containerPort: 46656
protocol: TCP protocol: TCP
name: tm-p2p-port name: tm-p2p-port
livenessProbe: livenessProbe:

View File

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

View File

@ -9,9 +9,9 @@ spec:
ports: ports:
spec: spec:
ports: ports:
- port: "<tm-p2p-port from ConfigMap>" - port: 46656
name: p2p name: p2p
- port: "<tm-rpc-port from ConfigMap>" - port: 46657
name: pubkey name: pubkey
# FQDN of remote cluster/NGINX instance # FQDN of remote cluster/NGINX instance
externalName: "<dns-name-remote-nginx>" externalName: "<dns-name-remote-nginx>"

View File

@ -40,7 +40,7 @@ spec:
name: tendermint-config name: tendermint-config
key: tm-pub-key-access key: tm-pub-key-access
ports: ports:
- containerPort: "<tm-pub-key-access from ConfigMap>" - containerPort: 9986
name: tm-pk-access name: tm-pk-access
volumeMounts: volumeMounts:
- name: tm-config-data - name: tm-config-data
@ -109,7 +109,7 @@ spec:
- name: tm-config-data - name: tm-config-data
mountPath: /tendermint_node_data mountPath: /tendermint_node_data
ports: ports:
- containerPort: "<tm-p2p-port from ConfigMap>" - containerPort: 46656
name: p2p name: p2p
- containerPort: "<tm-rpc-port from ConfigMap>" - containerPort: 46657
name: rpc name: rpc

View File

@ -9,16 +9,16 @@ spec:
selector: selector:
app: tm-instance-1-ss app: tm-instance-1-ss
ports: ports:
- port: "<tm-p2p-port from ConfigMap>" - port: 46656
targetPort: "<tm-p2p-port from ConfigMap>" targetPort: 46656
name: p2p name: p2p
protocol: TCP protocol: TCP
- port: "<tm-rpc-port from ConfigMap>" - port: 46657
targetPort: "<tm-rpc-port from ConfigMap>" targetPort: 46657
name: rpc name: rpc
protocol: TCP protocol: TCP
- port: "<tm-pub-key-access from ConfigMap>" - port: 9986
targetPort: "<tm-pub-key-access from ConfigMap>" targetPort: 9986
name: pub-key-access name: pub-key-access
protocol: TCP protocol: TCP
clusterIP: None clusterIP: None