Skip to content

Commit

Permalink
Merge pull request #22 from rafaeljesus/feature/server-service-annota…
Browse files Browse the repository at this point in the history
…tions

ability to specify additional server service annotations
  • Loading branch information
brancz authored Nov 10, 2022
2 parents 19277e7 + d7952d4 commit 31ff5ee
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/parca/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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: 2.3.0
version: 2.3.1

# 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
Expand Down
7 changes: 6 additions & 1 deletion charts/parca/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# parca

![Version: 2.3.0](https://img.shields.io/badge/Version-2.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.13.0](https://img.shields.io/badge/AppVersion-v0.13.0-informational?style=flat-square)
![Version: 2.3.1](https://img.shields.io/badge/Version-2.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.13.0](https://img.shields.io/badge/AppVersion-v0.13.0-informational?style=flat-square)

Open Source Infrastructure-wide continuous profiling

Expand All @@ -10,6 +10,10 @@ Open Source Infrastructure-wide continuous profiling

### Changes

#### 2.3.1
In the chart version 2.3.1, the following has changed:
the _server.service.annotations_ is now available, so the parca server service manifest can have additional annotations.

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

Expand Down Expand Up @@ -89,6 +93,7 @@ helm repo add parca https://parca-dev.github.io/helm-charts
| server.resources | object | `{}` | resource limits and requests for server pod |
| 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.annotations | object | `{}` | annotations to be added for the server service |
| 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 |
Expand Down
4 changes: 4 additions & 0 deletions charts/parca/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

### Changes

#### 2.3.1
In the chart version 2.3.1, the following has changed:
the _server.service.annotations_ is now available, so the parca server service manifest can have additional annotations.

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

Expand Down
4 changes: 4 additions & 0 deletions charts/parca/templates/server-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: {{ include "parca.fullname" . }}-server
labels:
{{- include "parca.labels.server" . | nindent 4 }}
{{- with .Values.server.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.server.service.type }}
ports:
Expand Down
2 changes: 2 additions & 0 deletions charts/parca/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ server:
type: ClusterIP
# -- service port for server
port: 7070
# -- annotations to be added for the server service
annotations: {}
serviceMonitor:
# -- enables servicemonitor for server monitoring
enabled: false
Expand Down

0 comments on commit 31ff5ee

Please sign in to comment.