Skip to main content
Default Autoscaling ModeAll AWS EKS clusters on Qovery now use Karpenter for autoscaling, which automatically launches the right compute resources to handle your cluster’s applications.
Karpenter automatically launches just the right compute resources to handle your cluster’s applications. It is designed to let you take full advantage of the cloud with fast and simple compute provisioning for Kubernetes clusters. You can read our blog post for more information.
No configuration file in your repository. Qovery does not read a qovery.yml, .qovery.yml or .qovery.toml, and there is no qovery init. Projects, environments and services are created in the Console, with qovery api, or with Terraform. For the full path from a repository to a running app with commands only, see Deploy with the CLI and API.

Creating an AWS EKS Cluster

Connect Your AWS Account

Qovery needs credentials to manage resources in your AWS account. Choose your preferred method:
Restricted Credentials: by default, the credentials above are used for every operation on your cluster. You can instead attach two credentials to your cluster: extended credentials, used only when extended permissions are required (cluster creation and deletion, changes to the IAM roles and policies of the cluster), and restricted credentials, used for day-to-day operations such as weekly cluster updates and service deployments. This feature is available on request through Qovery Support. See Restricted Credentials.

Create the Cluster

1

Select AWS as Hosting Mode

Click on AWS as hosting mode and then Qovery Managed option.In the Create Cluster window enter:
  • Cluster name: enter the name of your choice for your cluster.
  • Description: enter a description to identify better your cluster.
  • Production cluster: select this option if your cluster will be used for production.
  • Region: select the geographical area in which you want your cluster to be hosted.
  • Credentials: select one of the existing cloud provider credentials or create new credentials using the section above. If Restricted Credentials is enabled for your organization, the Use restrictive permissions option is also displayed here: see Enable Restricted Credentials on a cluster.
To confirm, click Next.
2

Set Resources

In the Set Resources window, select:
  • Node disk size (GB): Specify the disk capacity allocated per worker node, determining the amount of data each node can store. The minimum value is 20GB.
  • Instance types scopes: By editing it, you can apply different filters to the node architectures, categories, families, and sizes. On the right, you can view all the instance types that match the applied filters. This means Karpenter will be able to spawn nodes on any of the listed instance types.
    • Architectures: by default both AMD64 and ARM64 architectures are selected.
    • Default build architecture: by default AMD64. If you build your application with the Qovery CI, your application will be built using this architecture by default.
    • Families: by default all families are selected.
    • Sizes: by default all sizes are selected.
  • Spot instances: In order to reduce even more your costs, you can also enable the spot instances on your clusters. Spot instances cost up to 90% less compared to On-Demand prices. But keep in mind that spot instances can be terminated by the cloud provider at any time. Check this documentation for more information. This enables spot on the default node pool; the stable node pool stays on on-demand instances. Each node pool can be tuned later in the cluster settings.
  • Enable GPU Nodepool configuration: If you want to run GPU workloads on your cluster, you can enable this option to create a dedicated nodepool for GPU instances. You will then be able to select the GPU instance types you want to use on this nodepool. To enable spot instances, toggle the spot instance flag.
Instance type selection from your Qovery Console has direct consequences on your cloud provider’s bill. While Qovery allows you to switch to a different instance type whenever you want, it is your sole responsibility to keep an eye on your infrastructure costs, especially when you want to upsize.Please be aware that changing the instance type or disk size might cause a downtime for your service.For an overview of the instance types each cloud provider offers, see What instance types are available? in the Clusters FAQ.Also, before downsizing, you need to ensure that your applications will still have enough resources to run correctly.
To confirm, click Next.
3

Configure Network

In the Network step, select the network mode you want to enable on your cluster.If you want to manage the network layer of your cluster by yourself, you can switch Network mode to Self-managed to use your own VPC instead of the one provided by Qovery.
These options can only be configured during cluster creation and cannot be modified later.

Static IP

By default, when your cluster is created, its worker nodes are allocated public IP addresses, which are used for external communication. For improved security and control, the Static IP feature allows you to ensure that outbound traffic from your cluster uses specific IP addresses.Here is what will be deployed on your cluster:
  • Nat Gateways
  • Elastic IPs
  • Private subnets
Once set up, here is the procedure to find your static IP addresses on AWS:
  • On your AWS account, select the VPC service.
  • On the left menu, you’ll find Elastic IP addresses. Once on it, in the Allocated IPv4 address column, you’ll have your public IPs.
If you work in a sensitive business area such as financial technology, enabling the Static IP feature can help fulfil the security requirements of some of the external services you use, therefore making it easier for you to get whitelisted by them.This feature has been activated by default. Since February 1, 2024, AWS charge public IPv4 Addresses. Disabling it may cost you more, depending on the number of nodes in your cluster. Check this link for more information.

Custom VPC Subnet

Virtual Private Cloud (VPC) peering allows you to set up a connection between your Qovery VPC and another VPC on your AWS account. This way, you can access resources stored on your AWS VPC directly from your Qovery applications.A VPC can only be used if it has at least one range of IP addresses called a subnet. When you create a cluster, Qovery automatically picks a default subnet for it. However, to perform VPC peering, you may want to define which specific VPC subnet you want to use, so that you can avoid any conflicting settings. To do so, you can enable the Custom VPC Subnet feature on your cluster. For more information on how to set up VPC peering, see our dedicated tutorial.
4

Create and Install

In the Ready to install your cluster window, check that the services needed to install your cluster are correct.You can now press the Create and Install button.Your cluster is now displayed in your organization settings, featuring the Installing... status (orange status). Once your cluster is properly installed, its status turns to green and you will be able to deploy your applications on it.You can follow the execution of the action via the cluster status and/or by accessing the Cluster Logs

Migrating from AWS with auto-scaler to AWS with Karpenter

Requirements

Please check carefully the following requirements to ensure a successful migration with the minimum downtime.
1

Update IAM Permissions

A SQS queue will be created. Update the IAM permissions of the Qovery user: make sure to use the latest version here to add the permission on SQS.
2

Enable Instance Metadata Service Version 2

Your cluster should use the Instance Metadata Service Version 2: make sure to set the aws.eks.ec2.metadata_imds cluster advanced settings to required if not already set (more details here). Redeploy your cluster before enabling Karpenter to apply the advanced setting change.
If some of your services are using the Instance Metadata Service Version 1, you must first update them to support the Version 2.
3

Configure Additional Subnets (Existing VPC Only)

If you have configured an existing vpc for your cluster, you’ll need to indicate some additional subnets dedicated to fargate: * those subnets must be private * they must all have access to internet through a NAT gateway
4

Update Daemonsets

If you have deployed some daemonsets, you must update their definitions to enable them to run on every node of the future nodepools (stable, default, and cronjob if enabled). Everything is explained in our guide

Managing your Cluster Settings

To manage the settings of an existing cluster:
1

Open Qovery Console

Open your Qovery Console.
2

Navigate to Cluster Page

Click on the Clusters tab.
3

Access Cluster Settings

To access your cluster settings, click on the settings tab.
Below you can find a description of each section

General

The General tab allows you to define high-level information on your cluster:

Credentials

Here you can manage here the cloud provider credentials associated with your cluster. If you need to change the credentials:
  • generate a new set of credentials on your cloud provider (Procedure for AWS account)
  • create the new credential on the Qovery by opening the drop-down and selecting “New Credentials”
Once created and associated, you need to update your cluster to apply the change. To use separate extended and restricted credentials on your cluster, see Enable Restricted Credentials on a cluster.

Resources

Qovery deploys two node pools by default:
  • Stable node pool: Used for single instances and internal Qovery applications. For example, any containerized databases or application having the number of minimum instances set to 1, will be deployed on this nodepool. On this nodepool the consolidation is deactivated by default.
  • Default node pool: Designed to handle general workloads and serves as the foundation for deploying most applications.
Additional optional node pools can be enabled:
  • GPU node pool: Can be enabled if you want to run GPU workloads on your cluster. You can select the GPU instance types you want to use on this nodepool.
  • Cronjob node pool: A dedicated node pool for Qovery cron jobs. When enabled, a Karpenter NodePool named cronjob is created with a nodepool/cronjob: NoSchedule taint. Qovery cron jobs automatically receive the appropriate toleration and a required node affinity toward this nodepool, so they always run there. This helps isolate cronjob workloads from long-running services on shared nodes. The cronjob nodepool supports consolidation scheduling, resource limits (same as the stable nodepool) and its own spot instances toggle. The node affinity is required (hard): whenever you enable or disable this nodepool, you must redeploy every cron job so they pick up the updated scheduling configuration. There is no automatic fallback to the default node pool. Cron jobs deployed before the nodepool was enabled will not run on it until they are redeployed, and cron jobs deployed while the nodepool was enabled will stay in Pending if the nodepool is later disabled and they are not redeployed.

Settings for nodepools:

  • Instance types: Define the list of instance types that can be used. (Shared for Stable and Default nodepools)
  • Spot instances: Enable or disable spot instances, per node pool. Enabling it on the stable node pool is discouraged: it hosts single-instance workloads that don’t tolerate interruptions.
  • Node disk size (GB): Specify the disk capacity allocated per worker node, determining the amount of data each node can store. (Shared for Stable and Default nodepools)
  • Consolidation schedule (Stable and Cronjob nodepools only): Optimizes resource usage by consolidating workloads onto fewer nodes. This feature is not available for the default nodepool, as consolidation can happen at any time. We recommend enabling this option; otherwise, nodes will never be consolidated, leading to unnecessary infrastructure costs.
  • Block node drift (Stable nodepool only): Define one daily UTC window during which Karpenter does not replace drifted stable nodes. A node drifts when its configuration no longer matches the node pool spec, for example after an instance type change, a Kubernetes upgrade or an AMI security update. By default Karpenter replaces drifted nodes as soon as it detects them, which restarts the single-instance workloads and containerized databases running on the stable node pool. With this option enabled, replacements wait until the window ends. Set a start time (UTC) and a duration using H for hours and M for minutes (e.g. 2H10M in the Console, PT2H10M in ISO-8601 format through the API); the maximum is 23 hours, so at least one hour per day remains available for drift. The window repeats every day. New nodes created during the window already use the updated configuration, only the replacement of existing nodes is deferred.
  • Node pool limits: Configure CPU and memory limits to ensure nodes stay within defined resource constraints, preventing excessive costs.
Instance type selection from your Qovery Console has direct consequences on your cloud provider’s bill. While Qovery allows you to switch to a different instance type whenever you want, it is your sole responsibility to keep an eye on your infrastructure costs, especially when you want to upsize.For an overview of the instance types each cloud provider offers, see What instance types are available? in the Clusters FAQ.

Mirroring registry

In this tab, you will see that a container registry already exist (called registry-{$UIID}). This is your cloud provider container registry used by Qovery to manage the deployment of your applications by mirroring the docker images. The credentials configured on this registry are the one used to create the cluster. But you can still update them if you prefer to manage them separately (dedicated pair of creds just to access the registry). Check this link for more information.

Network

The Network tab in your cluster settings allows you to:

Defining cluster node constraints to run your Services

Define if your service can run on an on-demand instance

When using spot instances in your cluster, you may want to ensure that certain critical services, such as databases or essential applications, are always deployed on on-demand instances. To specify that a service should be deployed on an on-demand instance, manually set the deployment.affinity.node.required advanced setting to:

Define the instance type to run your service

In some cases, you may need to ensure that a specific service runs on a particular instance type to meet performance, compliance, or cost requirements. For example, to assign a service to the t3a.xlarge instance type, manually set the deployment.affinity.node.required advanced setting to:
The specified instance type must be included in the list of instance types defined in the NodePool configuration.

Change the node pool of your service when using Helm

When using Helm, you can update the affinity field in your values.yaml file to target a specific node pool for your service. For example you can switch from the default to the stable nodepool:
And you also have to add tolerations:

Restricted Credentials

Restricted Credentials is not enabled by default: Qovery Support enables it per organization. Until then, the Use restrictive permissions option is not displayed in the Console. To use it, contact Qovery Support through your usual channel (in-app chat, Slack, or email) to request access.
By default, a cluster uses a single set of credentials for every operation, so the IAM role behind it keeps the unrestricted IAM and KMS permissions (iam:*, kms:*) listed in Connect Your AWS Account at all times. Restricted Credentials replace it with two IAM roles in your AWS account, each created by its own CloudFormation template (see Create the IAM roles). The role allowed to change the IAM roles, policies and KMS keys of the cluster is then only used when it is actually needed. Each of the two credentials uses the STS Assume Role method and targets its own IAM role: Extended credentials: used only for operations that need the extended permissions: Restricted credentials: used for day-to-day operations:
  • Regular weekly cluster updates
  • Service deployments, including the blueprints
Once Restricted Credentials is enabled and your cluster is redeployed, the following services that use the cluster credentials (the default behavior) are always deployed with the restricted credentials. Review them before requesting the feature: only those managing resources that rely on iam:* or kms:* are concerned.

Create the IAM roles

Each role is created by its own CloudFormation template, in the AWS account of your cluster. The two templates do not take the same parameters, and the order in which you create the stacks matters.
Create the restricted role first, then the extended role. The template of the extended role requires the name of the restricted role, because it denies any change to it. This prevents the extended role from being used to give more access to the restricted role.
The IAM and KMS permissions of both roles are scoped to the resources Qovery creates for the cluster: IAM identities named after Qovery conventions (qovery-*, Karpenter*, …) and KMS keys tagged QoveryProduct=EKS. The roles get no permission on a KMS key that Qovery does not create, unless you provide its ARN with AwsEksEncryptSecretsKmsKeyArn. The Metadata of the role resource in each template explains why each permission is needed.

Template parameters

Both templates share these parameters: The template of the extended role has two more parameters:
1

Create the restricted role

Click the Launch stack link of the restricted role. It opens AWS CloudFormation with the template pre-filled (log in to AWS if needed).Fill in the common parameters, check I acknowledge that AWS CloudFormation might create IAM resources and click Create stack. Wait for the status to change from CREATE_IN_PROGRESS to CREATE_COMPLETE.Open the Outputs tab and copy the value of the RoleARN key. Note the role name too (the RoleName parameter): the extended role needs it.
2

Create the extended role

Click the Launch stack link of the extended role and fill in the parameters:
  • The common parameters.
  • RestrictedQoveryUserRole: the name of the restricted role created in the previous step.
  • AllowQoveryDeployerAssumeRole: set it to true. Qovery must be able to assume the role to create its credentials (see the next step).
Check I acknowledge that AWS CloudFormation might create IAM resources and click Create stack. Wait for the status to change to CREATE_COMPLETE, then copy the value of the RoleARN key from the Outputs tab.
3

Create the credentials in Qovery

In Qovery, create AWS credentials with the STS Assume Role method for each role and paste its Role ARN, as described in Connect Your AWS Account.The extended role must be assumable when you create its credentials: keep AllowQoveryDeployerAssumeRole set to true until the credentials are created, otherwise the creation fails with an error.
4

Disable the extended role (optional)

Once the credentials are created, you can make the extended role unassumable: update the extended role stack in CloudFormation and set AllowQoveryDeployerAssumeRole to false. Set it back to true whenever you need to enable it again. See Enable / Disable the extended credentials IAM role.

Enable Restricted Credentials on a cluster

Once Restricted Credentials is enabled for your organization, the Use restrictive permissions option is displayed with the cluster credentials, both when you create a cluster and in the settings of an existing one. You need the two credentials created in Create the IAM roles.
In the General information step of the cluster creation, under Provider credentials:
  1. Extended credentials: select the credentials of the extended IAM role.
  2. Turn on Use restrictive permissions.
  3. Restricted credentials: select the credentials of the restricted IAM role.
  4. Slack webhook URL (optional): see Slack notifications.
Restricted Credentials fields in the cluster creation form
Then continue the cluster creation.
Do not change the cluster credentials while a cluster deployment is in progress. Wait for the running deployment to finish before you turn Use restrictive permissions on or off.Changing the credentials will block the next application deployments until the cluster deployment has re-applied the new credentials access to your cluster (less than 5 minutes after a cluster deployment is launched).
You can also configure Restricted Credentials with the qovery_cluster resource of the Qovery Terraform provider.

Turn off Restricted Credentials

Open the Settings of your cluster and select Credentials. Turn off Use restrictive permissions, change the credentials if needed, then click Save and confirm the redeployment of the cluster.

Slack notifications

You can optionally provide a Slack webhook URL. Qovery posts a message to this webhook whenever the extended credentials are required, either because a user enabled a feature that needs them or because Qovery requests them for an operation. See the Slack documentation to create an incoming webhook.

Enable / Disable the extended credentials IAM role

The extended credentials are only needed for a few operations. Whether Qovery can use them depends on the trust relationship of the extended IAM role, which is controlled by the AllowQoveryDeployerAssumeRole parameter of its CloudFormation stack:
  • Disabled (false): nobody can assume the extended IAM role. Do this as soon as Qovery no longer needs the extended credentials, for example once the cluster is installed. The role and its permissions policy are kept in your AWS account, and the restricted credentials keep being used for weekly cluster updates and service deployments.
  • Enabled (true): Qovery can assume the extended IAM role and perform the operations that require it.
When the extended credentials are required and the role is disabled, an Extended credentials required banner is displayed on the cluster page. If you configured a Slack webhook URL, you are also notified on Slack.
Extended credentials required banner on the cluster page
To enable or disable the extended credentials, update the CloudFormation stack of the extended IAM role:
1

Open the stack

In the AWS Console, go to CloudFormation > Stacks and select the stack of the extended IAM role (qovery-extended-user-role by default). Click Update stack and select Make a direct update.
Update stack menu of the extended IAM role stack with the Make a direct update option
In the Update stack page, keep the Use existing template option and click Next.
Update stack page with the Use existing template option selected
2

Update the parameter

In the Specify stack details step, set AllowQoveryDeployerAssumeRole to true to enable the extended credentials, or to false to disable them. Keep the other parameters unchanged, then click Next.
Specify stack details step with the AllowQoveryDeployerAssumeRole parameter value list
3

Review the change

Keep the default values of the Configure stack options step and click Next. In the review step, check that AllowQoveryDeployerAssumeRole is the only parameter with a new value: the others show Use existing value.
Review step of the stack update with the new AllowQoveryDeployerAssumeRole value
4

Apply the update

Check I acknowledge that AWS CloudFormation might create IAM resources and submit the update. Wait for the status to change to UPDATE_COMPLETE.
CloudFormation then updates the trust relationship of the extended IAM role. The policies below show what the stack applies for each value:
Qovery can assume the role. <organization-id> represents your Qovery organization ID.
Changing the trust policy only blocks new role assumptions. Temporary credentials that Qovery obtained before the change remain valid until they expire. To cut access immediately, open the Revoke sessions tab of the extended IAM role and click Revoke active sessions (see the AWS documentation). This interrupts any operation Qovery is running with the extended credentials.
While the extended credentials are disabled, Qovery cannot perform operations that require them, such as deleting the cluster or enabling a feature that needs additional AWS permissions.

Update your Terraform based services

Apply these steps only once your cluster uses Restricted Credentials: the dedicated IAM role only trusts the restricted IAM role, so a Terraform service running with other credentials cannot assume it.
Once your cluster uses Restricted Credentials, Terraform services that manage resources relying on iam:* or kms:* must assume a dedicated IAM role: The Terraform service still starts with the restricted credentials, then uses the dedicated IAM role to manage your IAM and KMS resources.