Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hubblo-org/scaphandre into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetit committed Dec 12, 2021
2 parents 2b0742d + df3b6d7 commit 4359e1d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs_src/tutorials/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ Scaphandre, Prometheus and Grafana.
## Install Scaphandre

First we install Scaphandre which runs as a daemon set which creates a pod on
each node for collecting the metrics.
each node for collecting the metrics. The helm chart is not in a repo, it needs
to be installed from the source code.

git clone https://github.com/hubblo-org/scaphandre
cd scaphandre
helm install scaphandre helm/scaphandre

## Install Prometheus
Expand Down
12 changes: 12 additions & 0 deletions helm/scaphandre/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ spec:
- name: {{ template "scaphandre.name" . }}
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
args:
{{- range $key, $value := .Values.scaphandre.args }}
{{- if $value }}
- --{{ $key }}={{ $value }}
{{- else }}
- --{{ $key }}
{{- end }}
{{- end }}
- {{ .Values.scaphandre.command }}
{{- range $key, $value := .Values.scaphandre.extraArgs }}
{{- if $value }}
Expand All @@ -28,6 +35,11 @@ spec:
- --{{ $key }}
{{- end }}
{{- end }}
env:
{{- if .Values.scaphandre.rustBacktrace }}
- name: RUST_BACKTRACE
value: '{{ .Values.scaphandre.rustBacktrace }}'
{{- end }}
ports:
- name: metrics
containerPort: {{ .Values.port }}
Expand Down
2 changes: 2 additions & 0 deletions helm/scaphandre/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ resources:

scaphandre:
command: prometheus
args: {}
extraArgs:
containers: true
# rustBacktrace: '1'

# Run as root user to get proper permissions
userID: 0
Expand Down

0 comments on commit 4359e1d

Please sign in to comment.