Skip to content

Commit

Permalink
feat(beyla): configure namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Jan 19, 2024
1 parent 37aaf39 commit b52af33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ data:
# let's instrument only Grafana
discovery:
services:
- k8s_pod_name: "^grafana-0$"
- k8s_namespace: observability
- k8s_pod_name: grafana-0
# # Instrument any process using the ports from 8080 to 8089
# - open_ports: 8080-8089
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,18 @@ spec:
spec:
serviceAccountName: beyla
hostPID: true # mandatory!
# hostNetwork: true
# hostIPC: true
# dnsPolicy: ClusterFirstWithHostNet
{{- if .Values.beyla.image.pullSecrets }}
imagePullSecrets:
{{- toYaml .Values.beyla.image.pullSecrets | nindent 8 }}
{{- end }}
containers:
- name: beyla
image: "{{ .Values.beyla.image.repository }}:{{ .Values.beyla.image.tag }}"
# command: ["/beyla", "--config=/config/beyla-config.yml"]
env:
# - name: BEYLA_SYSTEM_WIDE
# value: "true"
- name: BEYLA_CONFIG_PATH
value: "/config/beyla-config.yml"
# - name: BEYLA_DISCOVERY_POLL_INTERVAL
# value: "500ms"
# - name: BEYLA_METRICS_INTERVAL
# value: "10ms"
# - name: BEYLA_BPF_BATCH_TIMEOUT
# value: "10ms"
# - name: BEYLA_METRICS_REPORT_TARGET
# value: "true"
# - name: BEYLA_METRICS_REPORT_PEER
# value: "true"
ports:
- name: metrics
containerPort: 8080
Expand All @@ -68,7 +54,7 @@ spec:
{{- end }}
securityContext:
runAsUser: 0
privileged: true
privileged: true # mandatory!
volumeMounts:
- mountPath: /config
name: beyla-config
Expand Down

0 comments on commit b52af33

Please sign in to comment.