Ocean is a managed infrastructure service for Kubernetes that automatically adjusts infrastructure capacity and size to meet the needs of all pods, containers, and applications.

This tutorial covers the creation of an Ocean cluster using Spot.

Prerequisites
  • OpenShift is installed and configured on AWS or GCP
  • At least one worker node is up and running 

To get started with the Ocean Creation Wizard, log on to your Spot account.

Step 1: Create Ocean Cluster
  • In the side menu of the console, click Ocean/Cloud Clusters.

  • Click Create Cluster.
  • Click  the use case for OpenShift, “Join an Existing OpenShift Cluster”.

Step 2: Enter General Information
  • Enter a Cluster Name and Identifier and choose a Region.
  • Choose an Auto Scaling Group or worker node Instance to import the cluster configuration from.

Step 3: Review Compute Settings
  • Confirm or change the settings imported by the Ocean Creation Wizard.

Step 4: Connectivity
  • Create a Spotinst token or use an existing one.
  • Install the Spotinst Controller Pod. Learn more about the Spotinst Controller Pod and Ocean’s anatomy here.
  • Ensure enable-csr-approval is set to True.
  • Click Test Connectivity to ensure the controller functionality.
#!/usr/bin/env bash
curl -fsSL http://spotinst-public.s3.amazonaws.com/integrations/kubernetes/cluster-controller/scripts/init.sh | \
SPOTINST_TOKEN=<ENTER YOUR TOKEN HERE> \
SPOTINST_ACCOUNT=act-54c5d1ab \
SPOTINST_CLUSTER_IDENTIFIER=open-shift \
ENABLE-CSR-APPROVAL=True \
bash

  • When the connectivity test is complete, click Create.

You’re all set! Ocean will now ensure the most cost-effective capacity and size possible for your cluster.

What’s Next?

Learn more about Ocean scaling and optimization features here.