Skip to content

Commit

Permalink
feat: add topologySpreadConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
rasta-rocket authored and JAORMX committed Oct 12, 2023
1 parent db58d4f commit d0df233
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ please refer to [the official krakend documentation](https://www.krakend.io/docs
| serviceMonitor.targetPort | int | `9091` | prometheus metrics port exposed by krakend |
| strategy | object | `{}` | The strategy for the krakend deployment. This can either be a `deployment` or a `rollout` strategy. For more information on the Argo Rollout strategy, see https://argo-rollouts.readthedocs.io/en/stable/features/specification/ |
| tolerations | object | `[]` | The tolerations to use for the krakend pod |
| topologySpreadConstraints | array | `[]` | The topologySpreadConstraints to use for the krakend pod |
## Development
Expand Down
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: tmp
emptyDir: {}
Expand Down
3 changes: 3 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@
},
"tolerations": {
"type": "array"
},
"topologySpreadConstraints": {
"type": "array"
}
}
}
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ tolerations: []
# -- (object) The affinity to use for the krakend pod
affinity: {}

# -- (array) The topologySpreadConstraints to use for the krakend pod
topologySpreadConstraints: []

# -- (array) extraVolumeMounts allows you to mount extra volumes to the krakend pod
extraVolumeMounts: []

Expand Down

0 comments on commit d0df233

Please sign in to comment.