Ocean Insights

Create Cluster

Creates an Ocean Insight entity according to a given specification.

Prerequisite:

The Ocean Controller is used to monitor the cluster resources and report back to Ocean. The Ocean Controller is required for Ocean Insights.<br />

To install the Ocean Controller, complete and run the following script on a machine with the kubectl command line tool installed and configured:

#!/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=<ENTER YOUR SPOTINST ACCOUNT ID HERE> \
SPOTINST_CLUSTER_IDENTIFIER=<ENTER YOUR CLUSTER IDENTIFIER HERE> \
bash
post/ocean/insights/k8s/cluster

Parameters

#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref

Request body

Example request

{
  "cluster": {
    "id": "oic-12345abc",
    "name": "Ocean::my-ocean-insight-name",
    "controllerClusterId": "oceanInsight.k8s",
    "createdAt": "2019-06-03T08:13:08.000Z",
    "updatedAt": "2019-06-10T15:06:13.000Z"
  }
}