Skip to content

Commit

Permalink
Add priorityclassname Support (#779)
Browse files Browse the repository at this point in the history
* add-priorityclassname-support

* Fixed Readme and Values

* Fix indentation

---------

Co-authored-by: Mario Macias <mario.macias@grafana.com>
  • Loading branch information
georgesouzafarias and mariomac authored Apr 24, 2024
1 parent 0f4c5cf commit e3a7314
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions deployments/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ eBPF-based autoinstrumentation of HTTP and HTTPS services
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | `[]` | Tolerations allow pods to be scheduled on nodes with specific taints |
| updateStrategy.type | string | `"RollingUpdate"` | update strategy type |
| priorityClassName | string|`""` | priorityClassName for pods |
| volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. |
| volumes | list | `[]` | Additional volumes on the output daemonset definition. |

3 changes: 3 additions & 0 deletions deployments/helm/templates/daemon-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
{{- if or (eq .Values.preset "network") .Values.config.data.network }}
hostNetwork: true
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
containers:
- name: beyla
image: {{ .Values.global.image.registry | default .Values.image.registry }}/{{ .Values.image.repository }}{{ include "beyla.imageId" . }}
Expand Down
8 changes: 6 additions & 2 deletions deployments/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rbac:
extraClusterRoleRules: []
# - apiGroups: []
# resources: []

serviceAccount:
# -- Specifies whether a service account should be created
create: true
Expand All @@ -67,6 +67,10 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000

priorityClassName: ""
# system-node-critical
# system-cluster-critical

## -- Expose the beyla internal metrics service to be accessed from outside the cluster (LoadBalancer service).
## or access it from within the cluster (ClusterIP service). Set the service type and the port to serve it.
## ref: http://kubernetes.io/docs/user-guide/services/
Expand Down Expand Up @@ -174,7 +178,7 @@ config:
# grafana:
# otlp:
# cloud_zone: prod-eu-west-0
# cloud_instance_id: 123456
# cloud_instance_id: 123456
# cloud_api_key:
attributes:
kubernetes:
Expand Down

0 comments on commit e3a7314

Please sign in to comment.