Skip to content

Commit

Permalink
Merge pull request #3 from parca-dev/0.12.0
Browse files Browse the repository at this point in the history
0.12.0 release
  • Loading branch information
rlex authored Jul 19, 2022
2 parents b2756c0 + 40f6a35 commit c7187a8
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
fi
- name: Run chart-testing (lint)
run: ct lint --check-version-increment=false --chart-repos bitnami=https://charts.bitnami.com/bitnami --validate-maintainers=false --validate-yaml=false
run: ct lint --check-version-increment=false --validate-maintainers=false --validate-yaml=false

- name: Create kind cluster
uses: helm/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions charts/parca/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.6.2
version: 2.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.11.1"
appVersion: "v0.12.0"
18 changes: 13 additions & 5 deletions charts/parca/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# parca

![Version: 1.6.1](https://img.shields.io/badge/Version-1.6.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.11.1](https://img.shields.io/badge/AppVersion-v0.11.1-informational?style=flat-square)
![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.0](https://img.shields.io/badge/AppVersion-v0.12.0-informational?style=flat-square)

Open Source Infrastructure-wide continuous profiling

## Source Code

* <https://github.com/parca-dev/helm-charts>

### Changes

#### 2.0.0
In chart version 2.0.0, following things has changed:

* agent.socketPath is now unset by default. If you need custom path to CRI socket (ie for k3s it is /run/containerd/containerd.sock) you will need to specify it manually now.
* server.retentionTime has been removed from parca, use server.storageActiveMemory instead

### Usage

Please consult [official docs](https://www.parca.dev/docs/overview) on usage.
Expand Down Expand Up @@ -38,7 +46,7 @@ helm repo add parca https://parca-dev.github.io/helm-charts
| agent.enabled | bool | `true` | Allows disabling parca agent |
| agent.image.pullPolicy | string | `"IfNotPresent"` | Overrides pullpolicy |
| agent.image.repository | string | `"ghcr.io/parca-dev/parca-agent"` | Overrides the image repository |
| agent.image.tag | string | `"v0.8.0"` | Overrides the image tag |
| agent.image.tag | string | `"v0.9.0"` | Overrides the image tag |
| agent.logLevel | string | `"info"` | Agent log level |
| agent.nodeSelector | object | `{}` | node selector for scheduling agent pods |
| agent.podAnnotations | object | `{}` | Additional annotations for pods |
Expand All @@ -50,7 +58,7 @@ helm repo add parca https://parca-dev.github.io/helm-charts
| agent.service.type | string | `"ClusterIP"` | service type for agent |
| agent.serviceMonitor.enabled | bool | `false` | enables prometheus servicemonitor for agent |
| agent.serviceMonitor.jobLabel | string | `"parca-agent"` | |
| agent.socketPath | string | `"/run/containerd/containerd.sock"` | Path to host docker/containerd/crio socket |
| agent.socketPath | string | `""` | Path to host docker/containerd/crio socket |
| agent.tolerations | list | `[{"effect":"NoSchedule","operator":"Exists"},{"effect":"NoExecute","operator":"Exists"}]` | node tolerations for scheduling agent pods |
| fullnameOverride | string | `""` | Overrides helm-generated chart fullname |
| imagePullSecrets | list | `[]` | specifies pull secrets for image repository |
Expand All @@ -66,19 +74,19 @@ helm repo add parca https://parca-dev.github.io/helm-charts
| server.corsAllowedOrigins | string | `"*"` | CORS setting |
| server.image.pullPolicy | string | `"IfNotPresent"` | Overrides pull policy for server |
| server.image.repository | string | `"ghcr.io/parca-dev/parca"` | Overrides the image repository for server |
| server.image.tag | string | `"v0.11.1"` | Overrides the image tag for server |
| server.image.tag | string | `"v0.12.0"` | Overrides the image tag for server |
| server.logLevel | string | `"info"` | logging level of parca server |
| server.nodeSelector | object | `{}` | node selector for scheduling server pod |
| server.podAnnotations | object | `{}` | additional annotations for server pod |
| server.podSecurityContext | object | `{}` | additional security context for server pod |
| server.resources | object | `{}` | resource limits and requests for server pod |
| server.retentionTime | string | `"6h"` | Sets retention period for server TSDB |
| server.scrapeConfigs | list | `[{"job_name":"kubernetes-pods","kubernetes_sd_configs":[{"role":"pod"}],"relabel_configs":[{"action":"keep","regex":true,"source_labels":["__meta_kubernetes_pod_annotation_parca_dev_scrape"]},{"action":"replace","regex":"(.+)","source_labels":["__meta_kubernetes_pod_annotation_parca_dev_path"],"target_label":"__metrics_path__"},{"action":"replace","regex":"([^:]+)(?::\\d+)?;(\\d+)","replacement":"$1:$2","source_labels":["__address__","__meta_kubernetes_pod_annotation_parca_dev_port"],"target_label":"__address__"},{"action":"labelmap","regex":"__meta_kubernetes_pod_label_(.+)"},{"action":"replace","source_labels":["__meta_kubernetes_namespace"],"target_label":"kubernetes_namespace"},{"action":"replace","source_labels":["__meta_kubernetes_pod_name"],"target_label":"kubernetes_pod_name"}],"scrape_interval":"1m","scrape_timeout":"10s"}]` | scrape configs for parca server |
| server.securityContext | object | `{}` | additional security context for server |
| server.service.port | int | `7070` | service port for server |
| server.service.type | string | `"ClusterIP"` | service type for server |
| server.serviceMonitor.enabled | bool | `false` | enables servicemonitor for server monitoring |
| server.serviceMonitor.jobLabel | string | `"parca-server"` | |
| server.storageActiveMemory | int | `536870912` | Active memory dedicated for storage. 512MB my default |
| server.tolerations | object | `{}` | tolerations for scheduling server pod |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
Expand Down
8 changes: 8 additions & 0 deletions charts/parca/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

{{ template "chart.requirementsSection" . }}

### Changes

#### 2.0.0
In chart version 2.0.0, following things has changed:

* agent.socketPath is now unset by default. If you need custom path to CRI socket (ie for k3s it is /run/containerd/containerd.sock) you will need to specify it manually now.
* server.retentionTime has been removed from parca, use server.storageActiveMemory instead

### Usage

Please consult [official docs](https://www.parca.dev/docs/overview) on usage.
Expand Down
4 changes: 4 additions & 0 deletions charts/parca/ci/k3s-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#chart-testing is using k3s for testing.
#we need to overwrite path to socket for it to work
agent:
socketPath: /run/containerd/containerd.sock
2 changes: 2 additions & 0 deletions charts/parca/templates/agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ spec:
- --insecure
- --insecure-skip-verify
- --temp-dir=/tmp
{{- if .Values.agent.socketPath }}
- --socket-path={{ .Values.agent.socketPath }}
{{- end }}
{{- if .Values.agent.podLabelSelector }}
- --pod-label-selector={{ .Values.agent.podLabelSelector }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion charts/parca/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ spec:
- --config-path=/var/parca/parca.yaml
- --log-level={{ .Values.server.logLevel }}
- --cors-allowed-origins={{ .Values.server.corsAllowedOrigins }}
- --storage-tsdb-retention-time={{ .Values.server.retentionTime }}
# Multiply by 1, so large integers aren't rendered in scientific notation
- --storage-active-memory={{ mul .Values.server.storageActiveMemory 1 }}
livenessProbe:
exec:
command:
Expand Down
10 changes: 5 additions & 5 deletions charts/parca/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ agent:
# -- Overrides pullpolicy
pullPolicy: IfNotPresent
# -- Overrides the image tag
tag: "v0.8.0"
tag: "v0.9.0"
# -- Path to host docker/containerd/crio socket
socketPath: /run/containerd/containerd.sock
socketPath: ""
# -- Agent log level
logLevel: info
# -- label selector for filtering out pods with pprof, ie "parca=enabled"
Expand Down Expand Up @@ -56,13 +56,13 @@ server:
# -- Overrides pull policy for server
pullPolicy: IfNotPresent
# -- Overrides the image tag for server
tag: "v0.11.1"
# -- Sets retention period for server TSDB
retentionTime: 6h
tag: "v0.12.0"
# -- logging level of parca server
logLevel: info
# -- CORS setting
corsAllowedOrigins: "*"
# -- Active memory dedicated for storage. 512MB my default
storageActiveMemory: 536870912
# -- parca server config block
config:
debug_info:
Expand Down

0 comments on commit c7187a8

Please sign in to comment.