Simplified and Cost-Efficient GKE Node Management with NAP:
Secure your spot!
LogoLogo
PerfectScale.ioStart for FreeYour Account
  • Kubernetes Optimization
  • Getting started
    • How to onboard a cluster
    • Onboarding clusters programmatically
    • Onboarding with ArgoCD
    • Updating PerfectScale Agent resources
    • Re-onboarding a cluster
  • Enable automation
    • Automation setup instruction
    • Including a cluster, namespace or workload to the Automation
      • Configuring Automation for a cluster
      • Configuring Automation for a namespace
      • Configuring Automation for a workload
    • Excluding a namespace or workload from the Automation
    • Automation customization
    • Verifying Automation status
    • Exploring Automation KPIs
    • Self-healing mechanism for unschedulable pods
    • Disable automation
    • Troubleshooting
    • Automation with GitOps
  • Cloud billing integration
    • Connecting AWS CUR
    • Connecting Azure Cost Management
  • Clusters' metrics overview
  • Podfit | vertical pod right-sizing
    • Understanding 'At Risk' indicators
    • LimitRange and ResourceQuota
  • Infrafit | node right-sizing
  • Configure alerts
    • Alerts acknowledgement
  • Trends monitoring
  • Revisions history log
  • Product overview
    • How to monitor PerfectScale Agent
    • PerfectScale data collected
    • PerfectScale Autoscaler Objects' Events
    • Outbound Request Ports used by the Exporter and Autoscaler
    • PerfectScale Weekly Report
    • Product architecture
  • Customizations
    • Alerting
      • Resiliency alerts
      • Financial alerts
    • Pricing
      • Custom Pricing configuration
      • AWS CUR configuration
      • Azure Cost Management configuration
    • Ticketing & Bug Tracking
    • Communication & Messaging
      • Slack Integration
        • How to configure slack_token
        • How to configure routings
      • MS Teams Integration
        • How to configure teams_webhook
      • Datadog Alerts Integration
    • Label customizations
    • Grouping
    • Observability
    • Podfit labels
    • Optimization Policy customization
  • Administration
    • Cluster settings
    • User management
    • Roles and permissions
    • Subscription details
    • Help Center
  • PerfectScale trial
    • How to find your allocated vCPU?
  • PerfectScale Prometheus Exporter
  • Security
    • MFA
    • SSO
    • ps-agent RBAC Permissions
    • psc-autoscaler RBAC Permissions
    • ps-exporter via Proxy Configuration
  • Public API
  • Help PerfectScale to improve
  • Go to your account
Powered by GitBook
LogoLogo

© PerfectScale 2025

On this page
  • Disabling automation for the namespace/workload
  • Exclude namespace
  • Exclude workload
  • Exclude workload by label
  • Disable automation for the cluster
  • StopAllAutomation
  • Cleanup automation
  • Uninstall the automation agent
  1. Enable automation

Disable automation

Learn how to disable Automation

PerfectScale Automation is a powerful feature that streamlines and optimizes your infrastructure management. However, there may be scenarios where you need to temporarily or permanently disable automation. Choose one of the methods provided to deactivate Automation smoothly, depending on your needs.

Disabling automation for the namespace/workload

This method enables you to selectively exclude specific namespaces and workloads within your cluster from automation.

Set a flag spec.automation.operational.automationMode = Disabled in the namespace/workload automation configuration.

The workload settings take precedence over the settings of the namespace or cluster (the namespace settings take precedence over the cluster's). This feature allows enabling automation for the entire namespace or cluster while allowing for specific workloads to be disabled within this namespace/cluster.

Use one of the following configurations to exclude the particular namespace or workload from automation in the cluster.

Exclude namespace

apiVersion: perfectscale.io/v1
kind: NamespaceAutomationConfig
metadata:
  name: your-namespace-automation-config
spec:
  automation:
    operational:
      automationMode: Disabled

Exclude workload

apiVersion: perfectscale.io/v1
kind: WorkloadAutomationConfig
metadata:
  name: your-workload-automation-config
spec:
  automation:
    operational:
      automationMode: Disabled
  targetRef:
    kind: Deployment
    name: deployment-name-here

Exclude workload 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 workload with the specified label

Disable automation for the cluster

To disable automation for the entire cluster, use one of the following options:

  • Set a flag spec.automation.operational.StopAllAutomation = true in the cluster automation configuration.

  • Manually delete cluster automation configuration.

  • Uninstall PerfectScale Automation Agent.

StopAllAutomation

This method allows you to fully disable automation across the entire cluster, overriding any existing automation settings for specific namespaces or workloads.

apiVersion: perfectscale.io/v1
kind: ClusterAutomationConfig
metadata:
  name: cluster-automation-config
spec:
  automation:
    operational:
        stopAllAutomation: true

Cleanup automation

In certain scenarios, you may need to disable automation and revert any changes it has applied, returning your cluster to its original state based on the specified configuration.

To achieve this, set the cleanupAllAutomation parameter to true. This will not only stop automation but also roll back any modifications made by the automation processes, restoring the original resource specifications and settings.

cleanupAllAutomation overrides any existing automation settings for specific namespaces or workloads.

apiVersion: perfectscale.io/v1
kind: ClusterAutomationConfig
metadata:
  name: cluster-automation-config
spec:
  automation:
    operational:
        cleanupAllAutomation: true

Uninstall the automation agent

To uninstall the PerfectScale Automation Agent, execute the following command

helm -n perfectscale  uninstall psc-autoscaler

PreviousSelf-healing mechanism for unschedulable podsNextTroubleshooting

Last updated 3 months ago