Skip to content

Commit

Permalink
Merge pull request #4 from score-spec/mathieu-benoit-patch-2
Browse files Browse the repository at this point in the history
Update 00-hpa.provisioners.yaml - Fix typo in params
  • Loading branch information
mathieu-benoit authored Jan 14, 2025
2 parents 25c707f + 81870ff commit d71a569
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ score-compose init \

## For `score-compose`

| Type | Class | Params | Outputs |
| --------------------------- | --------- | --------------------------------------------------------- | ------- |
| `dapr-state-store` | `redis` | (none) | `name` |
| `service` | `default` | (none) | `name` |
| `horizontal-pod-autoscaler` | `default` | `minReplicas`, `maxReplicas`, `targetUtilizationPercent` | (none) |
| Type | Class | Params | Outputs |
| --------------------------- | --------- | ------- | ------- |
| `dapr-state-store` | `redis` | (none) | `name` |
| `service` | `default` | (none) | `name` |
| `horizontal-pod-autoscaler` | `default` | (none) | (none) |

## For `score-k8s`

| Type | Class | Params | Outputs |
| --------------------------- | --------- | --------------------------------------------------------- | ------- |
| `dapr-state-store` | `redis` | (none) | `name` |
| `service` | `default` | (none) | `name` |
| `horizontal-pod-autoscaler` | `default` | `minReplicas`, `maxReplicas`, `targetUtilizationPercent` | (none) |
| Type | Class | Params | Outputs |
| --------------------------- | --------- | ---------------------------------------------------------------------- | ------- |
| `dapr-state-store` | `redis` | (none) | `name` |
| `service` | `default` | (none) | `name` |
| `horizontal-pod-autoscaler` | `default` | `minReplicas`, `maxReplicas`, `defaultTargetCPUUtilizationPercentage` | (none) |
4 changes: 2 additions & 2 deletions score-k8s/00-hpa.provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
defaultMaxReplicas: 3
defaultMinReplicas: 2
absoluteMaxReplicas : 10
defaultTargetUtilizationPercent: 80
defaultTargetCPUUtilizationPercentage: 80
manifests: |
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
Expand All @@ -23,4 +23,4 @@
name: cpu
target:
type: Utilization
averageUtilization: {{ .Params.targetUtilizationPercent | default .Init.defaultTargetUtilizationPercent }}
averageUtilization: {{ .Params.targetCPUUtilizationPercentage | default .Init.defaultTargetCPUUtilizationPercentage }}

0 comments on commit d71a569

Please sign in to comment.