Skip to content

Commit

Permalink
Added priorityClassName to pod template and values file (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos1711 authored Jun 17, 2021
1 parent 3073fc6 commit ba17454
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/opentelemetry-collector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-collector
version: 0.5.6
version: 0.5.7
description: OpenTelemetry Collector Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
3 changes: 3 additions & 0 deletions charts/opentelemetry-collector/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ containers:
mountPath: /var/lib/docker/containers
readOnly: true
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
volumes:
- name: {{ .Chart.Name }}-configmap
configMap:
Expand Down
6 changes: 6 additions & 0 deletions charts/opentelemetry-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ nodeSelector: {}
tolerations: []
affinity: {}

# Allows for pod scheduler prioritisation
# Can be overridden here or for agentCollector and standaloneCollector independently.
priorityClassName: ""

extraEnvs: []
extraConfigMapMounts: []
extraHostPathMounts: []
Expand Down Expand Up @@ -170,6 +174,7 @@ agentCollector:
# nodeSelector: {}
# tolerations: []
# affinity: {}
# priorityClassName: ""

# The following option overrides can be used with host receiver
# extraEnvs:
Expand Down Expand Up @@ -227,6 +232,7 @@ standaloneCollector:
# nodeSelector: {}
# tolerations: []
# affinity: {}
# priorityClassName: ""
# ports: {}

service:
Expand Down

0 comments on commit ba17454

Please sign in to comment.