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.
- 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.
- Log on to the Container Service - Kubernetes console. In the left-side navigation pane, choose . On the Deployments page, check whether applications are deployed.
- In the left-side navigation pane, click Ingresses or Services under Ingresses and Load Balancing to check the status of ingresses or services.