update_cluster_config
¶
update_cluster_config(
name: String,
*,
config_overrides: Optional[EKSClientConfig] = None,
resources_vpc_config: Optional[VpcConfigRequest] = None,
logging: Optional[Logging] = None,
client_request_token: Optional[String] = None,
access_config: Optional[UpdateAccessConfigRequest] = None,
upgrade_policy: Optional[UpgradePolicyRequest] = None,
zonal_shift_config: Optional[ZonalShiftConfigRequest] = None,
compute_config: Optional[ComputeConfigRequest] = None,
kubernetes_network_config: Optional[KubernetesNetworkConfigRequest] = None,
storage_config: Optional[StorageConfigRequest] = None,
remote_network_config: Optional[RemoteNetworkConfigRequest] = None,
deletion_protection: Optional[BoxedBoolean] = None,
control_plane_scaling_config: Optional[ControlPlaneScalingConfig] = None,
kube_api_server_config: Optional[KubeApiServerConfigRequest] = None,
kube_scheduler_config: Optional[KubeSchedulerConfigRequest] = None,
kube_controller_manager_config: Optional[KubeControllerManagerConfigRequest] = None,
) -> UpdateClusterConfigResponse
Updates an Amazon EKS cluster configuration. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with DescribeUpdate.
You can use this operation to do the following actions:
-
You can use this API operation to enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster control plane logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
-
You can also use this API operation to enable or disable public and private access to your cluster's Kubernetes API server endpoint. By default, public access is enabled, and private access is disabled. For more information, see Cluster API server endpoint in the Amazon EKS User Guide .
-
You can also use this API operation to choose different subnets and security groups for the cluster. You must specify at least two subnets that are in different Availability Zones. You can't change which VPC the subnets are from, the subnets must be in the same VPC as the subnets that the cluster was created with. For more information about the VPC requirements, see https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html in the Amazon EKS User Guide .
-
You can also use this API operation to enable or disable ARC zonal shift. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
-
You can also use this API operation to add, change, or remove the configuration in the cluster for EKS Hybrid Nodes. To remove the configuration, use the
remoteNetworkConfigkey with an object containing both subkeys with empty arrays for each. Here is an inline example:"remoteNetworkConfig": { "remoteNodeNetworks": [], "remotePodNetworks": [] }.
Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING (this status transition is eventually consistent). When the update is complete (either Failed or Successful), the cluster status moves to Active.
Parameters:
-
name(String) –The name of the Amazon EKS cluster to update.
-
resources_vpc_config(Optional[VpcConfigRequest], default:None) –An object representing the VPC configuration to use for the cluster update. You can use this parameter to update the control plane egress mode, the subnets used by the cluster, the security groups, and the endpoint access settings.
-
logging(Optional[Logging], default:None) –Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs . By default, cluster control plane logs aren't exported to CloudWatch Logs . For more information, see Amazon EKS cluster control plane logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
-
client_request_token(Optional[String], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
access_config(Optional[UpdateAccessConfigRequest], default:None) –The access configuration for the cluster.
-
upgrade_policy(Optional[UpgradePolicyRequest], default:None) –You can enable or disable extended support for clusters currently on standard support. You cannot disable extended support once it starts. You must enable extended support before your cluster exits standard support.
-
zonal_shift_config(Optional[ZonalShiftConfigRequest], default:None) –Enable or disable ARC zonal shift for the cluster. If zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
Zonal shift is a feature of Amazon Application Recovery Controller (ARC). ARC zonal shift is designed to be a temporary measure that allows you to move traffic for a resource away from an impaired AZ until the zonal shift expires or you cancel it. You can extend the zonal shift if necessary.
You can start a zonal shift for an EKS cluster, or you can allow Amazon Web Services to do it for you by enabling zonal autoshift. This shift updates the flow of east-to-west network traffic in your cluster to only consider network endpoints for Pods running on worker nodes in healthy AZs. Additionally, any ALB or NLB handling ingress traffic for applications in your EKS cluster will automatically route traffic to targets in the healthy AZs. For more information about zonal shift in EKS, see Learn about Amazon Application Recovery Controller (ARC) Zonal Shift in Amazon EKS in the Amazon EKS User Guide .
-
compute_config(Optional[ComputeConfigRequest], default:None) –Update the configuration of the compute capability of your EKS Auto Mode cluster. For example, enable the capability.
-
storage_config(Optional[StorageConfigRequest], default:None) –Update the configuration of the block storage capability of your EKS Auto Mode cluster. For example, enable the capability.
-
deletion_protection(Optional[BoxedBoolean], default:None) –Specifies whether to enable or disable deletion protection for the cluster. When enabled (
true), the cluster cannot be deleted until deletion protection is explicitly disabled. When disabled (false), the cluster can be deleted normally. -
control_plane_scaling_config(Optional[ControlPlaneScalingConfig], default:None) –The control plane scaling tier configuration. For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.
-
kube_api_server_config(Optional[KubeApiServerConfigRequest], default:None) –The Kubernetes API server configuration for the updated cluster.
-
kube_scheduler_config(Optional[KubeSchedulerConfigRequest], default:None) –The Kubernetes scheduler configuration for the updated cluster.
-
kube_controller_manager_config(Optional[KubeControllerManagerConfigRequest], default:None) –The Kubernetes controller manager configuration for the updated cluster.
Raises:
-
ClientException–These errors are usually caused by a client action. Actions can include using an action or resource on behalf of an IAM principal that doesn't have permissions to use the action or resource or specifying an identifier that is not valid.
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
InvalidRequestException–The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations.
-
ResourceInUseException–The specified resource is in use.
-
ResourceNotFoundException–The specified resource could not be found. You can view your available clusters with
ListClusters. You can view your available managed node groups withListNodegroups. Amazon EKS clusters and node groups are Amazon Web Services Region specific. -
ServerException–These errors are usually caused by a server-side issue.
-
ThrottlingException–The request or operation couldn't be performed because a service is throttling requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eks/_services/eks.py
4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 | |