Excluding a namespace or workload from the Automation
Learn how to effortlessly exclude a cluster, namespace, or workload from your Automation configuration
In some cases, you might want to exclude specific namespaces or workloads from automation. Use the following configurations in order to exclude the particular namespace or workload from automation in the cluster
Exclude a namespace
apiVersion: perfectscale.io/v1
kind: NamespaceAutomationConfig
metadata:
name: your-namespace-automation-config
spec:
automation:
operational:
automationMode: Disabled # Disables Automation for the specified namespace
Exclude a workload
apiVersion: perfectscale.io/v1
kind: WorkloadAutomationConfig
metadata:
name: your-workload-automation-config
spec:
automation:
operational:
automationMode: Disabled # Disables Automation for the workload with the specified parameters
targetRef:
kind: Deployment
name: deployment-name-here
Exclude workload(s) by label
apiVersion: perfectscale.io/v1
kind: NamespaceAutomationConfig
metadata:
name: your-namespace-automation-config
spec:
automation:
operational:
workloadLabelSelectors:
- key: "environment"
value: "production"
allowAutomation: false # Disables Automation for the workload(s) with the specified label