Skip to content

Commit

Permalink
[DEVOPS-485] Hard code maxReplicas for dev and staging (#136)
Browse files Browse the repository at this point in the history
<details open>
<summary><a href="https://amuniversal.atlassian.net/browse/DEVOPS-485"
title="DEVOPS-485" target="_blank">DEVOPS-485</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
<td>Lower maxReplicas for Kubernetes deployments in staging and
development</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Story"
src="https://amuniversal.atlassian.net/images/icons/issuetypes/story.png"
/>
        Story
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>In Progress</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
do not remove this marker as it will break action-jira-linter's
functionality.
  added_by_jira_lint
-->
---

<!-- Please make sure you read the contribution guidelines and then fill
out the blanks below.

Please format the PR title appropriately based on the type of change:
  [JIRA-XXX]: <description>
-->

## Description

- Hard code maxReplicas for dev and staging

## Related Links

<!-- List any links related to this pull request here

Replace "JIRA-XXX" with the your Jira issue key -->

- Jira Issue: DEVOPS-485
  • Loading branch information
ebronson68 committed Jul 18, 2024
1 parent d3c4ce6 commit 0c18faf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/aks-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,15 @@ jobs:
$appVersion = $chartConfig.appVersion
$appHealthCheck = $appconfig.deployment.healthCheckPath
$configMap = $appConfig.deployment.configMap
$maxReplicas = $appConfig.autoscaling.maxReplicas
if ($appEnvironment -eq "development") {
$maxReplicas = 2
}
elseif ($appEnvironment -eq "staging") {
$maxReplicas = 4
}
else {
$maxReplicas = $appConfig.autoscaling.maxReplicas
}
$configSecret = $appConfig.deployment.secret
$imagePullSecret = "$appName-pull-secret"
$release = "$appName-${{ github.sha }}" -replace '(^.{53})(.*$)', '$1'
Expand Down

0 comments on commit 0c18faf

Please sign in to comment.