diff --git a/charts/thumbor/Chart.yaml b/charts/thumbor/Chart.yaml index 7182ece..b465baa 100755 --- a/charts/thumbor/Chart.yaml +++ b/charts/thumbor/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: thumbor icon: https://camo.githubusercontent.com/8add159463b5ef31481d1e0cc9fb590cd662fe62/68747470733a2f2f73332e65752d776573742d322e616d617a6f6e6177732e636f6d2f6d696e696d616c2d636f6d706163742f696d616765732f6d632d7468756d626f722e706e67 -version: 1.0.29 +version: 1.0.30 appVersion: "6.7.5" description: A chart containing Thumbor home: http://thumbor.org/ diff --git a/charts/thumbor/README.md b/charts/thumbor/README.md index 71b08f8..4a4bdb2 100644 --- a/charts/thumbor/README.md +++ b/charts/thumbor/README.md @@ -62,3 +62,4 @@ NAME: my-release | resources.requests.memory | string | `"512Mi"` | | | service.name | string | `"thumbor"` | | | service.type | string | `"ClusterIP"` | | +| affinity | dictionary | `{}` | Affinity for pod assignment | diff --git a/charts/thumbor/templates/deployment.yaml b/charts/thumbor/templates/deployment.yaml index 3bd7cb0..a74d9f6 100755 --- a/charts/thumbor/templates/deployment.yaml +++ b/charts/thumbor/templates/deployment.yaml @@ -22,6 +22,10 @@ spec: annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: +{{- if .Values.affinity }} + affinity: +{{- toYaml .Values.affinity | nindent 8 }} +{{- end }} volumes: - name: {{ template "thumbor.fullname" . }}-storage {{- if .Values.persistence.enabled }} diff --git a/charts/thumbor/values.yaml b/charts/thumbor/values.yaml index a6b733b..2963cb4 100755 --- a/charts/thumbor/values.yaml +++ b/charts/thumbor/values.yaml @@ -64,3 +64,15 @@ autoscaling: minReplicas: 1 maxReplicas: 1 targetCPUUtilizationPercentage: 80 + +# affinity example: +# +#affinity: +# nodeAffinity: +# requiredDuringSchedulingIgnoredDuringExecution: +# nodeSelectorTerms: +# - matchExpressions: +# - key: node-type +# operator: In +# values: +# - thumbor \ No newline at end of file