Exposing Multiple Ports

Learn how to easily configure multi-port exposure for your applications on ClawCloud Run, supporting multi-protocol needs, diverse functionalities, and monitoring requirements—all while gaining dedica

In complex application environments, it’s common to expose multiple ports for different use cases. Here are typical scenarios:

  • Multi-Protocol Support: Expose ports like 80 (HTTP) and 443 (HTTPS) to handle both protocols.

  • Multi-Functional Services: Separate ports for distinct services, e.g., a web service on port 8080 and an admin interface on port 8081.

  • Backward Compatibility: Maintain legacy and modern interfaces by exposing ports for both (e.g., 3000 for legacy APIs and 4000 for newer versions).

  • Monitoring & Metrics: Expose a dedicated port (e.g., 9090) for Prometheus to scrape metrics via /metrics endpoints.

  • GRPC + RESTful Coexistence: Serve GRPC on port 50051 and RESTful APIs on port 8080 simultaneously.


Configuring Multi-Port Exposure in ClawCloud Run

  1. During Deployment via APP Launchpad:

    • Navigate to Network Configuration in the deployment workflow.

    • Click Add Port to define additional ports.

    • Specify the port number, protocol (HTTP/HTTPS/TCP).

  2. Automatic Subdomain Assignment:

    • ClawCloud Run assigns a unique subdomain (e.g., metrics.your-app.claw.run) for each port, simplifying access management.

  3. Post-Deployment Adjustments:

    • Modify exposed ports anytime by updating your application’s configuration in the APP Launchpad.

Last updated

Was this helpful?