You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can enable Amazon Web Services (AWS) features on control plane machines by changing the configuration of your control plane machine set. When you save an update to the control plane machine set, the Control Plane Machine Set Operator updates the control plane machines according to your configured update strategy.
27
27
28
+
:context: cpmso-using-aws
29
+
//Restricting the API server to private (AWS control plane machine set version)
You can enable Microsoft Azure features on control plane machines by changing the configuration of your control plane machine set. When you save an update to the control plane machine set, the Control Plane Machine Set Operator updates the control plane machines according to your configured update strategy.
44
52
53
+
:context: cpmso-using-azure
54
+
//Restricting the API server to private (Azure control plane machine set version)
* xref:../backup_and_restore/control_plane_backup_and_restore/replacing-unhealthy-etcd-member.adoc[Replacing an unhealthy etcd member].
17
+
* xref:../backup_and_restore/control_plane_backup_and_restore/replacing-unhealthy-etcd-member.adoc[Replacing an unhealthy etcd member]
18
+
* xref:../machine_management/control_plane_machine_management/cpmso-using.adoc#cpmso-using[Managing control plane machines with the Control Plane Machine Set Operator]
Copy file name to clipboardExpand all lines: modules/architecture-machine-roles.adoc
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
// Module included in the following assemblies:
2
2
//
3
-
// * architecture/architecture.adoc
3
+
// * architecture/control-plane.adoc
4
+
4
5
[id="architecture-machine-roles_{context}"]
5
6
= Machine roles in {product-title}
6
7
7
-
{product-title} assigns hosts different roles. These roles define the function of the machine within the cluster. The cluster contains definitions for the standard master and worker role types.
8
+
{product-title} assigns hosts different roles. These roles define the function of the machine within the cluster. The cluster contains definitions for the standard `master` and `worker` role types.
8
9
9
10
[NOTE]
10
11
====
11
-
The cluster also contains the definition for the bootstrap role. Because the bootstrap machine is used only during cluster installation, its function is explained in the cluster installation documentation.
12
+
The cluster also contains the definition for the `bootstrap` role. Because the bootstrap machine is used only during cluster installation, its function is explained in the cluster installation documentation.
12
13
====
13
14
14
15
== Control plane and node host compatibility
@@ -47,24 +48,26 @@ In a Kubernetes cluster, the worker nodes are where the actual workloads request
47
48
For information about how to enable crun instead of the default runC, see the documentation for creating a `ContainerRuntimeConfig` CR.
48
49
====
49
50
50
-
In {product-title}, compute machine sets control the compute machines, which are assigned the `worker` machine role. Machines with the worker role drive compute workloads that are governed by a specific machine pool that autoscales them. Because {product-title} has the capacity to support multiple machine types, the worker machines are classed as _compute_ machines. In this release, the terms _worker machine_ and _compute machine_ are used interchangeably because the only default type of compute machine is the worker machine. In future versions of {product-title}, different types of compute machines, such as infrastructure machines, might be used by default.
51
+
In {product-title}, compute machine sets control the compute machines, which are assigned the `worker` machine role. Machines with the `worker` role drive compute workloads that are governed by a specific machine pool that autoscales them. Because {product-title} has the capacity to support multiple machine types, the machines with the `worker` role are classed as _compute_ machines. In this release, the terms _worker machine_ and _compute machine_ are used interchangeably because the only default type of compute machine is the worker machine. In future versions of {product-title}, different types of compute machines, such as infrastructure machines, might be used by default.
51
52
52
53
[NOTE]
53
54
====
54
55
Compute machine sets are groupings of compute machine resources under the `machine-api` namespace. Compute machine sets are configurations that are designed to start new compute machines on a specific cloud provider. Conversely, machine config pools (MCPs) are part of the Machine Config Operator (MCO) namespace. An MCP is used to group machines together so the MCO can manage their configurations and facilitate their upgrades.
55
56
====
56
57
57
58
[id="defining-masters_{context}"]
58
-
== Cluster masters
59
+
== Cluster control planes
60
+
61
+
In a Kubernetes cluster, the _master_ nodes run services that are required to control the Kubernetes cluster. In {product-title}, the control plane is comprised of control plane machines that have a `master` machine role. They contain more than just the Kubernetes services for managing the {product-title} cluster.
59
62
60
-
In a Kubernetes cluster, the control plane nodes run services that are required to control the Kubernetes cluster. In {product-title}, the control plane machines are the control plane. They contain more than just the Kubernetes services for managing the {product-title} cluster. Because all of the machines with the control plane role are control plane machines, the terms _master_ and _control plane_ are used interchangeably to describe them. Instead of being grouped into a compute machine set, control plane machines are defined by a series of standalone machine API resources. Extra controls apply to control plane machines to prevent you from deleting all control plane machines and breaking your cluster.
63
+
For most {product-title} clusters, control plane machines are defined by a series of standalone machine API resources. For supported cloud provider and {product-title} version combinations, control planes can be managed with control plane machine sets. Extra controls apply to control plane machines to prevent you from deleting all control plane machines and breaking your cluster.
61
64
62
65
[NOTE]
63
66
====
64
67
Exactly three control plane nodes must be used for all production deployments.
65
68
====
66
69
67
-
Services that fall under the Kubernetes category on the master include the Kubernetes API server, etcd, the Kubernetes controller manager, and the Kubernetes scheduler.
70
+
Services that fall under the Kubernetes category on the control plane include the Kubernetes API server, etcd, the Kubernetes controller manager, and the Kubernetes scheduler.
68
71
69
72
.Kubernetes services that run on the control plane
70
73
[cols="1,2",options="header"]
@@ -75,7 +78,7 @@ Services that fall under the Kubernetes category on the master include the Kuber
75
78
and replication controllers. It also provides a focal point for the shared state of the cluster.
76
79
77
80
|etcd
78
-
|etcd stores the persistent master state while other components watch etcd for
81
+
|etcd stores the persistent control plane state while other components watch etcd for
79
82
changes to bring themselves into the specified state.
80
83
//etcd can be optionally configured for high availability, typically deployed with 2n+1 peer services.
81
84
@@ -118,7 +121,7 @@ Some of these services on the control plane machines run as systemd services, wh
118
121
Systemd services are appropriate for services that you need to always come up on that particular system shortly after it starts. For control plane machines, those include sshd, which allows remote login. It also includes services such as:
119
122
120
123
* The CRI-O container engine (crio), which runs and manages the containers. {product-title} {product-version} uses CRI-O instead of the Docker Container Engine.
121
-
* Kubelet (kubelet), which accepts requests for managing containers on the machine from master services.
124
+
* Kubelet (kubelet), which accepts requests for managing containers on the machine from control plane services.
122
125
123
126
CRI-O and Kubelet must run directly on the host as systemd services because they need to be running before you can run other containers.
= Changing the Amazon Web Services instance type by using the AWS console
8
+
9
+
You can change the Amazon Web Services (AWS) instance type that your control plane machines use by updating the instance type in the AWS console.
10
+
11
+
.Prerequisites
12
+
13
+
* You have access to the AWS console with the permissions required to modify the EC2 Instance for your cluster.
14
+
15
+
.Procedure
16
+
17
+
. Open the AWS console and fetch the instances for the control plane machines.
18
+
19
+
. Choose one control plane machine instance.
20
+
21
+
.. For the selected control plane machine, back up the etcd data by creating an etcd snapshot. For more information, see "Backing up etcd".
22
+
23
+
.. In the AWS console, stop the control plane machine instance.
24
+
25
+
.. Select the stopped instance, and click *Actions* -> *Instance Settings* -> *Change instance type*.
26
+
27
+
.. Change the instance to a larger type, ensuring that the type is the same base as the previous selection, and apply changes. For example, you can change `m6i.xlarge` to `m6i.2xlarge` or `m6i.4xlarge`.
28
+
29
+
.. Start the instance.
30
+
31
+
. Repeat this process for each control plane machine.
= Changing the Amazon Web Services instance type by using a control plane machine set
16
+
17
+
You can change the Amazon Web Services (AWS) instance type that your control plane machines use by updating the specification in the control plane machine set custom resource (CR).
18
+
19
+
.Prerequisites
20
+
21
+
* Your AWS cluster uses a control plane machine set.
22
+
23
+
.Procedure
24
+
25
+
ifdef::scale-host[]
26
+
. Edit your control plane machine set CR by running the following command:
. Edit the following line under the `providerSpec` field:
35
+
+
36
+
[source,yaml]
37
+
----
38
+
providerSpec:
39
+
value:
40
+
...
41
+
instanceType: <compatible_aws_instance_type> <1>
42
+
----
43
+
<1> Specify a larger AWS instance type with the same base as the previous selection. For example, you can change `m6i.xlarge` to `m6i.2xlarge` or `m6i.4xlarge`.
44
+
45
+
. Save your changes.
46
+
47
+
ifdef::scale-host[]
48
+
** For clusters that use the default `RollingUpdate` update strategy, the Operator automatically propagates the changes to your control plane configuration.
49
+
50
+
** For clusters that are configured to use the `OnDelete` update strategy, you must replace your control plane machines manually.
Copy file name to clipboardExpand all lines: modules/dr-restoring-cluster-state.adoc
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,11 @@
10
10
11
11
You can use a saved etcd backup to restore a previous cluster state or restore a cluster that has lost the majority of control plane hosts.
12
12
13
+
[NOTE]
14
+
====
15
+
If your cluster uses a control plane machine set, see "Troubleshooting the control plane machine set" for a more simple etcd recovery procedure.
16
+
====
17
+
13
18
[IMPORTANT]
14
19
====
15
20
When you restore your cluster, you must use an etcd backup that was taken from the same z-stream release. For example, an {product-title} 4.7.2 cluster must use an etcd backup that was taken from 4.7.2.
Copy file name to clipboardExpand all lines: modules/installation-aws-user-infra-requirements.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -554,7 +554,7 @@ or the following individual permissions.
554
554
You need `AWS::EC2::Instance` objects for the following machines:
555
555
556
556
* A bootstrap machine. This machine is required during installation, but you can remove it after your cluster deploys.
557
-
* Three control plane machines. The control plane machines are not governed by a compute machine set.
557
+
* Three control plane machines. The control plane machines are not governed by a control plane machine set.
558
558
* Compute machines. You must create at least two compute machines, which are also known as worker machines, during installation. These machines are not governed by a compute machine set.
Copy file name to clipboardExpand all lines: modules/machine-api-overview.adoc
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,11 @@ Machine sets:: `MachineSet` resources are groups of compute machines. Compute ma
27
27
[WARNING]
28
28
====
29
29
Control plane machines cannot be managed by compute machine sets.
30
+
31
+
Control plane machine sets provide management capabilities for supported control plane machines that are similar to what compute machine sets provide for compute machines.
32
+
33
+
For more information, see “Managing control plane machines".
30
34
====
31
-
// For more information, see “Managing control plane machines."
32
-
//to-do: add this line to the WARNING block once CPMS content exists
33
35
34
36
The following custom resources add more capabilities to your cluster:
0 commit comments