When you have previously registered an existing EKS cluster in Cocktail and need to delete it, simply delete the cluster from the AWS console. Please keep this in mind.
1) Register the created EKS cluster with the Cocktail Cloud using the following procedure.
1) Click on the "+ Register cluster in use" button in the upper right corner of the [Infrastructure] - [Clusters] tab.
1) Select 'Amazon Web Service' as the provider in the cluster configuration form.
2) Choose the type attribute as 'EKS'.
3) Once these two attributes are selected, the Cluster ID setting will be displayed in the cluster configuration form.
4) Choose the region as the one where EKS was created (Example: Seoul (ap-northeast-2)).
The Provider and Type fields are mandatory.
1) Click the "Save" button in the menu bar to save the cluster registration.
2) After registration is complete, the cluster list will be displayed.
1) To use PV/PVC, you need to create a new storage class.
1) Click on the "+ Create" button at the top right corner of the [Storage] - [Storage Classes] tab, then select AWS EBS CSI.
1) Fill out the settings form accordingly, then click the "Save" button.
1) You can now verify the created storage class
Item (* is required) | Content |
---|---|
Item (* is required) | Content |
---|---|
Cluster ID*
Cluster name managed by AWS EKS - Retrieve from the Kubernetes config file for the cluster to be registered (~/.kube/config) - Alternatively, check in the AWS console under EKS > Clusters and input the information.
ID*
The content written for the cluster ID remains the same - Must not overlap with the IDs of other already registered clusters
Kubernetes Version*
Enter the Kubernetes Version for the Cluster to be registered
Cluster Name*
The Cluster Name to be used in Cocktail Cloud
Description
Description of the Cluster to be registered
Master address*
Kubernetes Master API Address -Alternatively, check AWS Console > EKS > API Server Endpoint section and enter
Node Port Host Address*
Enter the Public IP of Kubernetes
Node Port Range*
Input the port range 30000-32767, which is available in Kubernetes
Cluster CA Certification*
Cluster CA Certificate
- check AWS Console > EKS > Certificate authority section and enter.
Access Key ID*
ACCESS_KEY of the AWS IAM user with access to the cluster to be registered - Confirm and retrieve from AWS Console > IAM > Users.
Secret Access Key*
SECRET_ACCESS_KEY of the AWS IAM user with access to the cluster to be registered
- Confirm and retrieve from AWS Console > IAM > Users.
Name*
Storage Controller Name
Description
Description of the Storage Controller
Base Storage
Default Storage Settings for Use in this Cluster
Volume Binding Mode*
Volume Binding Mode Selection
- Immediate: Operates at the time PVC is created.
- WaitForFirstConsumer: Operates at the time Pod is created
Reclaim Policy*
- RETAIN: The storage remains when deleted and is automatically reattached upon recreation.
- DELETE: The storage is deleted along with the resource.
Parameters
Name and Value are separated. In each server, enter the IP of the server-side (target) for server, and for share, enter the mount path of the server-side (target).
Mount Options
Only values can be registered. For each, enter "hard" for the value and specify the NFS version (nfsvers). For default OS, set nfsversion to 4.1, and for NAS or other storage, set it to 3.