dehaze

Deploying Existing Docker Container

Space Cloud lets you leverage all the capabilities of Kubernetes without having to learn the Kubernetes API.

If you don’t already have a docker container published for your code/service, then you should check out deploying your code.

Deploying docker container

Checkout to the Deployments section in the Microservices navigation. Click on the Add button to open the following form to create a service:

Deployment add service form

Enter the following config:

  • Service Id: A unique name to identify your service.
  • Version: A unique name (e.g. v1) to identify the different versions of your service.
  • Docker Image: The docker image that you want to deploy.
  • Ports: Ports of the docker container that you want to expose.

Hit the Deploy button to deploy the service.

We haven’t changed any of the advanced configurations in this example. Feel free to explore those as well.

Space Cloud will now pull the docker image (if it was not cached earlier) and run the docker container with the specified ports being exposed.

You can deploy containers from any docker registry as long as it is accessible to Space Cloud.

Space Cloud also creates an internal domain to access the service from within the cluster. This internal domain is of the following format:

<service-id>.<project-id>.svc.cluster.local

Assuming your project id is myproject, and you haved named your service as myapp, then the the internal domain will be:

myapp.myproject.svc.cluster.local

Under the hood Space Cloud also configures Istio and setups up mtls, authentication policies and more to secure your deployments by default.

Next steps

Have a technical question?

Improve the docs!