Skip to content

Commit 335bd1a

Browse files
authored
Merge pull request #8 from parca-dev/2.0.1
OTLP and custom store address support
2 parents c7187a8 + b748e73 commit 335bd1a

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

charts/parca/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ helm repo add parca https://parca-dev.github.io/helm-charts
4444
| Key | Type | Default | Description |
4545
|-----|------|---------|-------------|
4646
| agent.enabled | bool | `true` | Allows disabling parca agent |
47+
| agent.extraEnv | list | `[]` | Additional container environment variables for agent |
4748
| agent.image.pullPolicy | string | `"IfNotPresent"` | Overrides pullpolicy |
4849
| agent.image.repository | string | `"ghcr.io/parca-dev/parca-agent"` | Overrides the image repository |
4950
| agent.image.tag | string | `"v0.9.0"` | Overrides the image tag |
@@ -59,6 +60,7 @@ helm repo add parca https://parca-dev.github.io/helm-charts
5960
| agent.serviceMonitor.enabled | bool | `false` | enables prometheus servicemonitor for agent |
6061
| agent.serviceMonitor.jobLabel | string | `"parca-agent"` | |
6162
| agent.socketPath | string | `""` | Path to host docker/containerd/crio socket |
63+
| agent.storeAddress | string | `""` | Address of parca server to send profiles. If not defined, will be generated based on deployment settings. |
6264
| agent.tolerations | list | `[{"effect":"NoSchedule","operator":"Exists"},{"effect":"NoExecute","operator":"Exists"}]` | node tolerations for scheduling agent pods |
6365
| fullnameOverride | string | `""` | Overrides helm-generated chart fullname |
6466
| imagePullSecrets | list | `[]` | specifies pull secrets for image repository |
@@ -72,11 +74,13 @@ helm repo add parca https://parca-dev.github.io/helm-charts
7274
| nameOverride | string | `""` | overrides chart name |
7375
| server.config | object | `{"debug_info":{"bucket":{"config":{"directory":"./tmp"},"type":"FILESYSTEM"},"cache":{"config":{"directory":"./tmp"},"type":"FILESYSTEM"}}}` | parca server config block |
7476
| server.corsAllowedOrigins | string | `"*"` | CORS setting |
77+
| server.extraEnv | list | `[]` | additional container environment variables for server |
7578
| server.image.pullPolicy | string | `"IfNotPresent"` | Overrides pull policy for server |
7679
| server.image.repository | string | `"ghcr.io/parca-dev/parca"` | Overrides the image repository for server |
7780
| server.image.tag | string | `"v0.12.0"` | Overrides the image tag for server |
7881
| server.logLevel | string | `"info"` | logging level of parca server |
7982
| server.nodeSelector | object | `{}` | node selector for scheduling server pod |
83+
| server.otlpAddress | string | `""` | OpenTelemetry collector address to send traces to |
8084
| server.podAnnotations | object | `{}` | additional annotations for server pod |
8185
| server.podSecurityContext | object | `{}` | additional security context for server pod |
8286
| server.resources | object | `{}` | resource limits and requests for server pod |

charts/parca/templates/agent-daemonset.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ spec:
3737
- --log-level={{ .Values.agent.logLevel }}
3838
- --node=$(NODE_NAME)
3939
- --kubernetes
40+
{{- if .Values.agent.storeAddress }}
41+
- --store-address={{ .Values.agent.storeAddress }}
42+
{{- else }}
4043
- --store-address={{ include "parca.fullname" . }}-server.{{ .Release.Namespace }}.svc.cluster.local:7070
44+
{{- end }}
4145
- --insecure
4246
- --insecure-skip-verify
4347
- --temp-dir=/tmp
@@ -56,6 +60,10 @@ spec:
5660
- containerPort: 7071
5761
hostPort: 7071
5862
name: http
63+
env:
64+
{{- with .Values.agent.extraEnv }}
65+
{{- toYaml . | nindent 12 }}
66+
{{- end }}
5967
volumeMounts:
6068
- mountPath: /tmp
6169
name: tmp

charts/parca/templates/server-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ spec:
4242
- --cors-allowed-origins={{ .Values.server.corsAllowedOrigins }}
4343
# Multiply by 1, so large integers aren't rendered in scientific notation
4444
- --storage-active-memory={{ mul .Values.server.storageActiveMemory 1 }}
45+
{{- if .Values.server.otlpAddress }}
46+
- --otlp-address={{ .Values.server.otlpAddress }}
47+
{{- end }}
4548
livenessProbe:
4649
exec:
4750
command:
@@ -59,6 +62,10 @@ spec:
5962
- -v
6063
- -addr=:7070
6164
initialDelaySeconds: 10
65+
env:
66+
{{- with .Values.server.extraEnv }}
67+
{{- toYaml . | nindent 12 }}
68+
{{- end }}
6269
volumeMounts:
6370
- mountPath: /var/parca
6471
name: {{ include "parca.fullname" . }}-server-config

charts/parca/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ agent:
2121
logLevel: info
2222
# -- label selector for filtering out pods with pprof, ie "parca=enabled"
2323
podLabelSelector: ""
24+
# -- Additional container environment variables for agent
25+
extraEnv: []
26+
# -- Address of parca server to send profiles. If not defined, will be generated based on deployment settings.
27+
storeAddress: ""
2428
# -- Additional annotations for pods
2529
podAnnotations: {}
2630
# -- Additional pod secutiry context
@@ -63,6 +67,10 @@ server:
6367
corsAllowedOrigins: "*"
6468
# -- Active memory dedicated for storage. 512MB my default
6569
storageActiveMemory: 536870912
70+
# -- OpenTelemetry collector address to send traces to
71+
otlpAddress: ""
72+
# -- additional container environment variables for server
73+
extraEnv: []
6674
# -- parca server config block
6775
config:
6876
debug_info:

0 commit comments

Comments
 (0)