Skip to content

Commit

Permalink
Merge pull request #94 from imgproxy/v0.8.21
Browse files Browse the repository at this point in the history
v0.8.21
  • Loading branch information
nepalez authored Sep 28, 2022
2 parents e5fa077 + 5bf38eb commit d2d2647
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.21 (2022-09-28)

* Add topology spread constraints

## 0.8.20 (2022-09-20)

* Add new setting `features.ingress.pathSuffix`
Expand Down
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ Deployment specific options.
|**resources.deployment.replicas.cpuUtilization**|The target percentage for the average CPU utilization by pods after which they should be scaled.|`80`|
|**resources.deployment.resources**|Hash of resource limits for your pods|`{}`|
|**resources.deployment.tolerations**|Tolerations for Kubernetes taints||
|**resources.deployment.topologySpreadConstraints**|topologySpreadConstraints for distributing pods across zones|`[]`|
|**resources.serviceAccount.annotations**|Annotations for the Kubernetes service account for imgproxy|``|
|**resources.service.type**|Kubernetes service type for imgproxy|`ClusterIP`|
|**resources.service.loadBalancerIP**|Load balancer ip for service type "LoadBalancer"|''|
Expand Down
4 changes: 2 additions & 2 deletions imgproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v1
description: A fast and secure standalone server for resizing and converting remote images. The main principles of imgproxy are simplicity, speed, and security.
name: imgproxy
icon: https://cdn.rawgit.com/imgproxy/imgproxy/master/logo.svg
version: 0.8.20
appVersion: 3.7.0
version: 0.8.21
appVersion: 3.7.2
keywords:
- imgproxy
- image
Expand Down
1 change: 1 addition & 0 deletions imgproxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ Deployment specific options.
|**resources.deployment.replicas.cpuUtilization**|The target percentage for the average CPU utilization by pods after which they should be scaled.| `80` |
|**resources.deployment.resources**|Hash of resource limits for your pods| `{}` |
|**resources.deployment.tolerations**|Tolerations for Kubernetes taints||
|**resources.deployment.topologySpreadConstraints**|Topology spread constraints for distributing pods across zones|`[]`|
|**resources.serviceAccount.annotations**|Annotations for the Kubernetes service account for imgproxy| `` |
|**resources.service.type**|Kubernetes service type for imgproxy| `ClusterIP` |
|**resources.service.annotations**|Custom annotatioins for the service| `{}` |
Expand Down
11 changes: 11 additions & 0 deletions imgproxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ spec:
persistentVolumeClaim:
claimName: {{ include "imgproxy.pvcName" . }}
{{- end }}
{{- with .Values.resources.deployment.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 10 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels:
app: {{ template "imgproxy.fullname" $ }}
{{- end }}
{{- end }}
{{- end }}
containers:
- name: "imgproxy"
image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}"
Expand Down
8 changes: 7 additions & 1 deletion imgproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Docker image repository, tag, policy and secrets for Kubernetes to pull it.
image:
repo: darthsim/imgproxy
tag: v3.7.0
tag: v3.7.2
pullPolicy: IfNotPresent
# create new image-pull-secret if enabled: true
pullSecrets:
Expand Down Expand Up @@ -102,6 +102,12 @@ resources:
# Toleration for K8s taints
tolerations: []

# topologySpreadConstraints https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: []
# - maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule

# Set kubernetes specific resource limits.
# We claim `cpu: 1` for both limits and requests by default.
resources: {}
Expand Down

0 comments on commit d2d2647

Please sign in to comment.