From e3a7314fd4866383034c1d5460e0ae7e6e406244 Mon Sep 17 00:00:00 2001 From: George Farias Date: Wed, 24 Apr 2024 04:35:39 -0300 Subject: [PATCH] Add priorityclassname Support (#779) * add-priorityclassname-support * Fixed Readme and Values * Fix indentation --------- Co-authored-by: Mario Macias --- deployments/helm/README.md | 1 + deployments/helm/templates/daemon-set.yml | 3 +++ deployments/helm/values.yaml | 8 ++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/deployments/helm/README.md b/deployments/helm/README.md index 39c353b19..ef4d9b297 100644 --- a/deployments/helm/README.md +++ b/deployments/helm/README.md @@ -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. | diff --git a/deployments/helm/templates/daemon-set.yml b/deployments/helm/templates/daemon-set.yml index 98a92861e..f2e013a91 100644 --- a/deployments/helm/templates/daemon-set.yml +++ b/deployments/helm/templates/daemon-set.yml @@ -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" . }} diff --git a/deployments/helm/values.yaml b/deployments/helm/values.yaml index dbab3bc5f..8dfa4ead0 100644 --- a/deployments/helm/values.yaml +++ b/deployments/helm/values.yaml @@ -42,7 +42,7 @@ rbac: extraClusterRoleRules: [] # - apiGroups: [] # resources: [] - + serviceAccount: # -- Specifies whether a service account should be created create: true @@ -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/ @@ -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: