RKEControlPlane.spec.upgradeStrategy.controlPlaneDrainOptions.preDrainHooks.spec
Spec is the desired state of the controlplane.
| Field / Type | Description |
|---|---|
additionalManifest | AdditionalManifest is a string containing a yaml blob to insert in the /var/lib/rancher/<rke2/k3s>/server/manifests/rancher/addons.yaml file. The distro will automatically create these resources. Resources created as additional manifests will be deleted if removed from additional manifests.
|
AgentEnvVars is a list of environment variables that will be set on the cluster agent deployment and system agent service.
| |
chartValues | ChartValues is a map whose keys correspond to charts to be installed by the distro, with values corresponding to the helm values configurable in the chart.
|
clusterName | ClusterName is the name of the provisioning cluster object.
|
DataDirectories contains the configuration for the data directories typically stored within /var/lib/rancher. The data directories must be configured via the provisioning cluster object and are immutable once set. | |
ETCD contains the etcd snapshot configuration for the cluster.
| |
ETCDSnapshotCreate is the configuration for the etcd snapshot creation operation.
| |
ETCDSnapshotRestore is the configuration for the etcd snapshot restore operation.
| |
kubernetesVersion | KubernetesVersion is the desired version of RKE2/K3s for the cluster. This field is only populated for provisioned and custom clusters.
|
LocalClusterAuthEndpoint is the configuration for the local cluster auth endpoint. | |
machineGlobalConfig | MachineGlobalConfig is a list of distro arguments which will be copied to /etc/rancher/<rke2/k3s>/config.yaml.d/50-rancher.yaml for all machines.
|
MachineSelectorConfig is a list of distro arguments which will be copied to /etc/rancher/<rke2/k3s>/config.yaml.d/50-rancher.yaml if the machine matches the label selector.
| |
MachineSelectorFiles is a list of files which will be copied to the machine if the machine matches the label selector.
| |
managementClusterName | ManagementClusterName is the name of the management cluster object that relates to this cluster. |
Networking contains information regarding the desired networking stack of the cluster.
| |
provisionGeneration | ProvisionGeneration is used to force the planner to reconcile the cluster, regardless of whether a reconciliation is required. |
Registries is the list of mirrors and configurations for the cluster's container registries.
| |
RotateCertificates is the configuration for the certificate rotation operation.
| |
RotateEncryptionKeys is the configuration for the encryption key rotation operation.
| |
unmanagedConfig | UnmanagedConfig indicates whether the configuration files for this cluster are managed by Rancher or externally. |
UpgradeStrategy contains the concurrency and drain configuration to be used when upgrading machine pools of servers and agents. |