diff --git a/docs/server/source/production-deployment-template/node-on-kubernetes.rst b/docs/server/source/production-deployment-template/node-on-kubernetes.rst index 4237fbe3..b35c0648 100644 --- a/docs/server/source/production-deployment-template/node-on-kubernetes.rst +++ b/docs/server/source/production-deployment-template/node-on-kubernetes.rst @@ -128,7 +128,22 @@ Step 4.1: Vanilla NGINX the ConfigMap followed by ``-dep``. For example, if the value set in the ``ngx-instance-name`` is ``ngx-instance-0``, set the ``spec.selector.app`` to ``ngx-instance-0-dep``. - + + * Set ``ngx-public-mdb-port.port`` to 27017, or the port number on which you + want to expose MongoDB service. + Set the ``ngx-public-mdb-port.targetPort`` to the port number on which the + Kubernetes MongoDB service will be present. + + * Set ``ngx-public-api-port.port`` to 80, or the port number on which you want to + expose BigchainDB API service. + Set the ``ngx-public-api-port.targetPort`` to the port number on which the + Kubernetes BigchainDB API service will present. + + * Set ``ngx-public-ws-port.port`` to 81, or the port number on which you want to + expose BigchainDB Websocket service. + Set the ``ngx-public-ws-port.targetPort`` to the port number on which the + BigchainDB Websocket service will be present. + * Start the Kubernetes Service: .. code:: bash @@ -155,6 +170,27 @@ Step 4.2: OpenResty NGINX + 3scale ``ngx-instance-name`` is ``ngx-instance-0``, set the ``spec.selector.app`` to ``ngx-instance-0-dep``. + * Set ``ngx-public-mdb-port.port`` to 27017, or the port number on which you + want to expose MongoDB service. + Set the ``ngx-public-mdb-port.targetPort`` to the port number on which the + Kubernetes MongoDB service will be present. + + * Set ``ngx-public-3scale-port.port`` to 8080, or the port number on which + you want to let 3scale communicate with Openresty NGINX for authenctication. + Set the ``ngx-public-3scale-port.targetPort`` to the port number on which + this Openresty NGINX service will be listening to for communication with + 3scale. + + * Set ``ngx-public-bdb-port.port`` to 443, or the port number on which you want + to expose BigchainDB API service. + Set the ``ngx-public-api-port.targetPort`` to the port number on which the + Kubernetes BigchainDB API service will present. + + * Set ``ngx-public-bdb-port-http.port`` to 80, or the port number on which you + want to expose BigchainDB Websocket service. + Set the ``ngx-public-bdb-port-http.targetPort`` to the port number on which the + BigchainDB Websocket service will be present. + * Start the Kubernetes Service: .. code:: bash @@ -277,12 +313,6 @@ Step 8.1: Vanilla NGINX ``BIGCHAINDB_BACKEND_HOST`` env var to ``bdb-instance-0.default.svc.cluster.local``. - * Set ``MONGODB_FRONTEND_PORT`` to 27017, or the port number on which you - want to expose MongoDB service. - - * Set ``BIGCHAINDB_FRONTEND_PORT`` to 80, or the port number on which you - want to expose BigchainDB service. - * Start the Kubernetes Deployment: .. code:: bash @@ -315,12 +345,6 @@ Step 8.2: OpenResty NGINX + 3scale ``BIGCHAINDB_BACKEND_HOST`` env var to ``bdb-instance-0.default.svc.cluster.local``. - * Set ``MONGODB_FRONTEND_PORT`` to 27017, or the port number on which you - want to expose the MongoDB service. - - * Set ``BIGCHAINDB_FRONTEND_PORT`` to 443, or the port number on which you - want to expose the BigchainDB service over HTTPS. - * Start the Kubernetes Deployment: .. code:: bash