Trigger a Kubernetes HPA with Sysdig metrics
Blog post from Sysdig
In this article, readers are guided through the process of configuring Keda to deploy a Kubernetes Horizontal Pod Autoscaler (HPA) using metrics from Sysdig Monitor. Keda, an open-source project, allows the scaling of Kubernetes pods through Prometheus queries, and this article builds on previous knowledge of creating an HPA with standard Prometheus queries by utilizing Sysdig's managed Prometheus solution. The example scenario involves scaling an Nginx deployment from one to five replicas based on the nginx_connections_waiting metric. The article explains the necessary steps, including creating a secret with the Sysdig API token, setting up a TriggerAuthentication object, and creating a ScaledObject to manage the scaling process. The process demonstrates the integration of Sysdig Monitor with Keda to automate scaling decisions in a Kubernetes environment efficiently.