mirror of
https://github.com/helm/charts.git
synced 2026-08-22 05:48:09 +00:00
[stable/locust] Adding nodeselector and tolerance options (#13581)
* Adding nodeselector and tolerance options Signed-off-by: garland <garlandk@gmail.com> * Updating chart version Signed-off-by: garland <garlandk@gmail.com> * bump to minor version Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
c21ed83316
commit
a8279d3ce8
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
name: locust
|
||||
description: A modern load testing framework
|
||||
version: 1.0.0
|
||||
version: 1.1.0
|
||||
appVersion: 0.9.0
|
||||
maintainers:
|
||||
- name: so0k
|
||||
|
||||
@@ -36,9 +36,13 @@ helm install -n locust-nymph --set master.config.target-host=http://site.example
|
||||
| `service.annotations` | KV containing custom annotations | `{}` |
|
||||
| `service.extraLabels` | KV containing extra labels | `{}` |
|
||||
| `master.config.target-host` | locust target host | `http://site.example.com` |
|
||||
| `master.nodeSelector` | k8s nodeselector | `{}` |
|
||||
| `master.tolerations` | k8s tolerance | `{}` |
|
||||
| `worker.config.locust-script`| locust script to run | `/locust-tasks/tasks.py` |
|
||||
| `worker.config.configmapName`| configmap to mount locust scripts from | `empty, configmap is created from tasks folder in Chart` |
|
||||
| `worker.replicaCount` | Number of workers to run | `2` |
|
||||
| `worker.nodeSelector` | k8s nodeselector | `{}` |
|
||||
| `worker.tolerations` | k8s tolerance | `{}` |
|
||||
|
||||
Specify parameters using `--set key=value[,key=value]` argument to `helm install`
|
||||
|
||||
|
||||
@@ -69,3 +69,11 @@ spec:
|
||||
configMap:
|
||||
name: {{ template "locust.worker-configmap" . }}
|
||||
restartPolicy: Always
|
||||
{{- with .Values.master.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.master.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -52,3 +52,11 @@ spec:
|
||||
- name: "locust-tasks"
|
||||
configMap:
|
||||
name: {{ template "locust.worker-configmap" . }}
|
||||
{{- with .Values.worker.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.worker.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -24,6 +24,13 @@ master:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
nodeSelector: {}
|
||||
# kops.k8s.io/instancegroup: master
|
||||
tolerations: {}
|
||||
# - key: "application"
|
||||
# operator: "Equal"
|
||||
# value: "api"
|
||||
# effect: "NoSchedule"
|
||||
worker:
|
||||
config:
|
||||
|
||||
@@ -40,3 +47,10 @@ worker:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
nodeSelector: {}
|
||||
# kops.k8s.io/instancegroup: worker
|
||||
tolerations: {}
|
||||
# - key: "application"
|
||||
# operator: "Equal"
|
||||
# value: "api"
|
||||
# effect: "NoSchedule"
|
||||
|
||||
Reference in New Issue
Block a user