3.3. Creating a Container in the Cloud
Abstract
Creating a root container in the cloud uses jCloud to connect to your cloud service, create a new server instance, and install a container on the new server.
Overview
Creating a container in the cloud installs a new Fuse container on a server instance in your cloud. The management console will do the following:
- Connect to your cloud service.
- Create a new server instance in the cloud.
- Download the binary files required to install a Fuse container.
- Install the container in the user's home folder.
- Start the container and provision all of the specified profiles.
Important
Before you can create a container in the cloud, you must install a cloud service as described in Section 7.2, “Adding a Cloud Provider”.
Procedure
To create a remote root container:
- Selectfrom the main menu.The Containers page opens.
- Click.The Create Fuse Container page opens.
- In the Name field, enter a name for the new container.
- If you want to make the new container a registry server check Make container a distributed registry server.ImportantIt is recommended that if you create a registry server that you do not deploy any other services into the container.
- If you want to pass any special flags to the container's JVM:
- Check JVM Options.
- Enter the options to pass to the JVM in the field next to the check box.
- If you need to use a Maven proxy to access the repository containing your Fuse artifacts, check the Maven Proxy URL field and enter the URL for your Maven proxy.
- If you want to create multiple instances of the container enter a number greater than one in the Count field.When you create multiple containers the container's number is appended to the value specified in the Name field.
- Select how the container will report its IP address to other containers from the options in the Resolver drop-down list.The options are:
- Local Hostname
- When a requests for the container's location are made, the container's local hostname is returned.
- Local IP
- When a requests for the container's location are made, the container's local IP address is returned.
- Public Hostname
- When a requests for the container's location are made, the container's public hostname address is returned.
- Public IP
- When a requests for the container's location are made, the container's public IP address is returned.
ImportantCloud containers that use Local IP or Local Hostmane will not be accessible to containers that do not reside in the same cloud provider. - Click.The Select profiles to install on the container page opens.
- Select the version of profiles you want to use for provisioning the container.The value of this drop down defaults to the value set on the Profiles page.
- Select one or more profiles to deploy to the container.
- Click.The Select the type of container page opens.
- Select Cloud-managed Fuse container.ImportantIf you have not initiated a cloud service provider in the Cloud tab, this option will not be visible.
- Click.The Cloud Service Configuration page opens.
- Select your cloud service from the Cloud Provider drop-down list.
- Select a size for the new server instance from the Instance Type drop-down list.
- In the Instance Selection section, choose if you want to configure the new server instance by operating system or by image ID.
- Click.The second Cloud Service Configuration page opens.
- Configure the server instance that will be created.If you are configuring the server instance by operating system:
- In the OS Family field, select the operating system the server will use.
- In the OS Version field, select the version of the operating system the server will use.
If you are configuring the server instance by ID and location:- In the Image ID field, enter the ID of the image to use when instantiating the virtual machine.
- In the Location ID field, enter the ID of the location where the new server instance will be deployed.
- Click.The second Cloud Service Configuration page opens.
- In the User Account field, enter the name of the user used to install the new container on the new server instance.The specified user will be created on the new server instance and granted the required permissions to install the container.
- If the specified user does not have administrative privileges on the cloud image, check the User does not have administrative access box.
- Enter an optional image owner in the Image Owner field.
- Enter an optional group tag in the Group Tag field.
- Click.The wizard closes and the new container will appear in the list of containers. Initially the Active indicator may be red, but should turn green shortly after adding it. The Provisioned indicator may also show gray bars, but should turn green when the specified profiles are fully provisioned.