Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch adds a
proxy.sh
script that starts the servers and the reverse proxy in the local machine. The reverse proxy is Envoy, and the configuration is in theproxy.yaml
file.To use it run the
run.sh
script. It will start the metadata server listening in port 8000, the deployment manager server listening in port 80001 and the reverse proxy listening in port 9000. Then, for example, go to port 9000 to get the list API versions served by the metadata server:http://localhost:9000/O2ims_infrastructureInventory/api_versions
Or to get the the list of deployment managers server by the deployment manager server:
http://localhost:9000/O2ims_infrastructureInventory/v1/deploymentManagers
To finish, type Ctrl+C and the proxy and the servers will be killed.
The administration port of the proxy is 9001. There you can see Envoy cofguration details and metrics.
This reverse proxy configuration is intended for development environments only, but will be the seed for the production configuration.
Related: https://issues.redhat.com/browse/MGMT-16113