Deploying a Service with Oracle Container Cloud Service

You can deploy a service individually rather than as part of a stack (for example, when an application comprises a single service, or a number of services running separately).

To deploy a service using the Oracle Container Cloud Service Container Console:
  1. On the Services page of the Container Console, click the Deploy button beside the name of the service that you want to deploy.
    Description of occs_service-deploy-1.png follows
    Description of the illustration occs_service-deploy-1.png
  2. Specify a name for this specific deployment of the service (the name doesn’t have to be unique, because Oracle Container Cloud Service identifies a deployment with an auto-generated unique deployment identifier).
  3. Specify the resource pool on which to deploy the service.
  4. Specify the number of containers to deploy in the Quantity field.
  5. Review the default service orchestration information and, if necessary, update the details to specify how and where to deploy the number of containers you specified:
    • If you want to deploy a certain number of containers in the resource pool as a whole without worrying about which host they’re on:
      • Select per-pool (across hosts in this pool) from the list.

      • From the Scheduling Policy list, specify how Oracle Container Cloud Service determines which hosts to start the containers on.

    • If you want to deploy a certain number of containers on every host in the resource pool that has a particular tag associated with it:
      • Select per-tag (across hosts in this pool with a tag of...) from the list.

      • Specify the tag to use to identify the hosts on which to deploy the service in the Tag field.

      • From the Scheduling Policy list, specify how Oracle Container Cloud Service determines which hosts to start the containers on.

    • If you want to deploy a certain number of containers on every host in the resource pool, select per-host (on each host in this pool) from the list.

    Tip:

    If you want to have more control over the hosts a service can be deployed on, use the Constraints options to specify particular hosts based on their host name or associated tag.

  6. Click Deploy to deploy and start the service in the resource pool and on the hosts that you specified.

    Description of occs_service-deploy-detail-1.png follows
    Description of the illustration occs_service-deploy-detail-1.png
    The Deployments page appears and shows details of the deployment you just created by deploying the service, including:
    • the names of the containers that have been started for the deployment

    • the names of the hosts on which the deployment’s containers are running

    • the YAML that was executed for the deployment (note that if the original YAML is subsequently modified, the YAML shown for this deployment won’t change)