# 1. Initialize Kubernetes cluster

Notes: When creating a Kubernetes cluster need following resources are required:

Quota CPU, CPU, RAM, Storage, and Instance enough for cluster configuration required.&#x20;

* 1 Public IP Available: it’s used for Kubernetes API and Ingress.&#x20;
* 1 VM Network: Network is used for Kubernetes Nodes, The user creates menu Networking > [Subnet](https://docs.fptcloud.com/docs/fpt%20networking%20service/subnets/instructions/). Requiring Subnet have “ Static IP Pool” with option Advanced.

**Step 1**: When you active FKE Service, on the **Menu** click **Kubernetes** > **Create**

![](https://2390348865-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlkzQhTPyIXxhxLraR5E%2Fuploads%2FTDfhhxItL5L3vjfha7ol%2Fcreate.jpg?alt=media\&token=9a9083cc-a8a0-40c6-bf71-e3b2aae9e4a9)

**Bước 2**: Screen Create new Kubernetes to appear, The user enters the necessary information to initialize the Kubernetes cluster.

![](https://2390348865-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlkzQhTPyIXxhxLraR5E%2Fuploads%2F73H1wfr4fPAWWYBroDnR%2Fcreate1.jpg?alt=media\&token=b1021374-b382-445f-94b5-8b87548576b2)

**Information common**

* **Name**: User enters the name of the cluster&#x20;
* **Public IP**: Select Public IP use for Kubernetes Cluster. It’ll be assigned to LB’s Virtual IPs for the following functions: K8s API(TCP-6443), K8s ingress ( TCP - 80, TCP - 443)&#x20;
* **Version**: Version of a cluster.&#x20;
* **Network**: Subnet is used to deploy VMs of the Kubernetes cluster.

**Master Configuration**

* Type: VM configuration instance type ( CPU & Memory) for Master Node&#x20;
* Disk(GB): Master Node’s root disk capacity.&#x20;
* High Availability:&#x20;
  * Disable: Quantity (1) corresponds to the number of VM instance Master Node for cluster K8s which is 01.&#x20;
  * Enable: Quantity (3) corresponds to the number of VM instance Master Node for cluster K8s is 03.

**Worker Configuration:**

* **Type**: VM instance configuration type (CPU & Memory) for worker node.&#x20;
* **Disk** (GB): Worker node’s root disk capacity.&#x20;
* **Quantity**: The number of VM instance Worker nodes for cluster K8s.

**Storage Policy & Load Balancer**

* Policy: Select the Storage Policy used for the disk of VMs in the Kubernetes cluster.&#x20;
* LB Size: Load Balancer’s configuration.&#x20;
  * Standard: Max 2000 CCU, 4000 http req/s, bandwidth 100Mbps.&#x20;
  * Advanced: Max 4000 CCU, 8000 http req/s, bandwidth 100Mbps.&#x20;
  * Premium: Max 8000 CCU, 16000 http req/s, bandwindth 100 Mbps.

**Nodes Credentials**

* **Password**: Password used to login VM Node (user root)&#x20;
* **Public key**: The Key used to login VM Node (user root). The user created in menu “SSH Management”.

**NFS Storage**

* **Check box**: Select to deploy NFS Persistent Storage with the Kubernetes Cluster.&#x20;
* **Disk** (GB): NFS storage’s capacity.

**Advance Config**

Select the “eye” icon to display advanced information for the Kubernetes cluster. If you don't understand parameters, leave them as defaults.

* Pod Network: Network used for the pod in the cluster.&#x20;
* Service Network: Network used for Service in the cluster.&#x20;
* Network Node Prefix: Subnet Prefix for the pod in the cluster.&#x20;
* Max pod per Node: The maximum number of Pods in the Node.

**Step 3**: Check all the entered parameters, select **Create** to perform the initialization of the K8s cluster.&#x20;

The process will execute, while the user can’t edit the cluster until the process is complete
