Skip to content

Commit

Permalink
add-priorityclassname-support
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesouzafarias committed Apr 23, 2024
1 parent 1455880 commit 080d449
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions deployments/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ 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 |
| updateStrategy.type | string | `"RollingUpdate"` | update strategy type |
| volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. |
| volumes | list | `[]` | Additional volumes on the output daemonset definition. |

5 changes: 4 additions & 1 deletion deployments/helm/templates/daemon-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
privileged: true
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
ports:
- containerPort: {{ .Values.service.targetPort }}
protocol: TCP
Expand All @@ -57,7 +60,7 @@ spec:
valueFrom:
{{- tpl (toYaml $value) $ | nindent 16 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
6 changes: 4 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,8 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000

priorityClassName: ""

## -- 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 +176,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 080d449

Please sign in to comment.