Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.88 KB

File metadata and controls

55 lines (43 loc) · 1.88 KB

Generating a deployment manifest

To prepare your application for deployment to a container platform, generate a deployment manifest by using the {ProductFullName} command-line interface (CLI). Generating the deployment manifest creates the necessary configuration files to define your application’s resources, streamlining the move to your target environment.

You can auto-generate the {ocp-full} deployment manifest for the Cloud Foundry (CF) application by using the generate command. Based on the Helm template that you provide, the command generates manifests, such as a ConfigMap, and non-Kubernetes manifests, such as a Dockerfile, for application deployment.

Prerequisites
  • You have Cloud Foundry (v3) as a source platform.

  • You have {ocp-short} as a target platform.

  • You installed {ProductShortName} {CLIName} version 7.3.0.

  • You generated a discovery manifest.

  • You created a Helm template with the required configuration for the {ocp} deployment.

Procedure
  1. Open the terminal application and navigate to the <{ProductShortName}_HOME>/ directory.

  2. Generate the deployment manifest as an output file:

    $ mta-cli generate helm --chart-dir helm_sample \
    --input <path_to_discovery-manifest> \
    --output-dir <location_of_deployment_manifest> \
  3. Verify the ConfigMap:

    $ mta-cli cd <location_of_deployment_manifest> \
    $ cat configmap.yaml
    $ cat Dockerfile
  4. Verify the Dockerfile:

    $ mta-cli cd <location_of_deployment_manifest> \
    $ cat Dockerfile