---
title: "Upgrade Elastigroup To Ocean"
method: POST
path: "/ocean/aws/k8s/cluster/import"
tags: ["Ocean AWS"]
---

# Upgrade Elastigroup To Ocean

`POST /ocean/aws/k8s/cluster/import`

Upgrade an Elastigroup with Kubernetes integration to Ocean for Kubernetes cluster.

## Query parameters

- `groupId` string, required

## Parameters

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

## Response `200`

Ocean Response

- object
  - `kind` string
  - `items` object
    - `id` string
    - `name` string
    - `clusterName` string
    - `autoScaler` object
      - `isEnabled` boolean
      - `isAutoConfig` boolean
    - `region` string
    - `groupId` string
    - `strategy` object
      - `fallbackToOd` boolean
      - `spotPercentage` integer
      - `drainingTimeout` integer
    - `compute` object — Compute specifications for the Ocean cluster.
      - `subnetIds` string[], required — A comma-separated list of subnet identifiers for the Ocean cluster. Subnet identifiers should be configured with auto-assign public IP.
      - `instanceTypes` object — The type of instances that may or may not be a part of the Ocean cluster.
        - `whitelist` string[] — Instance types allowed in the Ocean cluster. Cannot be configured if a deny list is configured.
        - `blacklist` string[] — Instance types to avoid launching in the Ocean cluster. Cannot be configured if a permit list is configured.
        - `filters` Filters — unresolved $ref
      - `launchSpecification` object, required — The default specification for nodes in the cluster. Used as a template for custom Virtual Node Groups to inherit values which are not explicitly defined in them, and as a default VNG when no other VNGs exist or match the workload requirements.
        - `useAsTemplateOnly` boolean — The configuration specified on the Ocean object will function only as a template for virtual node groups.
        - `imageId` string, required — identifier of the image used to launch the instances.
        - `userData` string, byte — The base 64 encoded MIME user data to make available to the instances.
        - `securityGroupIds` string[], required — One or more security group identifiers.
        - `iamInstanceProfile` object — The instance profile iamRole.
          - `arn` string — The iamRole ARN.
        - `blockDeviceMappings` object[] — Block devices that are exposed to the instance. You can specify virtual devices and EBS volumes.\ This parameter and rootVolumeSize cannot be in the specification at the same time.\ This parameter can be null. If not null, it must contain at least one block device.
          - `deviceName` string — Set device name.
          - `ebs` object — Set EBS properties.
            - `throughput` integer — The amount of data transferred to or from a storage device per second. You can use this parameter only if volumetype=‘gp3’.
            - `deleteOnTermination` boolean — Flag to delete the EBS on instance termination.
            - `encrypted` boolean
            - `iops` integer — Must be greater than or equal to 0.
            - `dynamicIops` object — Set dynamic IOPS properties. When using this object, you cannot use the `iops` object. You must use one or the other. When `dynamicIops` is configured, the `volumeType` field must also be set.
              - …
            - `kmsKeyId` string
            - `snapshotId` string
            - `volumeType` string — Specifies the EBS volume type. This field is required when either `dynamicIops` or `dynamicVolumeSize` is configured.
            - `volumeSize` integer — Set volume size (in GB). When using this property, you cannot use dynamicVolumeSize. You must use one of the other. Volume size should be greater than or equal to the size configured in the AMI.
            - `dynamicVolumeSize` object — Set dynamic volume size properties. When using this object, you cannot use volumeSize. You must use one or the other. When `dynamicVolumeSize` is configured, the `volumeType` field must also be set.
              - …
        - `keyPair` string — The key pair to attach the instances.
        - `tags` object[] — List of kay-value pairs of tags.
          - `tagKey` string — Set the tag key.
          - `tagValue` string — Set the tag value.
        - `loadBalancers` Items[] — Configure load balancer settings for the Ocean cluster. — unresolved $ref
        - `associatePublicIpAddress` boolean — Configure public IP address allocation.
        - `associateIpv6Address` boolean — Configure IPv6 address allocation. \ Not required if the subnet is configured to “auto assign ipv6 addresses”.
        - `primaryIpv6` boolean — Enables assignment of a primary IPv6 address to the cluster. This feature is only available when `associateIpv6Addresses` is explicitly set to `true`. Additionally, the cluster must have been initially created as an EKS cluster in IPv6 mode.
        - `monitoring` boolean — Enable detailed monitoring for cluster. Flag will enable CloudWatch detailed monitoring (one minute increments). There are additional hourly costs for this service based on the region used.
        - `ebsOptimized` boolean — Enable EBS optimization for the cluster. A flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized, this flag will be ignored.
        - `rootVolumeSize` integer — Set root volume size in GiB.
        - `reservedENIs` integer — Specifies the count of ENIs to reserve per instance type for scaling purposes.
        - `instanceMetadataOptions` object — Ocean instance metadata options object for [IMDSv2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html).
          - `httpTokens` 'optional' | 'required', required — Determines if a signed token is required or not.
          - `httpPutResponseHopLimit` integer — An integer within 1,64 range (including). The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.
          - `httpEndpoint` 'disabled' | 'enabled' — Enables or disables the HTTP metadata endpoint on your instances.
        - `resourceTagSpecification` object — Optional field. Specify which resources should be tagged with Virtual Node Group tags or Ocean tags. If tags are set on the VNG, the resources will be tagged with the VNG tags; otherwise, they will be tagged with the Ocean tags.
          - `volumes` object — Optional field. Tag specification for Volume resources.
            - `shouldTag` boolean — Optional field. Specify if Volume resources will be tagged with Virtual Node Group tags or Ocean tags.
        - `healthCheckUnhealthyDurationBeforeReplacement` integer — The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60.
        - `startupTaints` object[] — Temporary taints applied to a node during its initialization phase. For a startup taint to work, it must also be set as a regular taint in the userData for the cluster.
          - `key` string — Set startup taint key.
          - `value` string — Set startup taint value.
          - `effect` string — Set startup taint effect.
        - `instanceStorePolicy` InstanceStorePolicy — unresolved $ref
        - `gpu` Gpu — unresolved $ref
    - `createdAt` string
    - `updatedAt` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
