Forked from joshuahendinata/composer_airflow_worker_hpa.yaml
Created
April 8, 2020 22:56
-
-
Save tanduong/d916c3f4285191bff20581264da2ff46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: autoscaling/v2beta1 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: airflow-worker | |
namespace: # use ${AIRFLOW_WORKER_NS} variable defined above | |
spec: | |
scaleTargetRef: | |
apiVersion: apps/v1 | |
kind: Deployment | |
name: airflow-worker | |
minReplicas: 1 | |
maxReplicas: 50 # Adjust this based on your use case | |
metrics: # Adjust this based on your use case | |
- type: Resource | |
resource: | |
name: memory | |
targetAverageValue: 1.5Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment