Background information

After you use Kompose to convert a Swarm Compose file to Kubernetes resource files and manually preprocess the Kubernetes resource files, you can use kubectl to deploy the Kubernetes resource files to a Kubernetes cluster. Before you deploy the Kubernetes resource files, make sure that the credentials for accessing the Kubernetes cluster have been configured for kubectl.

Procedure

  1. Run the following command to deploy all the Kubernetes resource files in the current directory at the same time:
    kubectl create -f .            # Create resources based on file names or standard input. A dot (.) specifies that resources are created based on all the Kubernetes resource files in the current directory.
  2. Log on to the Container Service - Kubernetes console. In the left-side navigation pane, choose Applications > Deployments. On the Deployments page, check whether applications are deployed.
  3. In the left-side navigation pane, click Ingresses or Services under Ingresses and Load Balancing to check the status of ingresses or services.