Pod autoscaler is a Kubernetes pod-level chaos fault that determines whether nodes can accomodate multiple replicas of a given application pod.
- It examines the node auto-scaling feature by determining whether the pods were successfully rescheduled within a specified time frame if the existing nodes are running at the specified limits.
View fault usage
- Kubernetes > 1.16.
The application pods should be in running state before and after chaos injection.
|REPLICA_COUNT||Number of replicas to which you wish to scale.|| |
|TOTAL_CHAOS_DURATION||Duration that you specify, through which chaos is injected into the target resource (in seconds).||Defaults to 60s.|
|RAMP_TIME||Period to wait before and after injecting chaos (in seconds).||For example, 30s.|
Common and pod-specific tunables
It defines the number of replicas that are required to be present in the target application during chaos. You can tune it using the
REPLICA_COUNT environment variable.
Use the following example to tune it:
# provide the number of replicas
- name: pod-autoscaler
# number of replica, needs to scale
- name: REPLICA_COUNT
- name: TOTAL_CHAOS_DURATION