Skip to content

Enable actual scale-out in Kubernetes HPA configuration - #689

Open
conorheffron with Copilot wants to merge 4 commits into
mainfrom
copilot/investigate-auto-scaling-issue
Open

Enable actual scale-out in Kubernetes HPA configuration#689
conorheffron with Copilot wants to merge 4 commits into
mainfrom
copilot/investigate-auto-scaling-issue

Conversation

Copilot AI commented May 23, 2026

Copy link
Copy Markdown
Contributor

Autoscaling in the Kubernetes manifest was effectively disabled because the HPA min and max replica counts were both set to 1. This change updates the scaling bounds so the deployment can increase replicas under CPU pressure.

  • HPA scaling bounds
    • Updated /k8s/ironoc.yaml for HorizontalPodAutoscaler to allow scale-out.
    • Kept minReplicas unchanged at 1; increased maxReplicas from 1 to 3.
spec:
  minReplicas: 1
  maxReplicas: 3
  metrics:
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: 80

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • ads.mozilla.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofilePTRmyN (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileMKYjGM (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofile1NRw4c (dns block)
  • detectportal.firefox.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileMKYjGM (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofile1NRw4c (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofilePTRmyN (dns block)
  • firefox.settings.services.mozilla.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileMKYjGM (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofile1NRw4c (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofilePTRmyN (dns block)
  • incoming.telemetry.mozilla.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofilePTRmyN (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileMKYjGM (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofile1NRw4c (dns block)
  • ironoc.net
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofilePTRmyN (dns block)
  • support.mozilla.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofileMKYjGM (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette --headless --disable-gpu --window-size=1920,1080 -no-remote -profile /tmp/rust_mozprofile1NRw4c (dns block)
  • www.ironoc.net
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox --marionette -headless -no-remote -profile /tmp/rust_mozprofilePTRmyN (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue May 23, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/conorheffron/ironoc/sessions/141c4874-4935-42d6-8f2a-d87efd0bf263

Co-authored-by: conorheffron <8218626+conorheffron@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate and resolve auto scaling issue Enable actual scale-out in Kubernetes HPA configuration May 23, 2026
Copilot AI requested a review from conorheffron May 23, 2026 19:18
@conorheffron
conorheffron requested a review from Copilot May 24, 2026 14:37
@conorheffron conorheffron added the ci-infra CI / CD infra tasks label May 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables real horizontal scale-out for the ironoc-app-deployment Kubernetes workload by increasing the HPA’s maxReplicas, which previously prevented autoscaling from increasing replicas under load.

Changes:

  • Updated the HorizontalPodAutoscaler spec.maxReplicas from 1 to 3 (keeping minReplicas: 1).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@conorheffron
conorheffron marked this pull request as ready for review May 31, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-infra CI / CD infra tasks

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Investigate auto scaling issue

3 participants