Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add development reverse proxy #11

Merged

Conversation

jhernand
Copy link
Collaborator

@jhernand jhernand commented Nov 8, 2023

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 the proxy.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

@jhernand jhernand force-pushed the add_development_reverse_proxy_script branch from a16ef2d to 024c697 Compare November 8, 2023 16:06
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 the `proxy.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
Signed-off-by: Juan Hernandez <[email protected]>
@jhernand jhernand force-pushed the add_development_reverse_proxy_script branch from 024c697 to 7c49bde Compare November 8, 2023 16:12
@jhernand jhernand merged commit ccd39ba into openshift-kni:main Nov 8, 2023
@jhernand jhernand deleted the add_development_reverse_proxy_script branch November 8, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant