Skip to content

Repository files navigation

Kubernetes Example

A minimal Node.js HTTP service for exercising the managed application platform.

Local use

pnpm test
pnpm start

The service listens on port 8080 by default and exposes /livez and /readyz health endpoints. Other requests return JSON containing the selected EXAMPLE_MESSAGE, ENVIRONMENT, INHERITED_VALUE, OVERRIDDEN_VALUE, and PREVIEW_ONLY_VALUE environment variables. Other process environment values are never included.

Container delivery

The container workflow delegates image publication and instance updates to the reusable Kubernetes delivery workflow. The branch names have fixed meanings; their order in the workflow does not matter:

  • a push to main updates production;
  • a push to testing updates testing;
  • opening or updating a same-repository pull request updates its preview; and
  • closing the pull request removes its preview.

Other pushed branches do not invoke the workflow.

Images are published to GitHub Container Registry and deployed only by immutable digest. The workflow needs the KUBERNETES_APP_ID and KUBERNETES_APP_PRIVATE_KEY repository secrets to dispatch the restricted Kubernetes workflow.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages