Skip to main content

Deploy an Application

Deploy a container to Cloud Run, Kubernetes or Compute Engine. Use an Application when the platform builds the image. Use an ExternalApplication when the image already exists in a registry.

Prerequisites​

  • The ReleaseTrack, ApplicationSet and DeploymentConfig manifests from Get Started.
  • For an Application: a BuildDefinition. See Set Up a Repository and CI.
  • For an ExternalApplication: an ExternalRegistry and a TrustedRepository manifest for the registry, and the name of the image.

Steps​

  1. Create the application manifest. Pick one.

    An ExternalApplication names a trusted repository and an image:

    apiVersion: lowops.manifests.v1
    kind: ExternalApplication
    metadata:
    name: my-new-app
    application-set: my-app-set
    release-track: my-product-releasetrack
    organizational-unit: your-ou
    organization: your-org
    spec:
    trustedRepository: my-trusted-repo # a TrustedRepository manifest
    image: my-image # the image in that repository
    project: your-project
    target: CLOUD_RUN # or KUBERNETES, or COMPUTE

    An Application names the BuildDefinition that builds the image:

    apiVersion: lowops.manifests.v1
    kind: Application
    metadata:
    name: my-new-app
    application-set: my-app-set
    release-track: my-product-releasetrack
    organizational-unit: your-ou
    organization: your-org
    spec:
    buildDefinition: my-app-build-definition
    project: your-project
    target: CLOUD_RUN

    If target is KUBERNETES, set spec.cluster to the name of a Kubernetes manifest. Support for Google Kubernetes Engine (GKE) is in active development and not yet generally available.

  2. Set metadata.name of the DeploymentConfig to the name of the application.

  3. Commit all new manifests in one pull request. The plan lists the Google Cloud resources that the merge creates.

  4. Merge the pull request.

Verify​

The run for your merge shows the application as created. The platform deploys it to the first environment with the settings of the DeploymentConfig.

Next​