Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pod priority settings configurable in orchestra charts #63

Merged
merged 7 commits into from
Jul 16, 2020
2 changes: 1 addition & 1 deletion charts/crate/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: 'CrateDB chart'
name: crate
version: 0.1.8
version: 0.1.9
icon: https://crate.io/wp-content/themes/webflow/images/logo-crate.png
sources:
- https://github.com/crate/crate
Expand Down
2 changes: 2 additions & 0 deletions charts/crate/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ The following table lists the configurable parameters of the patroni chart and t
| `nodeSelector` | Crate Node labels for pod assignment | {} |
| `tolerations` | Toleration labels for Crate pod assignment | [] |
| `affinity` | Affinity settings for Crate pod assignment | {} |
| `priorityClassName` | If specified, indicates the pod's priority | `` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
Expand Down
3 changes: 3 additions & 0 deletions charts/crate/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds}}
initContainers:
- name: init-sysctl
Expand Down
2 changes: 1 addition & 1 deletion charts/datacollector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm chart to deploy streamsets data datacollector
name: datacollector
version: 0.1.7
version: 0.1.8
1 change: 1 addition & 0 deletions charts/datacollector/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Collector chart and their default values.
| `persistentVolume.annotations` | Annotations for Persistent Volume Claim` | `{}` |
| `persistentVolume.size` | Persistent Volume size | `4Gi` |
| `persistentVolume.storageClass` | Persistent Volume Storage Class | `default` |
| `priorityClassName` | If specified, indicates the pod's priority | `` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand Down
5 changes: 4 additions & 1 deletion charts/datacollector/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds}}
initContainers:
- name: init-datacollector-data
Expand Down Expand Up @@ -132,4 +135,4 @@ spec:
resources:
requests:
storage: "{{ .Values.persistence.size }}"
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion charts/iot-agent-manager/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm chart for IoT Agent Manager
name: iot-agent-manager
version: 0.1.3
version: 0.1.4
1 change: 1 addition & 0 deletions charts/iot-agent-manager/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ chart and their default values.
| `image.repository` | The image to pull | `fiware/iotagent-ul` |
| `image.tag` | The version of the image to pull | `1.9.0` |
| `image.pullPolicy` | The pull policy | `IfNotPresent` |
| `priorityClassName` | If specified, indicates the pod's priority | `` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand Down
5 changes: 4 additions & 1 deletion charts/iot-agent-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
app: {{ template "iot-agent-manager.name" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down Expand Up @@ -49,4 +52,4 @@ spec:
volumes:
- name: config
configMap:
name: {{ template "iot-agent-manager.fullname" . }}
name: {{ template "iot-agent-manager.fullname" . }}
2 changes: 1 addition & 1 deletion charts/iot-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm chart for NodeJS based IoT Agents
name: iot-agent
version: 0.1.6
version: 0.1.7
1 change: 1 addition & 0 deletions charts/iot-agent/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ chart and their default values.
| `service.defaultSubservice` | default subservice for the IoT Agent. If a device is being registered, and no subservice information comes with the device data, and no subservice information is configured for the given type, the default IoT agent subservice will be used instead. | '/' |
| `service.providerUrl` | URL to send in the Context Provider registration requests. Should represent the external IP of the deployed IoT Agent (the IP where the Context Broker will redirect the NGSI requests) | 'http://ul-iot-agent:4041' |
| `service.deviceRegistrationDuration` | duration of the registrations as Context Providers, in ISO 8601 standard format. | P1M |
| `priorityClassName` | If specified, indicates the pod's priority | `` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand Down
5 changes: 4 additions & 1 deletion charts/iot-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
component: "{{ .Values.service.agentType }}"
release: {{ .Release.Name }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{ if eq .Values.service.agentType "lwm2m" }}
hostAliases:
- ip: "100.122.0.5"
Expand Down Expand Up @@ -82,4 +85,4 @@ spec:
volumes:
- name: config
configMap:
name: {{ template "iot-agent.fullname" . }}
name: {{ template "iot-agent.fullname" . }}
2 changes: 1 addition & 1 deletion charts/nosqlclient/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "2.2.0"
description: A Helm chart to deploy nosql client
name: nosqlclient
version: 0.1.2
version: 0.1.3
1 change: 1 addition & 0 deletions charts/nosqlclient/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ NoSQL Client chart and their default values.
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `affinity` | Pod affinity. Passed through the `tpl` function and thus to be configured a string | `Hard node and soft zone anti-affinity`|
| `tolerations` | Node taints to tolerate | `[]` |
| `priorityClassName` | If specified, indicates the pod's priority | `` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand Down
3 changes: 3 additions & 0 deletions charts/nosqlclient/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
app.kubernetes.io/name: {{ include "nosqlclient.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
2 changes: 1 addition & 1 deletion charts/orion/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Orion Context Broker
name: orion
version: 0.1.4
version: 0.1.5
sources:
- https://github.com/telefonicaid/fiware-orion
maintainers:
Expand Down
1 change: 1 addition & 0 deletions charts/orion/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Orion Context Broker chart and their default values.
| `image.tag` | The version of the image to pull | `2.2.0` |
| `image.pullPolicy` | The pull policy | `IfNotPresent` |
| `resources` | Any resources you wish to assign to the pod | `{}` |
| `priorityClassName` | If specified, indicates the pod's priority | `` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand Down
4 changes: 4 additions & 0 deletions charts/orion/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
app: {{ template "orion.name" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}

initContainers:
- name: create-indexes
image: {{ .Values.mongo.image }}
Expand Down
4 changes: 2 additions & 2 deletions charts/quantumleap/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
description: A Helm chart for QuantumLeap
name: quantumleap
version: 0.1.10
version: 0.1.11
sources:
- https://github.com/smartsdk/ngsi-timeseries-api
maintainers:
- name: taliaga
email: [email protected]
email: [email protected]
3 changes: 2 additions & 1 deletion charts/quantumleap/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ The following table lists the configurable parameters of the patroni chart and t
| | | ` t2:` |
| | | ` backend: Crate` |
| | | `default-backend: Crate` |
| `priorityClassName` | If specified, indicates the pod's priority | `` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand All @@ -71,4 +72,4 @@ $ helm install --name my-release -f values.yaml oc/quantumleap

## Cleanup

To remove the spawned pods you can run a simple `helm delete <release-name>`.
To remove the spawned pods you can run a simple `helm delete <release-name>`.
3 changes: 3 additions & 0 deletions charts/quantumleap/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
app: {{ template "quantumleap.name" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- if .Values.init }}
initContainers:
- name: init-postgresql
Expand Down