Skip to main content
Set a new size for a resource by adjusting its replica count.

Usage

idyl scale

Commands

CommandDescription
idyl scale deploymentScale a deployment
idyl scale replicasetScale a replicaset

Inherited flags

FlagDescription
-a <string>, --account-id <string>Account ID to use (overrides context)
-c <string>, --context <string>Use specific context
--homedir <string>Override config directory (default: ~/.idyl)
-n <string>, --namespace <string>Namespace to use
-o <string>, --output <string>Output format (json|yaml)
-p <string>, --profile <string>Override profile
--realm <string>Override realm
--subnet <string>Override context subnet for this command

Examples

# Scale a deployment to 3 replicas
idyl scale deployment frontend --replicas 3

# Scale a replicaset to 2 replicas
idyl scale replicaset frontend --replicas 2

# Scale down to zero
idyl scale deployment batch-processor --replicas 0
idyl scale replicaset batch-processor --replicas 0

# Scale in specific namespace
idyl scale deployment frontend --replicas 5 -n production
idyl scale replicaset frontend --replicas 5 -n production

Subcommand reference

idyl scale deployment

Scale a deployment

Usage

idyl scale deployment <name> [flags]

Aliases

  • deployments
  • deploy

Flags

FlagDescription
-n <string>, --namespace <string>Namespace name (overrides context)
--replicas <uint64>Required. Number of replicas Default: 1.

idyl scale replicaset

Scale a replicaset

Usage

idyl scale replicaset <name> [flags]

Aliases

  • replicasets
  • rs

Flags

FlagDescription
-n <string>, --namespace <string>Namespace name (overrides context)
--replicas <uint64>Required. Number of replicas Default: 1.