feat(helm-chart): add support for topologySpreadConstraints
This commit is contained in:
parent
36a1350ef0
commit
27a9731935
|
@ -170,3 +170,15 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.topologySpreadConstraints }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- range . }}
|
||||||
|
- maxSkew: {{ .maxSkew }}
|
||||||
|
topologyKey: {{ .topologyKey }}
|
||||||
|
whenUnsatisfiable: {{ .whenUnsatisfiable }}
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ include "emqx.name" $ }}
|
||||||
|
app.kubernetes.io/instance: {{ $.Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -128,6 +128,9 @@ service:
|
||||||
## Service type
|
## Service type
|
||||||
##
|
##
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
## The cluster IP if one wants to customize it to a fixed value
|
||||||
|
##
|
||||||
|
clusterIP: None
|
||||||
## Port for MQTT
|
## Port for MQTT
|
||||||
##
|
##
|
||||||
mqtt: 1883
|
mqtt: 1883
|
||||||
|
@ -187,6 +190,8 @@ tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
## ingress for EMQX Dashboard
|
## ingress for EMQX Dashboard
|
||||||
dashboard:
|
dashboard:
|
||||||
|
|
|
@ -62,6 +62,7 @@ The following table lists the configurable parameters of the emqx chart and thei
|
||||||
| `nodeSelector` | Node labels for pod assignment | `{}` |
|
| `nodeSelector` | Node labels for pod assignment | `{}` |
|
||||||
| `tolerations` | Toleration labels for pod assignment | `[]` |
|
| `tolerations` | Toleration labels for pod assignment | `[]` |
|
||||||
| `affinity` | Map of node/pod affinities | `{}` |
|
| `affinity` | Map of node/pod affinities | `{}` |
|
||||||
|
| `topologySpreadConstraints` | List of topology spread constraints without labelSelector | `[]` |
|
||||||
| `service.type` | Kubernetes Service type. | ClusterIP |
|
| `service.type` | Kubernetes Service type. | ClusterIP |
|
||||||
| `service.mqtt` | Port for MQTT. | 1883 |
|
| `service.mqtt` | Port for MQTT. | 1883 |
|
||||||
| `service.mqttssl` | Port for MQTT(SSL). | 8883 |
|
| `service.mqttssl` | Port for MQTT(SSL). | 8883 |
|
||||||
|
|
|
@ -170,3 +170,15 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.topologySpreadConstraints }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- range . }}
|
||||||
|
- maxSkew: {{ .maxSkew }}
|
||||||
|
topologyKey: {{ .topologyKey }}
|
||||||
|
whenUnsatisfiable: {{ .whenUnsatisfiable }}
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ include "emqx.name" $ }}
|
||||||
|
app.kubernetes.io/instance: {{ $.Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -190,6 +190,8 @@ tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
topologySpreadConstraints: []
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
## ingress for EMQX Dashboard
|
## ingress for EMQX Dashboard
|
||||||
dashboard:
|
dashboard:
|
||||||
|
|
Loading…
Reference in New Issue