Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.16.0
version: 7.17.0
apiVersion: v2
appVersion: 7.11.0
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down Expand Up @@ -31,8 +31,8 @@ maintainers:
kubeVersion: ">=1.16.0-0"
annotations:
artifacthub.io/changes: |
- kind: changed
description: Updated OAuth2-Proxy image to v7.11.0
- kind: added
description: Added support for HPA spec.behavior configuration for fine-grained scaling policies
links:
- name: Github PR
url: https://github.com/oauth2-proxy/manifests/pull/329
url: https://github.com/oauth2-proxy/manifests/pull/331
1 change: 1 addition & 0 deletions helm/oauth2-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ The following table lists the configurable parameters of the oauth2-proxy chart
| `autoscaling.targetCPUUtilizationPercentage` | Horizontal Pod Autoscaler setting. | `80` |
| `autoscaling.targetMemoryUtilizationPercentage` | Horizontal Pod Autoscaler setting. | `` |
| `autoscaling.annotations` | Horizontal Pod Autoscaler annotations. | `{}` |
| `autoscaling.behavior` | Configure HPA behavior policies for scaling. See [docs](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configuring-scaling-behavior) | `{}` |
| `alphaConfig.enabled` | Flag to toggle any alpha config-related logic | `false` |
| `alphaConfig.annotations` | Configmap annotations | `{}` |
| `alphaConfig.serverConfigData` | Arbitrary configuration data to append to the server section | `{}` |
Expand Down
11 changes: 11 additions & 0 deletions helm/oauth2-proxy/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ spec:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.behavior }}
behavior:
{{- with .Values.autoscaling.behavior.scaleDown }}
scaleDown:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.autoscaling.behavior.scaleUp }}
scaleUp:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- end }}
{{- end }}
22 changes: 21 additions & 1 deletion helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,28 @@ autoscaling:
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
annotations: {}
# Configure HPA behavior policies for scaling if needed
# Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configuring-scaling-behavior
behavior: {}
# scaleDown:
# stabilizationWindowSeconds: 300
# policies:
# - type: Percent
# value: 100
# periodSeconds: 15
# selectPolicy: Min
# scaleUp:
# stabilizationWindowSeconds: 0
# policies:
# - type: Percent
# value: 100
# periodSeconds: 15
# - type: Pods
# value: 4
# periodSeconds: 15
# selectPolicy: Max

# Configure Kubernetes security context for pod
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
Expand Down
Loading