Containers
Last updated
Last updated
OK
OK
K8sCluster Id, example: 123
OK
This method allows to delete a Kubernetes cluster node.
This operation cannot be undone afterwards.
This method is synchronous (status code 202
).
To delete a Kubernetes node, the id of the Kubernetes cluster and the id of the node to delete must be specified.
To list the nodes of the Kubernetes cluster, use the endpoint : GET /containers/kubernetes/{kuberneteId}/nodes/{nodeId}.
Use the following to delete a node of a Kubernetes cluster.
DELETE /containers/kubernetes/1234/nodes/4567
To keep consistency on the Kubernetes cluster, please note that :
All nodes cannot be deleted.
All ingress nodes cannot be deleted.
API users will have a BAD_REQUEST
when trying to break one of the rule above.
id, example: 123
id, example: 456
OK
Code of action performed
Status label of action
Human readable message of status
This method allows to delete a K8s Cluster Container.
This method is asynchronous (status code 202
) and you'll have to wait for async action to be completed by checking its status.
DELETE /k8s-clusters/123
DELETE /k8s-clusters/123
{
"changeReference": "rfc nunmber 456"
}
id, example: 123
Optional reference for change
OK
Code of action performed
Status label of action
Human readable message of status
OK
This method allows to update a cluster.
Structure of payload is generic and describes :
operation
you want to be performedoptions
data relative to the operation performed - see details.Below are different operations currently implemented.
Create Nodes
Use the create_nodes
operation to create the nodes of a cluster.
Create nodes operation will add the new nodes in the cluster by availability zone. You can specify the availability zone you need in the request.
This method is synchronous (status code 202
).
Example :
PATCH /containers/kubernetes/1234
{
"operation": "create_nodes",
"options": {
"nodes": [
{
"nodesNb": 1,
"nodeSizing": "2cpu4gb",
"az": "EB-A"
},
{
"nodesNb": 2,
"nodeSizing": "4cpu8gb",
"az": "EB-B"
}
]
}
}
Delete Nodes
Use the delete_nodes
operation to delete the nodes of a cluster.
This operation cannot be undone afterwards.
This method is synchronous (status code 202
).
PATCH /containers/kubernetes/1234
{
"operation":"delete_nodes",
"options":{
"nodes": ["11112","11113","11114"]
}
}
Enable High Availability - HA
Use the enable_ha
operation to enable the HA of a cluster.
This operation cannot be undone afterwards.
This method is synchronous (status code 202
).
PATCH /containers/kubernetes/1234
{
"operation":"enable_ha"
}
Update Monitoring
Use the update_monitoring
operation to update the monitoring state of the cluster.
Use the state
option to turn on/off monitoring.
Use the on_call
option to turn on/off 24/7 monitoring.
This method is synchronous (status code 202
).
PATCH /containers/kubernetes/1234
{
"operation": "update_monitoring",
"options": {
"state": true,
"on_call": true
}
}
Update Patch Party
Use the update_patch_party
operation to update the patch party scheduled plan of the cluster.
excluded
option to turn on/off patch party.patchGroup
option to select the patching group, the patchGroup
is optional, and is only allowed when the farm has one member.exclusionReason
option to explain the reason of excluding the resource from patch part.This method is synchronous (status code 202
).
PATCH /containers/kubernetes/1234
{
"operation": "update_patch_party",
"options": {
"patchParty": {
"excluded": false,
"patchGroup": "3"
}
}
}
PATCH /containers/kubernetes/1234
{
"operation": "update_patch_party",
"options": {
"patchParty": {
"excluded": true,
"exclusionReason": "I want to handle this by myself"
}
}
}
Upgrade
Use the upgrade
operation to upgrade the cluster.
version
option to set the target version to be installed.The requirements are :
/compute/platform/products?type=KUBERNETES
to list all versions available for the cluster.This method is synchronous (status code 202
).
PATCH /containers/kubernetes/1234
{
"operation": "upgrade",
"options": {
"version": "1.24"
}
}
K8s Cluster Id, example: 123
OK
Code of action performed
Status label of action
Human readable message of status
This method allows to create a cluster.
You will have to know at the minimum :
area
attribute)networkId
attribute)name
attribute)nodeSizing
attribute)instanceCount
attribute)serviceId
attribute)This method is asynchronous (status code 202
) and you'll have to wait for async action to be completed by checking its status.
POST /clusters
{
"name": "PCLUSTER01",
"area": "EB",
"networkId": "ED145",
"serviceId": 123,
"nodeSizing":, "1cpu2gb"
"instanceCount": 2
}
id of service to put instance in.
Regulation. Refer to the regulation of the Area (HDS|STANDARD). If absent, default 'STANDARD' will be used.
Region. that is a low-latency network area, available in List Regions method. If absent, default Area of Region will be used.
Indicates if monitoring will be setup. If absent, it will be automatically be setup if this is an production environment, or if backup is enabled.
Indicates why a production resource is not under monitoring.
Indicates if on call teams will be called on non business hours if an incident occurs on instance. If absent, set to false.
Indicates if alerting should be activated. If absent, set to false.
Indicates if backup has to be setup on instance. If absent, backup will be setup automatically if instance is in a production service.
Indicates why a production resource is not under backup.
Indicates if replication will be setup. If absent, it will be automatically be setup if this is an production environment
Indicates why a production resource is not replicated.
BackupPolicy id. Refers to desired backup policy to be applied for the virtual machine, must be set when backup is enabled.
BackupPolicy id. Refers to desired backup policy to be applied for the database, must be set when backup is enabled.
Area. Refer to an Area of a Region, that is a low-latency network area, available in List Regions method. If absent, default Area of Region will be used.
Node sizing for cluster
The network Id of the ELS cluster
Product platform of the cluster
Name of k8s cluster
[a-z0-9\-]+
Number of instances to create in k8s cluster
Kubernetes Container Ingress Providers
OK
Code of action performed
Status label of action
Human readable message of status
K8sCluster Id, example: 123
id of service to put instance in.
Regulation. Refer to the regulation of the Area (HDS|STANDARD). If absent, default 'STANDARD' will be used.
Region. that is a low-latency network area, available in List Regions method. If absent, default Area of Region will be used.
Indicates if monitoring will be setup. If absent, it will be automatically be setup if this is an production environment, or if backup is enabled.
Indicates why a production resource is not under monitoring.
Indicates if on call teams will be called on non business hours if an incident occurs on instance. If absent, set to false.
Indicates if alerting should be activated. If absent, set to false.
Indicates if backup has to be setup on instance. If absent, backup will be setup automatically if instance is in a production service.
Indicates why a production resource is not under backup.
Indicates if replication will be setup. If absent, it will be automatically be setup if this is an production environment
Indicates why a production resource is not replicated.
BackupPolicy id. Refers to desired backup policy to be applied for the virtual machine, must be set when backup is enabled.
BackupPolicy id. Refers to desired backup policy to be applied for the database, must be set when backup is enabled.
Area. Refer to an Area of a Region, that is a low-latency network area, available in List Regions method. If absent, default Area of Region will be used.
url of load balancer. Must be unique, and fit naming rules convention., example: url.cegedim.com
^(https?:\\/\\/)?(www\\.)?[a-zA-Z][a-zA-Z0-9.-]{2,63}+$
profile name of load balancer.
healtcheck of load balancer., example: http
port member of load balancer., example: 80, 443, ...
Network id. Refer to networks available in List Networks method. If absent, a default network of AZ will be used.
certificate of the load balancer., example: wildcard_cegedim.com
ssl profile of the load balancer., example: profile_wildcard.cegedim.com_secure
port of load balancer in case of TCP VS Profile
Indicates if a DNS record is to be set. If absent, set to false.
OK
Code of action performed
Status label of action
Human readable message of status
Resource Id, example: 123
OK
Storage Replication Enabled - The farm has replicated storage
Indicates backup is active on the host
Representation of a resource patch party
Number of Nodes of the K8s Cluster
High availability mode status
Version of the K8S Cluster
Version of the K8S Cluster
Management host of the K8S Cluster
Technical ID of the K8S Cluster
A list of Area name
Region pretty name
Kubernetes Container Ingress Providers
OK
Representation of a resource patch party
Information about a Storage of an Instance
Backup information on an instance
Replication information on an instance
Snapshot of an instance
Region pretty name
DataCenter pretty name
Area pretty name
Availability Zone pretty name
Total Disk size of the resource
CPU of the resource
RAM of the resource
Storage after disks format in GB of the resource
Instance is member of load balancer
Internal Image linked to this instance
OS name of this instance
OS type of this instance
This instance is ingress external node
This instance is ingress internal node
Information about storage replication in Progress
K8sCluster Id, example: 123
OK
Representation of a resource patch party
urls of the load balancer
Instances that are load balanced by this loadbalancer
Protocols on which this loadbalancer expose a virtual service
iRules configured for this loadbalancer
Healthchecks configured for this loadbalancer
Advanced property such as default persistence
Advanced property such as fallback persistence
Advanced property such as load balancing mode
Bot Defense state
Bot Defense is updating
Source addresse translation automap enabled
Holds common properties to all Resources managed in ITCare available on a Service