UpdateAutoPause resource¶
Available since 2.29.0 (17.4.0) Technology Preview
This section describes the UpdateAutoPause
custom resource (CR) used in the
Container Cloud API to configure automatic pausing of cluster release updates
in a managed cluster using StackLight alerts.
The Container Cloud UpdateAutoPause
CR contains the following fields:
apiVersion
API version of the object that is
kaas.mirantis.com/v1alpha1
.
kind
Object type that is
UpdateAutoPause
.
metadata
Metadata of the
UpdateAutoPause
CR that contains the following fields:name
Name of the
UpdateAutoPause
object. Must match the cluster name.
namespace
Project where the
UpdateAutoPause
is created. Must match the cluster namespace.
spec
Specification of the
UpdateAutoPause
CR that contains the following field:alerts
List of alert names. The occurrence of any alert from this list triggers auto-pause of the cluster release update.
status
Status of the
UpdateAutoPause
CR that contains the following fields:firingAlerts
List of currently firing alerts from the specified set.
error
Error message, if any, encountered during object processing.
Configuration example:
apiVersion: kaas.mirantis.com/v1alpha1
kind: UpdateAutoPause
metadata:
name: example-cluster
namespace: example-ns
spec:
alerts:
- KubernetesNodeNotReady
- KubernetesContainerOOMKilled
status:
firingAlerts:
- KubernetesNodeNotReady
error: ""