curl --request PUT \
--url https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aws.cloudwatch.eks_logs_retention_days": 123,
"aws.cloudwatch.eks_logs_types": [
"api",
"audit",
"authenticator",
"controllerManager",
"scheduler"
],
"aws.vpc.enable_s3_flow_logs": true,
"aws.vpc.flow_logs_retention_days": 123,
"aws.vpc.enable_nat_gateway_secondary_eip": true,
"loki.log_retention_in_week": 123,
"loki.single_binary.cpu_request_m": 123,
"loki.single_binary.cpu_limit_m": 123,
"loki.single_binary.memory_request_mib": 123,
"loki.single_binary.memory_limit_mib": 123,
"loki.write.cpu_request_m": 123,
"loki.write.cpu_limit_m": 123,
"loki.write.memory_request_mib": 123,
"loki.write.memory_limit_mib": 123,
"loki.read.cpu_request_m": 123,
"loki.read.cpu_limit_m": 123,
"loki.read.memory_request_mib": 123,
"loki.read.memory_limit_mib": 123,
"loki.backend.cpu_request_m": 123,
"loki.backend.cpu_limit_m": 123,
"loki.backend.memory_request_mib": 123,
"loki.backend.memory_limit_mib": 123,
"registry.image_retention_time": 123,
"cloud_provider.container_registry.tags": {},
"aws.eks.enable_alb_controller": true,
"aws.eks.enable_efs_addon": false,
"aws.eks.efs.throughput_mode": "elastic",
"aws.eks.efs.performance_mode": "generalPurpose",
"aws.eks.efs.transition_to_ia": "AFTER_30_DAYS",
"load_balancer.size": "<string>",
"database.postgresql.deny_any_access": true,
"database.postgresql.allowed_cidrs": [
"<string>"
],
"database.mysql.deny_any_access": true,
"database.mysql.allowed_cidrs": [
"<string>"
],
"database.mongodb.deny_any_access": true,
"database.mongodb.allowed_cidrs": [
"<string>"
],
"database.redis.deny_any_access": true,
"database.redis.allowed_cidrs": [
"<string>"
],
"aws.iam.admin_group": "<string>",
"aws.eks.ec2.ami": "AmazonLinux2023",
"aws.eks.karpenter.private_pool.cpu_manager_policy_static": false,
"pleco.resources_ttl": 123,
"registry.mirroring_mode": "Service",
"nginx.vcpu.request_in_milli_cpu": 123,
"nginx.vcpu.limit_in_milli_cpu": 123,
"nginx.memory.request_in_mib": 123,
"nginx.memory.limit_in_mib": 123,
"envoy.gateway_api.http_request_timeout_seconds": 1,
"envoy.gateway_api.http_connection_idle_timeout_seconds": 1,
"envoy.gateway_api.retry.num_retries": 1,
"envoy.gateway_api.retry.retry_on": "<string>",
"envoy.gateway_api.retry.http_status_codes": "<string>",
"envoy.gateway_api.retry.per_try_timeout_seconds": 2,
"nginx.hpa.cpu_utilization_percentage_threshold": 123,
"nginx.hpa.min_number_instances": 123,
"nginx.hpa.max_number_instances": 123,
"storageclass.fast_ssd": "<string>",
"qovery.static_ip_mode": true,
"k8s.api.allowed_public_access_cidrs": [
"<string>"
]
}
'import requests
url = "https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings"
payload = {
"aws.cloudwatch.eks_logs_retention_days": 123,
"aws.cloudwatch.eks_logs_types": ["api", "audit", "authenticator", "controllerManager", "scheduler"],
"aws.vpc.enable_s3_flow_logs": True,
"aws.vpc.flow_logs_retention_days": 123,
"aws.vpc.enable_nat_gateway_secondary_eip": True,
"loki.log_retention_in_week": 123,
"loki.single_binary.cpu_request_m": 123,
"loki.single_binary.cpu_limit_m": 123,
"loki.single_binary.memory_request_mib": 123,
"loki.single_binary.memory_limit_mib": 123,
"loki.write.cpu_request_m": 123,
"loki.write.cpu_limit_m": 123,
"loki.write.memory_request_mib": 123,
"loki.write.memory_limit_mib": 123,
"loki.read.cpu_request_m": 123,
"loki.read.cpu_limit_m": 123,
"loki.read.memory_request_mib": 123,
"loki.read.memory_limit_mib": 123,
"loki.backend.cpu_request_m": 123,
"loki.backend.cpu_limit_m": 123,
"loki.backend.memory_request_mib": 123,
"loki.backend.memory_limit_mib": 123,
"registry.image_retention_time": 123,
"cloud_provider.container_registry.tags": {},
"aws.eks.enable_alb_controller": True,
"aws.eks.enable_efs_addon": False,
"aws.eks.efs.throughput_mode": "elastic",
"aws.eks.efs.performance_mode": "generalPurpose",
"aws.eks.efs.transition_to_ia": "AFTER_30_DAYS",
"load_balancer.size": "<string>",
"database.postgresql.deny_any_access": True,
"database.postgresql.allowed_cidrs": ["<string>"],
"database.mysql.deny_any_access": True,
"database.mysql.allowed_cidrs": ["<string>"],
"database.mongodb.deny_any_access": True,
"database.mongodb.allowed_cidrs": ["<string>"],
"database.redis.deny_any_access": True,
"database.redis.allowed_cidrs": ["<string>"],
"aws.iam.admin_group": "<string>",
"aws.eks.ec2.ami": "AmazonLinux2023",
"aws.eks.karpenter.private_pool.cpu_manager_policy_static": False,
"pleco.resources_ttl": 123,
"registry.mirroring_mode": "Service",
"nginx.vcpu.request_in_milli_cpu": 123,
"nginx.vcpu.limit_in_milli_cpu": 123,
"nginx.memory.request_in_mib": 123,
"nginx.memory.limit_in_mib": 123,
"envoy.gateway_api.http_request_timeout_seconds": 1,
"envoy.gateway_api.http_connection_idle_timeout_seconds": 1,
"envoy.gateway_api.retry.num_retries": 1,
"envoy.gateway_api.retry.retry_on": "<string>",
"envoy.gateway_api.retry.http_status_codes": "<string>",
"envoy.gateway_api.retry.per_try_timeout_seconds": 2,
"nginx.hpa.cpu_utilization_percentage_threshold": 123,
"nginx.hpa.min_number_instances": 123,
"nginx.hpa.max_number_instances": 123,
"storageclass.fast_ssd": "<string>",
"qovery.static_ip_mode": True,
"k8s.api.allowed_public_access_cidrs": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
'aws.cloudwatch.eks_logs_retention_days': 123,
'aws.cloudwatch.eks_logs_types': ['api', 'audit', 'authenticator', 'controllerManager', 'scheduler'],
'aws.vpc.enable_s3_flow_logs': true,
'aws.vpc.flow_logs_retention_days': 123,
'aws.vpc.enable_nat_gateway_secondary_eip': true,
'loki.log_retention_in_week': 123,
'loki.single_binary.cpu_request_m': 123,
'loki.single_binary.cpu_limit_m': 123,
'loki.single_binary.memory_request_mib': 123,
'loki.single_binary.memory_limit_mib': 123,
'loki.write.cpu_request_m': 123,
'loki.write.cpu_limit_m': 123,
'loki.write.memory_request_mib': 123,
'loki.write.memory_limit_mib': 123,
'loki.read.cpu_request_m': 123,
'loki.read.cpu_limit_m': 123,
'loki.read.memory_request_mib': 123,
'loki.read.memory_limit_mib': 123,
'loki.backend.cpu_request_m': 123,
'loki.backend.cpu_limit_m': 123,
'loki.backend.memory_request_mib': 123,
'loki.backend.memory_limit_mib': 123,
'registry.image_retention_time': 123,
'cloud_provider.container_registry.tags': {},
'aws.eks.enable_alb_controller': true,
'aws.eks.enable_efs_addon': false,
'aws.eks.efs.throughput_mode': 'elastic',
'aws.eks.efs.performance_mode': 'generalPurpose',
'aws.eks.efs.transition_to_ia': 'AFTER_30_DAYS',
'load_balancer.size': '<string>',
'database.postgresql.deny_any_access': true,
'database.postgresql.allowed_cidrs': ['<string>'],
'database.mysql.deny_any_access': true,
'database.mysql.allowed_cidrs': ['<string>'],
'database.mongodb.deny_any_access': true,
'database.mongodb.allowed_cidrs': ['<string>'],
'database.redis.deny_any_access': true,
'database.redis.allowed_cidrs': ['<string>'],
'aws.iam.admin_group': '<string>',
'aws.eks.ec2.ami': 'AmazonLinux2023',
'aws.eks.karpenter.private_pool.cpu_manager_policy_static': false,
'pleco.resources_ttl': 123,
'registry.mirroring_mode': 'Service',
'nginx.vcpu.request_in_milli_cpu': 123,
'nginx.vcpu.limit_in_milli_cpu': 123,
'nginx.memory.request_in_mib': 123,
'nginx.memory.limit_in_mib': 123,
'envoy.gateway_api.http_request_timeout_seconds': 1,
'envoy.gateway_api.http_connection_idle_timeout_seconds': 1,
'envoy.gateway_api.retry.num_retries': 1,
'envoy.gateway_api.retry.retry_on': '<string>',
'envoy.gateway_api.retry.http_status_codes': '<string>',
'envoy.gateway_api.retry.per_try_timeout_seconds': 2,
'nginx.hpa.cpu_utilization_percentage_threshold': 123,
'nginx.hpa.min_number_instances': 123,
'nginx.hpa.max_number_instances': 123,
'storageclass.fast_ssd': '<string>',
'qovery.static_ip_mode': true,
'k8s.api.allowed_public_access_cidrs': ['<string>']
})
};
fetch('https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'aws.cloudwatch.eks_logs_retention_days' => 123,
'aws.cloudwatch.eks_logs_types' => [
'api',
'audit',
'authenticator',
'controllerManager',
'scheduler'
],
'aws.vpc.enable_s3_flow_logs' => true,
'aws.vpc.flow_logs_retention_days' => 123,
'aws.vpc.enable_nat_gateway_secondary_eip' => true,
'loki.log_retention_in_week' => 123,
'loki.single_binary.cpu_request_m' => 123,
'loki.single_binary.cpu_limit_m' => 123,
'loki.single_binary.memory_request_mib' => 123,
'loki.single_binary.memory_limit_mib' => 123,
'loki.write.cpu_request_m' => 123,
'loki.write.cpu_limit_m' => 123,
'loki.write.memory_request_mib' => 123,
'loki.write.memory_limit_mib' => 123,
'loki.read.cpu_request_m' => 123,
'loki.read.cpu_limit_m' => 123,
'loki.read.memory_request_mib' => 123,
'loki.read.memory_limit_mib' => 123,
'loki.backend.cpu_request_m' => 123,
'loki.backend.cpu_limit_m' => 123,
'loki.backend.memory_request_mib' => 123,
'loki.backend.memory_limit_mib' => 123,
'registry.image_retention_time' => 123,
'cloud_provider.container_registry.tags' => [
],
'aws.eks.enable_alb_controller' => true,
'aws.eks.enable_efs_addon' => false,
'aws.eks.efs.throughput_mode' => 'elastic',
'aws.eks.efs.performance_mode' => 'generalPurpose',
'aws.eks.efs.transition_to_ia' => 'AFTER_30_DAYS',
'load_balancer.size' => '<string>',
'database.postgresql.deny_any_access' => true,
'database.postgresql.allowed_cidrs' => [
'<string>'
],
'database.mysql.deny_any_access' => true,
'database.mysql.allowed_cidrs' => [
'<string>'
],
'database.mongodb.deny_any_access' => true,
'database.mongodb.allowed_cidrs' => [
'<string>'
],
'database.redis.deny_any_access' => true,
'database.redis.allowed_cidrs' => [
'<string>'
],
'aws.iam.admin_group' => '<string>',
'aws.eks.ec2.ami' => 'AmazonLinux2023',
'aws.eks.karpenter.private_pool.cpu_manager_policy_static' => false,
'pleco.resources_ttl' => 123,
'registry.mirroring_mode' => 'Service',
'nginx.vcpu.request_in_milli_cpu' => 123,
'nginx.vcpu.limit_in_milli_cpu' => 123,
'nginx.memory.request_in_mib' => 123,
'nginx.memory.limit_in_mib' => 123,
'envoy.gateway_api.http_request_timeout_seconds' => 1,
'envoy.gateway_api.http_connection_idle_timeout_seconds' => 1,
'envoy.gateway_api.retry.num_retries' => 1,
'envoy.gateway_api.retry.retry_on' => '<string>',
'envoy.gateway_api.retry.http_status_codes' => '<string>',
'envoy.gateway_api.retry.per_try_timeout_seconds' => 2,
'nginx.hpa.cpu_utilization_percentage_threshold' => 123,
'nginx.hpa.min_number_instances' => 123,
'nginx.hpa.max_number_instances' => 123,
'storageclass.fast_ssd' => '<string>',
'qovery.static_ip_mode' => true,
'k8s.api.allowed_public_access_cidrs' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings"
payload := strings.NewReader("{\n \"aws.cloudwatch.eks_logs_retention_days\": 123,\n \"aws.cloudwatch.eks_logs_types\": [\n \"api\",\n \"audit\",\n \"authenticator\",\n \"controllerManager\",\n \"scheduler\"\n ],\n \"aws.vpc.enable_s3_flow_logs\": true,\n \"aws.vpc.flow_logs_retention_days\": 123,\n \"aws.vpc.enable_nat_gateway_secondary_eip\": true,\n \"loki.log_retention_in_week\": 123,\n \"loki.single_binary.cpu_request_m\": 123,\n \"loki.single_binary.cpu_limit_m\": 123,\n \"loki.single_binary.memory_request_mib\": 123,\n \"loki.single_binary.memory_limit_mib\": 123,\n \"loki.write.cpu_request_m\": 123,\n \"loki.write.cpu_limit_m\": 123,\n \"loki.write.memory_request_mib\": 123,\n \"loki.write.memory_limit_mib\": 123,\n \"loki.read.cpu_request_m\": 123,\n \"loki.read.cpu_limit_m\": 123,\n \"loki.read.memory_request_mib\": 123,\n \"loki.read.memory_limit_mib\": 123,\n \"loki.backend.cpu_request_m\": 123,\n \"loki.backend.cpu_limit_m\": 123,\n \"loki.backend.memory_request_mib\": 123,\n \"loki.backend.memory_limit_mib\": 123,\n \"registry.image_retention_time\": 123,\n \"cloud_provider.container_registry.tags\": {},\n \"aws.eks.enable_alb_controller\": true,\n \"aws.eks.enable_efs_addon\": false,\n \"aws.eks.efs.throughput_mode\": \"elastic\",\n \"aws.eks.efs.performance_mode\": \"generalPurpose\",\n \"aws.eks.efs.transition_to_ia\": \"AFTER_30_DAYS\",\n \"load_balancer.size\": \"<string>\",\n \"database.postgresql.deny_any_access\": true,\n \"database.postgresql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mysql.deny_any_access\": true,\n \"database.mysql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mongodb.deny_any_access\": true,\n \"database.mongodb.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.redis.deny_any_access\": true,\n \"database.redis.allowed_cidrs\": [\n \"<string>\"\n ],\n \"aws.iam.admin_group\": \"<string>\",\n \"aws.eks.ec2.ami\": \"AmazonLinux2023\",\n \"aws.eks.karpenter.private_pool.cpu_manager_policy_static\": false,\n \"pleco.resources_ttl\": 123,\n \"registry.mirroring_mode\": \"Service\",\n \"nginx.vcpu.request_in_milli_cpu\": 123,\n \"nginx.vcpu.limit_in_milli_cpu\": 123,\n \"nginx.memory.request_in_mib\": 123,\n \"nginx.memory.limit_in_mib\": 123,\n \"envoy.gateway_api.http_request_timeout_seconds\": 1,\n \"envoy.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"envoy.gateway_api.retry.num_retries\": 1,\n \"envoy.gateway_api.retry.retry_on\": \"<string>\",\n \"envoy.gateway_api.retry.http_status_codes\": \"<string>\",\n \"envoy.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"nginx.hpa.cpu_utilization_percentage_threshold\": 123,\n \"nginx.hpa.min_number_instances\": 123,\n \"nginx.hpa.max_number_instances\": 123,\n \"storageclass.fast_ssd\": \"<string>\",\n \"qovery.static_ip_mode\": true,\n \"k8s.api.allowed_public_access_cidrs\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aws.cloudwatch.eks_logs_retention_days\": 123,\n \"aws.cloudwatch.eks_logs_types\": [\n \"api\",\n \"audit\",\n \"authenticator\",\n \"controllerManager\",\n \"scheduler\"\n ],\n \"aws.vpc.enable_s3_flow_logs\": true,\n \"aws.vpc.flow_logs_retention_days\": 123,\n \"aws.vpc.enable_nat_gateway_secondary_eip\": true,\n \"loki.log_retention_in_week\": 123,\n \"loki.single_binary.cpu_request_m\": 123,\n \"loki.single_binary.cpu_limit_m\": 123,\n \"loki.single_binary.memory_request_mib\": 123,\n \"loki.single_binary.memory_limit_mib\": 123,\n \"loki.write.cpu_request_m\": 123,\n \"loki.write.cpu_limit_m\": 123,\n \"loki.write.memory_request_mib\": 123,\n \"loki.write.memory_limit_mib\": 123,\n \"loki.read.cpu_request_m\": 123,\n \"loki.read.cpu_limit_m\": 123,\n \"loki.read.memory_request_mib\": 123,\n \"loki.read.memory_limit_mib\": 123,\n \"loki.backend.cpu_request_m\": 123,\n \"loki.backend.cpu_limit_m\": 123,\n \"loki.backend.memory_request_mib\": 123,\n \"loki.backend.memory_limit_mib\": 123,\n \"registry.image_retention_time\": 123,\n \"cloud_provider.container_registry.tags\": {},\n \"aws.eks.enable_alb_controller\": true,\n \"aws.eks.enable_efs_addon\": false,\n \"aws.eks.efs.throughput_mode\": \"elastic\",\n \"aws.eks.efs.performance_mode\": \"generalPurpose\",\n \"aws.eks.efs.transition_to_ia\": \"AFTER_30_DAYS\",\n \"load_balancer.size\": \"<string>\",\n \"database.postgresql.deny_any_access\": true,\n \"database.postgresql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mysql.deny_any_access\": true,\n \"database.mysql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mongodb.deny_any_access\": true,\n \"database.mongodb.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.redis.deny_any_access\": true,\n \"database.redis.allowed_cidrs\": [\n \"<string>\"\n ],\n \"aws.iam.admin_group\": \"<string>\",\n \"aws.eks.ec2.ami\": \"AmazonLinux2023\",\n \"aws.eks.karpenter.private_pool.cpu_manager_policy_static\": false,\n \"pleco.resources_ttl\": 123,\n \"registry.mirroring_mode\": \"Service\",\n \"nginx.vcpu.request_in_milli_cpu\": 123,\n \"nginx.vcpu.limit_in_milli_cpu\": 123,\n \"nginx.memory.request_in_mib\": 123,\n \"nginx.memory.limit_in_mib\": 123,\n \"envoy.gateway_api.http_request_timeout_seconds\": 1,\n \"envoy.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"envoy.gateway_api.retry.num_retries\": 1,\n \"envoy.gateway_api.retry.retry_on\": \"<string>\",\n \"envoy.gateway_api.retry.http_status_codes\": \"<string>\",\n \"envoy.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"nginx.hpa.cpu_utilization_percentage_threshold\": 123,\n \"nginx.hpa.min_number_instances\": 123,\n \"nginx.hpa.max_number_instances\": 123,\n \"storageclass.fast_ssd\": \"<string>\",\n \"qovery.static_ip_mode\": true,\n \"k8s.api.allowed_public_access_cidrs\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aws.cloudwatch.eks_logs_retention_days\": 123,\n \"aws.cloudwatch.eks_logs_types\": [\n \"api\",\n \"audit\",\n \"authenticator\",\n \"controllerManager\",\n \"scheduler\"\n ],\n \"aws.vpc.enable_s3_flow_logs\": true,\n \"aws.vpc.flow_logs_retention_days\": 123,\n \"aws.vpc.enable_nat_gateway_secondary_eip\": true,\n \"loki.log_retention_in_week\": 123,\n \"loki.single_binary.cpu_request_m\": 123,\n \"loki.single_binary.cpu_limit_m\": 123,\n \"loki.single_binary.memory_request_mib\": 123,\n \"loki.single_binary.memory_limit_mib\": 123,\n \"loki.write.cpu_request_m\": 123,\n \"loki.write.cpu_limit_m\": 123,\n \"loki.write.memory_request_mib\": 123,\n \"loki.write.memory_limit_mib\": 123,\n \"loki.read.cpu_request_m\": 123,\n \"loki.read.cpu_limit_m\": 123,\n \"loki.read.memory_request_mib\": 123,\n \"loki.read.memory_limit_mib\": 123,\n \"loki.backend.cpu_request_m\": 123,\n \"loki.backend.cpu_limit_m\": 123,\n \"loki.backend.memory_request_mib\": 123,\n \"loki.backend.memory_limit_mib\": 123,\n \"registry.image_retention_time\": 123,\n \"cloud_provider.container_registry.tags\": {},\n \"aws.eks.enable_alb_controller\": true,\n \"aws.eks.enable_efs_addon\": false,\n \"aws.eks.efs.throughput_mode\": \"elastic\",\n \"aws.eks.efs.performance_mode\": \"generalPurpose\",\n \"aws.eks.efs.transition_to_ia\": \"AFTER_30_DAYS\",\n \"load_balancer.size\": \"<string>\",\n \"database.postgresql.deny_any_access\": true,\n \"database.postgresql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mysql.deny_any_access\": true,\n \"database.mysql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mongodb.deny_any_access\": true,\n \"database.mongodb.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.redis.deny_any_access\": true,\n \"database.redis.allowed_cidrs\": [\n \"<string>\"\n ],\n \"aws.iam.admin_group\": \"<string>\",\n \"aws.eks.ec2.ami\": \"AmazonLinux2023\",\n \"aws.eks.karpenter.private_pool.cpu_manager_policy_static\": false,\n \"pleco.resources_ttl\": 123,\n \"registry.mirroring_mode\": \"Service\",\n \"nginx.vcpu.request_in_milli_cpu\": 123,\n \"nginx.vcpu.limit_in_milli_cpu\": 123,\n \"nginx.memory.request_in_mib\": 123,\n \"nginx.memory.limit_in_mib\": 123,\n \"envoy.gateway_api.http_request_timeout_seconds\": 1,\n \"envoy.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"envoy.gateway_api.retry.num_retries\": 1,\n \"envoy.gateway_api.retry.retry_on\": \"<string>\",\n \"envoy.gateway_api.retry.http_status_codes\": \"<string>\",\n \"envoy.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"nginx.hpa.cpu_utilization_percentage_threshold\": 123,\n \"nginx.hpa.min_number_instances\": 123,\n \"nginx.hpa.max_number_instances\": 123,\n \"storageclass.fast_ssd\": \"<string>\",\n \"qovery.static_ip_mode\": true,\n \"k8s.api.allowed_public_access_cidrs\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"aws.cloudwatch.eks_logs_retention_days": 123,
"aws.cloudwatch.eks_logs_types": [
"api",
"audit",
"authenticator",
"controllerManager",
"scheduler"
],
"aws.vpc.enable_s3_flow_logs": true,
"aws.vpc.flow_logs_retention_days": 123,
"aws.vpc.enable_nat_gateway_secondary_eip": true,
"loki.log_retention_in_week": 123,
"loki.deployment_mode": "single_binary",
"loki.single_binary.cpu_request_m": 123,
"loki.single_binary.cpu_limit_m": 123,
"loki.single_binary.memory_request_mib": 123,
"loki.single_binary.memory_limit_mib": 123,
"loki.write.cpu_request_m": 123,
"loki.write.cpu_limit_m": 123,
"loki.write.memory_request_mib": 123,
"loki.write.memory_limit_mib": 123,
"loki.read.cpu_request_m": 123,
"loki.read.cpu_limit_m": 123,
"loki.read.memory_request_mib": 123,
"loki.read.memory_limit_mib": 123,
"loki.backend.cpu_request_m": 123,
"loki.backend.cpu_limit_m": 123,
"loki.backend.memory_request_mib": 123,
"loki.backend.memory_limit_mib": 123,
"registry.image_retention_time": 123,
"cloud_provider.container_registry.tags": {},
"aws.eks.enable_alb_controller": true,
"aws.eks.enable_efs_addon": false,
"aws.eks.efs.throughput_mode": "elastic",
"aws.eks.efs.performance_mode": "generalPurpose",
"aws.eks.efs.transition_to_ia": "AFTER_30_DAYS",
"load_balancer.size": "<string>",
"database.postgresql.deny_any_access": true,
"database.postgresql.allowed_cidrs": [
"<string>"
],
"database.mysql.deny_any_access": true,
"database.mysql.allowed_cidrs": [
"<string>"
],
"database.mongodb.deny_any_access": true,
"database.mongodb.allowed_cidrs": [
"<string>"
],
"database.redis.deny_any_access": true,
"database.redis.allowed_cidrs": [
"<string>"
],
"aws.iam.admin_group": "<string>",
"aws.eks.ec2.metadata_imds": "optional",
"aws.eks.ec2.ami": "AmazonLinux2023",
"aws.eks.karpenter.private_pool.cpu_manager_policy_static": false,
"pleco.resources_ttl": 123,
"registry.mirroring_mode": "Service",
"nginx.vcpu.request_in_milli_cpu": 123,
"nginx.vcpu.limit_in_milli_cpu": 123,
"nginx.memory.request_in_mib": 123,
"nginx.memory.limit_in_mib": 123,
"envoy.gateway_api.http_request_timeout_seconds": 1,
"envoy.gateway_api.http_connection_idle_timeout_seconds": 1,
"envoy.gateway_api.retry.num_retries": 1,
"envoy.gateway_api.retry.retry_on": "<string>",
"envoy.gateway_api.retry.http_status_codes": "<string>",
"envoy.gateway_api.retry.per_try_timeout_seconds": 2,
"nginx.hpa.cpu_utilization_percentage_threshold": 123,
"nginx.hpa.min_number_instances": 123,
"nginx.hpa.max_number_instances": 123,
"storageclass.fast_ssd": "<string>",
"qovery.static_ip_mode": true,
"k8s.api.allowed_public_access_cidrs": [
"<string>"
]
}Edit advanced settings
Edit advanced settings by returning table of advanced settings.
curl --request PUT \
--url https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aws.cloudwatch.eks_logs_retention_days": 123,
"aws.cloudwatch.eks_logs_types": [
"api",
"audit",
"authenticator",
"controllerManager",
"scheduler"
],
"aws.vpc.enable_s3_flow_logs": true,
"aws.vpc.flow_logs_retention_days": 123,
"aws.vpc.enable_nat_gateway_secondary_eip": true,
"loki.log_retention_in_week": 123,
"loki.single_binary.cpu_request_m": 123,
"loki.single_binary.cpu_limit_m": 123,
"loki.single_binary.memory_request_mib": 123,
"loki.single_binary.memory_limit_mib": 123,
"loki.write.cpu_request_m": 123,
"loki.write.cpu_limit_m": 123,
"loki.write.memory_request_mib": 123,
"loki.write.memory_limit_mib": 123,
"loki.read.cpu_request_m": 123,
"loki.read.cpu_limit_m": 123,
"loki.read.memory_request_mib": 123,
"loki.read.memory_limit_mib": 123,
"loki.backend.cpu_request_m": 123,
"loki.backend.cpu_limit_m": 123,
"loki.backend.memory_request_mib": 123,
"loki.backend.memory_limit_mib": 123,
"registry.image_retention_time": 123,
"cloud_provider.container_registry.tags": {},
"aws.eks.enable_alb_controller": true,
"aws.eks.enable_efs_addon": false,
"aws.eks.efs.throughput_mode": "elastic",
"aws.eks.efs.performance_mode": "generalPurpose",
"aws.eks.efs.transition_to_ia": "AFTER_30_DAYS",
"load_balancer.size": "<string>",
"database.postgresql.deny_any_access": true,
"database.postgresql.allowed_cidrs": [
"<string>"
],
"database.mysql.deny_any_access": true,
"database.mysql.allowed_cidrs": [
"<string>"
],
"database.mongodb.deny_any_access": true,
"database.mongodb.allowed_cidrs": [
"<string>"
],
"database.redis.deny_any_access": true,
"database.redis.allowed_cidrs": [
"<string>"
],
"aws.iam.admin_group": "<string>",
"aws.eks.ec2.ami": "AmazonLinux2023",
"aws.eks.karpenter.private_pool.cpu_manager_policy_static": false,
"pleco.resources_ttl": 123,
"registry.mirroring_mode": "Service",
"nginx.vcpu.request_in_milli_cpu": 123,
"nginx.vcpu.limit_in_milli_cpu": 123,
"nginx.memory.request_in_mib": 123,
"nginx.memory.limit_in_mib": 123,
"envoy.gateway_api.http_request_timeout_seconds": 1,
"envoy.gateway_api.http_connection_idle_timeout_seconds": 1,
"envoy.gateway_api.retry.num_retries": 1,
"envoy.gateway_api.retry.retry_on": "<string>",
"envoy.gateway_api.retry.http_status_codes": "<string>",
"envoy.gateway_api.retry.per_try_timeout_seconds": 2,
"nginx.hpa.cpu_utilization_percentage_threshold": 123,
"nginx.hpa.min_number_instances": 123,
"nginx.hpa.max_number_instances": 123,
"storageclass.fast_ssd": "<string>",
"qovery.static_ip_mode": true,
"k8s.api.allowed_public_access_cidrs": [
"<string>"
]
}
'import requests
url = "https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings"
payload = {
"aws.cloudwatch.eks_logs_retention_days": 123,
"aws.cloudwatch.eks_logs_types": ["api", "audit", "authenticator", "controllerManager", "scheduler"],
"aws.vpc.enable_s3_flow_logs": True,
"aws.vpc.flow_logs_retention_days": 123,
"aws.vpc.enable_nat_gateway_secondary_eip": True,
"loki.log_retention_in_week": 123,
"loki.single_binary.cpu_request_m": 123,
"loki.single_binary.cpu_limit_m": 123,
"loki.single_binary.memory_request_mib": 123,
"loki.single_binary.memory_limit_mib": 123,
"loki.write.cpu_request_m": 123,
"loki.write.cpu_limit_m": 123,
"loki.write.memory_request_mib": 123,
"loki.write.memory_limit_mib": 123,
"loki.read.cpu_request_m": 123,
"loki.read.cpu_limit_m": 123,
"loki.read.memory_request_mib": 123,
"loki.read.memory_limit_mib": 123,
"loki.backend.cpu_request_m": 123,
"loki.backend.cpu_limit_m": 123,
"loki.backend.memory_request_mib": 123,
"loki.backend.memory_limit_mib": 123,
"registry.image_retention_time": 123,
"cloud_provider.container_registry.tags": {},
"aws.eks.enable_alb_controller": True,
"aws.eks.enable_efs_addon": False,
"aws.eks.efs.throughput_mode": "elastic",
"aws.eks.efs.performance_mode": "generalPurpose",
"aws.eks.efs.transition_to_ia": "AFTER_30_DAYS",
"load_balancer.size": "<string>",
"database.postgresql.deny_any_access": True,
"database.postgresql.allowed_cidrs": ["<string>"],
"database.mysql.deny_any_access": True,
"database.mysql.allowed_cidrs": ["<string>"],
"database.mongodb.deny_any_access": True,
"database.mongodb.allowed_cidrs": ["<string>"],
"database.redis.deny_any_access": True,
"database.redis.allowed_cidrs": ["<string>"],
"aws.iam.admin_group": "<string>",
"aws.eks.ec2.ami": "AmazonLinux2023",
"aws.eks.karpenter.private_pool.cpu_manager_policy_static": False,
"pleco.resources_ttl": 123,
"registry.mirroring_mode": "Service",
"nginx.vcpu.request_in_milli_cpu": 123,
"nginx.vcpu.limit_in_milli_cpu": 123,
"nginx.memory.request_in_mib": 123,
"nginx.memory.limit_in_mib": 123,
"envoy.gateway_api.http_request_timeout_seconds": 1,
"envoy.gateway_api.http_connection_idle_timeout_seconds": 1,
"envoy.gateway_api.retry.num_retries": 1,
"envoy.gateway_api.retry.retry_on": "<string>",
"envoy.gateway_api.retry.http_status_codes": "<string>",
"envoy.gateway_api.retry.per_try_timeout_seconds": 2,
"nginx.hpa.cpu_utilization_percentage_threshold": 123,
"nginx.hpa.min_number_instances": 123,
"nginx.hpa.max_number_instances": 123,
"storageclass.fast_ssd": "<string>",
"qovery.static_ip_mode": True,
"k8s.api.allowed_public_access_cidrs": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
'aws.cloudwatch.eks_logs_retention_days': 123,
'aws.cloudwatch.eks_logs_types': ['api', 'audit', 'authenticator', 'controllerManager', 'scheduler'],
'aws.vpc.enable_s3_flow_logs': true,
'aws.vpc.flow_logs_retention_days': 123,
'aws.vpc.enable_nat_gateway_secondary_eip': true,
'loki.log_retention_in_week': 123,
'loki.single_binary.cpu_request_m': 123,
'loki.single_binary.cpu_limit_m': 123,
'loki.single_binary.memory_request_mib': 123,
'loki.single_binary.memory_limit_mib': 123,
'loki.write.cpu_request_m': 123,
'loki.write.cpu_limit_m': 123,
'loki.write.memory_request_mib': 123,
'loki.write.memory_limit_mib': 123,
'loki.read.cpu_request_m': 123,
'loki.read.cpu_limit_m': 123,
'loki.read.memory_request_mib': 123,
'loki.read.memory_limit_mib': 123,
'loki.backend.cpu_request_m': 123,
'loki.backend.cpu_limit_m': 123,
'loki.backend.memory_request_mib': 123,
'loki.backend.memory_limit_mib': 123,
'registry.image_retention_time': 123,
'cloud_provider.container_registry.tags': {},
'aws.eks.enable_alb_controller': true,
'aws.eks.enable_efs_addon': false,
'aws.eks.efs.throughput_mode': 'elastic',
'aws.eks.efs.performance_mode': 'generalPurpose',
'aws.eks.efs.transition_to_ia': 'AFTER_30_DAYS',
'load_balancer.size': '<string>',
'database.postgresql.deny_any_access': true,
'database.postgresql.allowed_cidrs': ['<string>'],
'database.mysql.deny_any_access': true,
'database.mysql.allowed_cidrs': ['<string>'],
'database.mongodb.deny_any_access': true,
'database.mongodb.allowed_cidrs': ['<string>'],
'database.redis.deny_any_access': true,
'database.redis.allowed_cidrs': ['<string>'],
'aws.iam.admin_group': '<string>',
'aws.eks.ec2.ami': 'AmazonLinux2023',
'aws.eks.karpenter.private_pool.cpu_manager_policy_static': false,
'pleco.resources_ttl': 123,
'registry.mirroring_mode': 'Service',
'nginx.vcpu.request_in_milli_cpu': 123,
'nginx.vcpu.limit_in_milli_cpu': 123,
'nginx.memory.request_in_mib': 123,
'nginx.memory.limit_in_mib': 123,
'envoy.gateway_api.http_request_timeout_seconds': 1,
'envoy.gateway_api.http_connection_idle_timeout_seconds': 1,
'envoy.gateway_api.retry.num_retries': 1,
'envoy.gateway_api.retry.retry_on': '<string>',
'envoy.gateway_api.retry.http_status_codes': '<string>',
'envoy.gateway_api.retry.per_try_timeout_seconds': 2,
'nginx.hpa.cpu_utilization_percentage_threshold': 123,
'nginx.hpa.min_number_instances': 123,
'nginx.hpa.max_number_instances': 123,
'storageclass.fast_ssd': '<string>',
'qovery.static_ip_mode': true,
'k8s.api.allowed_public_access_cidrs': ['<string>']
})
};
fetch('https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'aws.cloudwatch.eks_logs_retention_days' => 123,
'aws.cloudwatch.eks_logs_types' => [
'api',
'audit',
'authenticator',
'controllerManager',
'scheduler'
],
'aws.vpc.enable_s3_flow_logs' => true,
'aws.vpc.flow_logs_retention_days' => 123,
'aws.vpc.enable_nat_gateway_secondary_eip' => true,
'loki.log_retention_in_week' => 123,
'loki.single_binary.cpu_request_m' => 123,
'loki.single_binary.cpu_limit_m' => 123,
'loki.single_binary.memory_request_mib' => 123,
'loki.single_binary.memory_limit_mib' => 123,
'loki.write.cpu_request_m' => 123,
'loki.write.cpu_limit_m' => 123,
'loki.write.memory_request_mib' => 123,
'loki.write.memory_limit_mib' => 123,
'loki.read.cpu_request_m' => 123,
'loki.read.cpu_limit_m' => 123,
'loki.read.memory_request_mib' => 123,
'loki.read.memory_limit_mib' => 123,
'loki.backend.cpu_request_m' => 123,
'loki.backend.cpu_limit_m' => 123,
'loki.backend.memory_request_mib' => 123,
'loki.backend.memory_limit_mib' => 123,
'registry.image_retention_time' => 123,
'cloud_provider.container_registry.tags' => [
],
'aws.eks.enable_alb_controller' => true,
'aws.eks.enable_efs_addon' => false,
'aws.eks.efs.throughput_mode' => 'elastic',
'aws.eks.efs.performance_mode' => 'generalPurpose',
'aws.eks.efs.transition_to_ia' => 'AFTER_30_DAYS',
'load_balancer.size' => '<string>',
'database.postgresql.deny_any_access' => true,
'database.postgresql.allowed_cidrs' => [
'<string>'
],
'database.mysql.deny_any_access' => true,
'database.mysql.allowed_cidrs' => [
'<string>'
],
'database.mongodb.deny_any_access' => true,
'database.mongodb.allowed_cidrs' => [
'<string>'
],
'database.redis.deny_any_access' => true,
'database.redis.allowed_cidrs' => [
'<string>'
],
'aws.iam.admin_group' => '<string>',
'aws.eks.ec2.ami' => 'AmazonLinux2023',
'aws.eks.karpenter.private_pool.cpu_manager_policy_static' => false,
'pleco.resources_ttl' => 123,
'registry.mirroring_mode' => 'Service',
'nginx.vcpu.request_in_milli_cpu' => 123,
'nginx.vcpu.limit_in_milli_cpu' => 123,
'nginx.memory.request_in_mib' => 123,
'nginx.memory.limit_in_mib' => 123,
'envoy.gateway_api.http_request_timeout_seconds' => 1,
'envoy.gateway_api.http_connection_idle_timeout_seconds' => 1,
'envoy.gateway_api.retry.num_retries' => 1,
'envoy.gateway_api.retry.retry_on' => '<string>',
'envoy.gateway_api.retry.http_status_codes' => '<string>',
'envoy.gateway_api.retry.per_try_timeout_seconds' => 2,
'nginx.hpa.cpu_utilization_percentage_threshold' => 123,
'nginx.hpa.min_number_instances' => 123,
'nginx.hpa.max_number_instances' => 123,
'storageclass.fast_ssd' => '<string>',
'qovery.static_ip_mode' => true,
'k8s.api.allowed_public_access_cidrs' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings"
payload := strings.NewReader("{\n \"aws.cloudwatch.eks_logs_retention_days\": 123,\n \"aws.cloudwatch.eks_logs_types\": [\n \"api\",\n \"audit\",\n \"authenticator\",\n \"controllerManager\",\n \"scheduler\"\n ],\n \"aws.vpc.enable_s3_flow_logs\": true,\n \"aws.vpc.flow_logs_retention_days\": 123,\n \"aws.vpc.enable_nat_gateway_secondary_eip\": true,\n \"loki.log_retention_in_week\": 123,\n \"loki.single_binary.cpu_request_m\": 123,\n \"loki.single_binary.cpu_limit_m\": 123,\n \"loki.single_binary.memory_request_mib\": 123,\n \"loki.single_binary.memory_limit_mib\": 123,\n \"loki.write.cpu_request_m\": 123,\n \"loki.write.cpu_limit_m\": 123,\n \"loki.write.memory_request_mib\": 123,\n \"loki.write.memory_limit_mib\": 123,\n \"loki.read.cpu_request_m\": 123,\n \"loki.read.cpu_limit_m\": 123,\n \"loki.read.memory_request_mib\": 123,\n \"loki.read.memory_limit_mib\": 123,\n \"loki.backend.cpu_request_m\": 123,\n \"loki.backend.cpu_limit_m\": 123,\n \"loki.backend.memory_request_mib\": 123,\n \"loki.backend.memory_limit_mib\": 123,\n \"registry.image_retention_time\": 123,\n \"cloud_provider.container_registry.tags\": {},\n \"aws.eks.enable_alb_controller\": true,\n \"aws.eks.enable_efs_addon\": false,\n \"aws.eks.efs.throughput_mode\": \"elastic\",\n \"aws.eks.efs.performance_mode\": \"generalPurpose\",\n \"aws.eks.efs.transition_to_ia\": \"AFTER_30_DAYS\",\n \"load_balancer.size\": \"<string>\",\n \"database.postgresql.deny_any_access\": true,\n \"database.postgresql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mysql.deny_any_access\": true,\n \"database.mysql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mongodb.deny_any_access\": true,\n \"database.mongodb.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.redis.deny_any_access\": true,\n \"database.redis.allowed_cidrs\": [\n \"<string>\"\n ],\n \"aws.iam.admin_group\": \"<string>\",\n \"aws.eks.ec2.ami\": \"AmazonLinux2023\",\n \"aws.eks.karpenter.private_pool.cpu_manager_policy_static\": false,\n \"pleco.resources_ttl\": 123,\n \"registry.mirroring_mode\": \"Service\",\n \"nginx.vcpu.request_in_milli_cpu\": 123,\n \"nginx.vcpu.limit_in_milli_cpu\": 123,\n \"nginx.memory.request_in_mib\": 123,\n \"nginx.memory.limit_in_mib\": 123,\n \"envoy.gateway_api.http_request_timeout_seconds\": 1,\n \"envoy.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"envoy.gateway_api.retry.num_retries\": 1,\n \"envoy.gateway_api.retry.retry_on\": \"<string>\",\n \"envoy.gateway_api.retry.http_status_codes\": \"<string>\",\n \"envoy.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"nginx.hpa.cpu_utilization_percentage_threshold\": 123,\n \"nginx.hpa.min_number_instances\": 123,\n \"nginx.hpa.max_number_instances\": 123,\n \"storageclass.fast_ssd\": \"<string>\",\n \"qovery.static_ip_mode\": true,\n \"k8s.api.allowed_public_access_cidrs\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aws.cloudwatch.eks_logs_retention_days\": 123,\n \"aws.cloudwatch.eks_logs_types\": [\n \"api\",\n \"audit\",\n \"authenticator\",\n \"controllerManager\",\n \"scheduler\"\n ],\n \"aws.vpc.enable_s3_flow_logs\": true,\n \"aws.vpc.flow_logs_retention_days\": 123,\n \"aws.vpc.enable_nat_gateway_secondary_eip\": true,\n \"loki.log_retention_in_week\": 123,\n \"loki.single_binary.cpu_request_m\": 123,\n \"loki.single_binary.cpu_limit_m\": 123,\n \"loki.single_binary.memory_request_mib\": 123,\n \"loki.single_binary.memory_limit_mib\": 123,\n \"loki.write.cpu_request_m\": 123,\n \"loki.write.cpu_limit_m\": 123,\n \"loki.write.memory_request_mib\": 123,\n \"loki.write.memory_limit_mib\": 123,\n \"loki.read.cpu_request_m\": 123,\n \"loki.read.cpu_limit_m\": 123,\n \"loki.read.memory_request_mib\": 123,\n \"loki.read.memory_limit_mib\": 123,\n \"loki.backend.cpu_request_m\": 123,\n \"loki.backend.cpu_limit_m\": 123,\n \"loki.backend.memory_request_mib\": 123,\n \"loki.backend.memory_limit_mib\": 123,\n \"registry.image_retention_time\": 123,\n \"cloud_provider.container_registry.tags\": {},\n \"aws.eks.enable_alb_controller\": true,\n \"aws.eks.enable_efs_addon\": false,\n \"aws.eks.efs.throughput_mode\": \"elastic\",\n \"aws.eks.efs.performance_mode\": \"generalPurpose\",\n \"aws.eks.efs.transition_to_ia\": \"AFTER_30_DAYS\",\n \"load_balancer.size\": \"<string>\",\n \"database.postgresql.deny_any_access\": true,\n \"database.postgresql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mysql.deny_any_access\": true,\n \"database.mysql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mongodb.deny_any_access\": true,\n \"database.mongodb.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.redis.deny_any_access\": true,\n \"database.redis.allowed_cidrs\": [\n \"<string>\"\n ],\n \"aws.iam.admin_group\": \"<string>\",\n \"aws.eks.ec2.ami\": \"AmazonLinux2023\",\n \"aws.eks.karpenter.private_pool.cpu_manager_policy_static\": false,\n \"pleco.resources_ttl\": 123,\n \"registry.mirroring_mode\": \"Service\",\n \"nginx.vcpu.request_in_milli_cpu\": 123,\n \"nginx.vcpu.limit_in_milli_cpu\": 123,\n \"nginx.memory.request_in_mib\": 123,\n \"nginx.memory.limit_in_mib\": 123,\n \"envoy.gateway_api.http_request_timeout_seconds\": 1,\n \"envoy.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"envoy.gateway_api.retry.num_retries\": 1,\n \"envoy.gateway_api.retry.retry_on\": \"<string>\",\n \"envoy.gateway_api.retry.http_status_codes\": \"<string>\",\n \"envoy.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"nginx.hpa.cpu_utilization_percentage_threshold\": 123,\n \"nginx.hpa.min_number_instances\": 123,\n \"nginx.hpa.max_number_instances\": 123,\n \"storageclass.fast_ssd\": \"<string>\",\n \"qovery.static_ip_mode\": true,\n \"k8s.api.allowed_public_access_cidrs\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/organization/{organizationId}/cluster/{clusterId}/advancedSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aws.cloudwatch.eks_logs_retention_days\": 123,\n \"aws.cloudwatch.eks_logs_types\": [\n \"api\",\n \"audit\",\n \"authenticator\",\n \"controllerManager\",\n \"scheduler\"\n ],\n \"aws.vpc.enable_s3_flow_logs\": true,\n \"aws.vpc.flow_logs_retention_days\": 123,\n \"aws.vpc.enable_nat_gateway_secondary_eip\": true,\n \"loki.log_retention_in_week\": 123,\n \"loki.single_binary.cpu_request_m\": 123,\n \"loki.single_binary.cpu_limit_m\": 123,\n \"loki.single_binary.memory_request_mib\": 123,\n \"loki.single_binary.memory_limit_mib\": 123,\n \"loki.write.cpu_request_m\": 123,\n \"loki.write.cpu_limit_m\": 123,\n \"loki.write.memory_request_mib\": 123,\n \"loki.write.memory_limit_mib\": 123,\n \"loki.read.cpu_request_m\": 123,\n \"loki.read.cpu_limit_m\": 123,\n \"loki.read.memory_request_mib\": 123,\n \"loki.read.memory_limit_mib\": 123,\n \"loki.backend.cpu_request_m\": 123,\n \"loki.backend.cpu_limit_m\": 123,\n \"loki.backend.memory_request_mib\": 123,\n \"loki.backend.memory_limit_mib\": 123,\n \"registry.image_retention_time\": 123,\n \"cloud_provider.container_registry.tags\": {},\n \"aws.eks.enable_alb_controller\": true,\n \"aws.eks.enable_efs_addon\": false,\n \"aws.eks.efs.throughput_mode\": \"elastic\",\n \"aws.eks.efs.performance_mode\": \"generalPurpose\",\n \"aws.eks.efs.transition_to_ia\": \"AFTER_30_DAYS\",\n \"load_balancer.size\": \"<string>\",\n \"database.postgresql.deny_any_access\": true,\n \"database.postgresql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mysql.deny_any_access\": true,\n \"database.mysql.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.mongodb.deny_any_access\": true,\n \"database.mongodb.allowed_cidrs\": [\n \"<string>\"\n ],\n \"database.redis.deny_any_access\": true,\n \"database.redis.allowed_cidrs\": [\n \"<string>\"\n ],\n \"aws.iam.admin_group\": \"<string>\",\n \"aws.eks.ec2.ami\": \"AmazonLinux2023\",\n \"aws.eks.karpenter.private_pool.cpu_manager_policy_static\": false,\n \"pleco.resources_ttl\": 123,\n \"registry.mirroring_mode\": \"Service\",\n \"nginx.vcpu.request_in_milli_cpu\": 123,\n \"nginx.vcpu.limit_in_milli_cpu\": 123,\n \"nginx.memory.request_in_mib\": 123,\n \"nginx.memory.limit_in_mib\": 123,\n \"envoy.gateway_api.http_request_timeout_seconds\": 1,\n \"envoy.gateway_api.http_connection_idle_timeout_seconds\": 1,\n \"envoy.gateway_api.retry.num_retries\": 1,\n \"envoy.gateway_api.retry.retry_on\": \"<string>\",\n \"envoy.gateway_api.retry.http_status_codes\": \"<string>\",\n \"envoy.gateway_api.retry.per_try_timeout_seconds\": 2,\n \"nginx.hpa.cpu_utilization_percentage_threshold\": 123,\n \"nginx.hpa.min_number_instances\": 123,\n \"nginx.hpa.max_number_instances\": 123,\n \"storageclass.fast_ssd\": \"<string>\",\n \"qovery.static_ip_mode\": true,\n \"k8s.api.allowed_public_access_cidrs\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"aws.cloudwatch.eks_logs_retention_days": 123,
"aws.cloudwatch.eks_logs_types": [
"api",
"audit",
"authenticator",
"controllerManager",
"scheduler"
],
"aws.vpc.enable_s3_flow_logs": true,
"aws.vpc.flow_logs_retention_days": 123,
"aws.vpc.enable_nat_gateway_secondary_eip": true,
"loki.log_retention_in_week": 123,
"loki.deployment_mode": "single_binary",
"loki.single_binary.cpu_request_m": 123,
"loki.single_binary.cpu_limit_m": 123,
"loki.single_binary.memory_request_mib": 123,
"loki.single_binary.memory_limit_mib": 123,
"loki.write.cpu_request_m": 123,
"loki.write.cpu_limit_m": 123,
"loki.write.memory_request_mib": 123,
"loki.write.memory_limit_mib": 123,
"loki.read.cpu_request_m": 123,
"loki.read.cpu_limit_m": 123,
"loki.read.memory_request_mib": 123,
"loki.read.memory_limit_mib": 123,
"loki.backend.cpu_request_m": 123,
"loki.backend.cpu_limit_m": 123,
"loki.backend.memory_request_mib": 123,
"loki.backend.memory_limit_mib": 123,
"registry.image_retention_time": 123,
"cloud_provider.container_registry.tags": {},
"aws.eks.enable_alb_controller": true,
"aws.eks.enable_efs_addon": false,
"aws.eks.efs.throughput_mode": "elastic",
"aws.eks.efs.performance_mode": "generalPurpose",
"aws.eks.efs.transition_to_ia": "AFTER_30_DAYS",
"load_balancer.size": "<string>",
"database.postgresql.deny_any_access": true,
"database.postgresql.allowed_cidrs": [
"<string>"
],
"database.mysql.deny_any_access": true,
"database.mysql.allowed_cidrs": [
"<string>"
],
"database.mongodb.deny_any_access": true,
"database.mongodb.allowed_cidrs": [
"<string>"
],
"database.redis.deny_any_access": true,
"database.redis.allowed_cidrs": [
"<string>"
],
"aws.iam.admin_group": "<string>",
"aws.eks.ec2.metadata_imds": "optional",
"aws.eks.ec2.ami": "AmazonLinux2023",
"aws.eks.karpenter.private_pool.cpu_manager_policy_static": false,
"pleco.resources_ttl": 123,
"registry.mirroring_mode": "Service",
"nginx.vcpu.request_in_milli_cpu": 123,
"nginx.vcpu.limit_in_milli_cpu": 123,
"nginx.memory.request_in_mib": 123,
"nginx.memory.limit_in_mib": 123,
"envoy.gateway_api.http_request_timeout_seconds": 1,
"envoy.gateway_api.http_connection_idle_timeout_seconds": 1,
"envoy.gateway_api.retry.num_retries": 1,
"envoy.gateway_api.retry.retry_on": "<string>",
"envoy.gateway_api.retry.http_status_codes": "<string>",
"envoy.gateway_api.retry.per_try_timeout_seconds": 2,
"nginx.hpa.cpu_utilization_percentage_threshold": 123,
"nginx.hpa.min_number_instances": 123,
"nginx.hpa.max_number_instances": 123,
"storageclass.fast_ssd": "<string>",
"qovery.static_ip_mode": true,
"k8s.api.allowed_public_access_cidrs": [
"<string>"
]
}Authorizations
JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '
Path Parameters
Body
Enable the AWS ALB controller to manage the load balancer for the cluster. Note: Changing this feature will create a 10 min max downtime on your application's public access (time to delete, replace and propagate DNS of the new load balancer) and will requiere to update all services with TCP/UDP open ports.
Lifecycle policy to transition files to Infrequent Access (IA) storage after the specified period. IA storage costs less but has a per-read charge. Empty string disables the policy.
AFTER_1_DAY, AFTER_7_DAYS, AFTER_14_DAYS, AFTER_30_DAYS, AFTER_60_DAYS, AFTER_90_DAYS, Specify the IMDS version you want to use:
required: IMDS V2 onlyoptional: IMDS V1 + V2
optional, required Select the AMI to use for EKS worker nodes (Karpenter only):
AmazonLinux2: Amazon Linux 2AmazonLinux2023: Amazon Linux 2023 (default)Bottlerocket: Bottlerocket OSami-xxxormy-custom-ami-*: A custom AMI ID or name pattern (assumes AL2023-based)al2:ami-xxx: A custom AMI based on Amazon Linux 2al2023:ami-xxx: A custom AMI based on Amazon Linux 2023bottlerocket:ami-xxx: A custom AMI based on Bottlerocket
Run the kubelet with cpuManagerPolicy: static on the private node pool (Karpenter only). Guaranteed pods with an integer CPU request get dedicated cores, so tools that size their worker count from the CPU affinity mask see the pod's CPUs instead of the whole host.
Only has an effect on clusters where Qovery has enabled the private node pool, with AL2023 or Bottlerocket nodes. Ignored otherwise. Changing it replaces every node of that pool.
Mirroring mode when deploying a service from a container registry
- Cluster: This is not available on Scaleway. Images within the mirroring registry are organized by "Qovery cluster", meaning that the application deployed on the same cluster are all mirrored on the same repository.
- Service: Images within the mirroring registry are organized by "Qovery service", each service has its own repository
- Disabled: Only available on Scaleway Kapsule. Images are not copied into the cluster registry: pods pull them directly from the service container registry, with its credentials. Registries with temporary credentials (AWS ECR, Azure, GCP Artifact Registry) are still mirrored. Images built by Qovery still go to the cluster registry.
Cluster, Service, Disabled Response
Updated advanced settings
Enable the AWS ALB controller to manage the load balancer for the cluster. Note: Changing this feature will create a 10 min max downtime on your application's public access (time to delete, replace and propagate DNS of the new load balancer) and will requiere to update all services with TCP/UDP open ports.
Lifecycle policy to transition files to Infrequent Access (IA) storage after the specified period. IA storage costs less but has a per-read charge. Empty string disables the policy.
AFTER_1_DAY, AFTER_7_DAYS, AFTER_14_DAYS, AFTER_30_DAYS, AFTER_60_DAYS, AFTER_90_DAYS, Specify the IMDS version you want to use:
required: IMDS V2 onlyoptional: IMDS V1 + V2
optional, required Select the AMI to use for EKS worker nodes (Karpenter only):
AmazonLinux2: Amazon Linux 2AmazonLinux2023: Amazon Linux 2023 (default)Bottlerocket: Bottlerocket OSami-xxxormy-custom-ami-*: A custom AMI ID or name pattern (assumes AL2023-based)al2:ami-xxx: A custom AMI based on Amazon Linux 2al2023:ami-xxx: A custom AMI based on Amazon Linux 2023bottlerocket:ami-xxx: A custom AMI based on Bottlerocket
Run the kubelet with cpuManagerPolicy: static on the private node pool (Karpenter only). Guaranteed pods with an integer CPU request get dedicated cores, so tools that size their worker count from the CPU affinity mask see the pod's CPUs instead of the whole host.
Only has an effect on clusters where Qovery has enabled the private node pool, with AL2023 or Bottlerocket nodes. Ignored otherwise. Changing it replaces every node of that pool.
Mirroring mode when deploying a service from a container registry
- Cluster: This is not available on Scaleway. Images within the mirroring registry are organized by "Qovery cluster", meaning that the application deployed on the same cluster are all mirrored on the same repository.
- Service: Images within the mirroring registry are organized by "Qovery service", each service has its own repository
- Disabled: Only available on Scaleway Kapsule. Images are not copied into the cluster registry: pods pull them directly from the service container registry, with its credentials. Registries with temporary credentials (AWS ECR, Azure, GCP Artifact Registry) are still mirrored. Images built by Qovery still go to the cluster registry.
Cluster, Service, Disabled Was this page helpful?