Skip to content

Quickstart

Deploy a container image with ezgh, call its URL, deploy a new revision and delete the service.

Updated View as Markdown

You need the ezgh CLI, a project, and an image in the project’s Container Registry whose server listens for HTTP on a port: PORT in its environment, or 8080.

  1. Deploy the image. The service is created, its first revision starts, and ezgh waits until it’s ready, then prints the service with its URL:

    ezgh run deploy hello --image <id>.registry.ezghcloud.com/acme/hello:1
  2. Call it.

    curl https://hello-k3f9a0.run.us-west-1.ezghapps.com/

    The first request after a quiet period waits while an instance starts.

  3. Deploy a new revision. Flags you leave out keep the latest revision’s values:

    ezgh run deploy hello --image <id>.registry.ezghcloud.com/acme/hello:2 --max-concurrency 200 --env MODE=prod

    The new revision takes all the traffic once it’s ready. Until then, the previous one keeps serving; if it fails, the previous one goes on serving.

  4. List its revisions, and split traffic between two of them:

    ezgh run revisions hello
    ezgh run traffic hello latest=90 rrv_k3f9a0x2m7qp=10
  5. Delete it. Its URL stops answering, and its revisions and instances are deleted:

    ezgh run delete hello --yes

In the console, Run › Create service takes the same settings, and a service’s page has Deploy revision and Actions › Edit traffic.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close