Skip to content

Commit

Permalink
Upgrade helmchart for signoz (#46)
Browse files Browse the repository at this point in the history
* Upgrade helmchart for signoz to 0.55.1
  • Loading branch information
BryanFauble authored Nov 6, 2024
1 parent ae8eacb commit fc53860
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 39 deletions.
4 changes: 2 additions & 2 deletions modules/signoz/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "kubernetes_namespace" "signoz" {

resource "kubectl_manifest" "signoz-deployment" {
depends_on = [kubernetes_namespace.signoz]

yaml_body = <<YAML
apiVersion: argoproj.io/v1alpha1
kind: Application
Expand All @@ -27,7 +27,7 @@ spec:
sources:
- repoURL: 'https://charts.signoz.io'
chart: signoz
targetRevision: 0.50.0
targetRevision: 0.55.1
helm:
releaseName: signoz
# Extra parameters to set (same as setting through values.yaml, but these take precedence)
Expand Down
113 changes: 76 additions & 37 deletions modules/signoz/templates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ queryService:
image:
registry: docker.io
repository: signoz/query-service
tag: 0.52.0
tag: 0.57.0
pullPolicy: IfNotPresent

# -- Image Registry Secret Names for Query-Service
Expand Down Expand Up @@ -642,12 +642,11 @@ queryService:
internalNodePort: null

# -- Query-Service annotations
annotations:
"helm.sh/hook-weight": "2"
annotations: {}

# -- Query-Service additional arguments for command line
additionalArgs: []
# - --prefer-delta=true
additionalArgs:
- --use-logs-new-schema=true

# -- Additional environments to set for queryService
additionalEnvs: {}
Expand Down Expand Up @@ -833,7 +832,7 @@ frontend:
image:
registry: docker.io
repository: signoz/frontend
tag: 0.52.0
tag: 0.57.0
pullPolicy: IfNotPresent

# -- Image Registry Secret Names for Frontend
Expand Down Expand Up @@ -922,8 +921,8 @@ frontend:
configVars: {}

# -- Frontend deployment annotations
annotations:
"helm.sh/hook-weight": "5"
annotations: {}

# -- Frontend pod security context
podSecurityContext: {}
# fsGroup: 2000
Expand Down Expand Up @@ -999,7 +998,7 @@ alertmanager:
repository: signoz/alertmanager
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: 0.23.5
tag: 0.23.7

# -- Image Registry Secret Names for Alertmanager
# If set, this has higher precedence than the root level or global value of imagePullSecrets.
Expand Down Expand Up @@ -1149,8 +1148,7 @@ alertmanager:
topologySpreadConstraints: []

statefulSet:
annotations:
"helm.sh/hook-weight": "4"
annotations: {}

podAnnotations: {}
podLabels: {}
Expand Down Expand Up @@ -1277,13 +1275,18 @@ schemaMigrator:
image:
registry: docker.io
repository: signoz/signoz-schema-migrator
tag: 0.102.4
tag: 0.111.5
pullPolicy: IfNotPresent

args: {}
annotations:
"helm.sh/hook-weight": "1"
"helm.sh/hook-delete-policy": "before-hook-creation"
args:
- "--up="
# For usual Helm installs, we don't need any additional annotations.
# As well as for Helm upgrade (with upgradeHelmHooks to true), we automatically include the required pre-upgrade helm hooks.
# For ArgoCD, since every upgrade is an install, we need to automatically include the relevant ArgoCD hooks using upgradeHelmHooks.
annotations: {}
# In Helm, this is needed to apply helm hooks for pre-upgrade, delete policy and hook weight.
# For ArgoCD, this is needed to apply the sync wave - ArgoCD equivalent of hook weight.
upgradeHelmHooks: true

# -- Whether to enable replication for schemaMigrator
enableReplication: true
Expand All @@ -1298,12 +1301,6 @@ schemaMigrator:
topologySpreadConstraints: []

initContainers:
wait:
image:
registry: docker.io
repository: groundnuty/k8s-wait-for
tag: v2.0
pullPolicy: IfNotPresent
init:
enabled: true
image:
Expand Down Expand Up @@ -1386,14 +1383,57 @@ schemaMigrator:
# limits:
# cpu: 100m
# memory: 100Mi
wait:
enabled: true
image:
registry: docker.io
repository: groundnuty/k8s-wait-for
tag: v2.0
pullPolicy: IfNotPresent
env: []

# SchemaMigrator Service Account
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name:

# SchemaMigrator RBAC config
role:
# -- Specifies whether a clusterRole should be created
create: true
# -- Annotations to add to the clusterRole
annotations: {}
# -- The name of the clusterRole to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
# -- A set of rules as documented here.
# ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/
# @default -- See `values.yaml` for defaults
rules:
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["get", "list", "watch"]

# SchemaMigrator clusterRoleBinding
roleBinding:
# Annotations to add to the clusterRoleBinding
annotations: {}
# The name of the clusterRoleBinding to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

# Default values for OtelCollector
otelCollector:
name: "otel-collector"
image:
registry: docker.io
repository: signoz/signoz-otel-collector
tag: 0.102.4
tag: 0.111.5
pullPolicy: IfNotPresent

# -- Image Registry Secret Names for OtelCollector
Expand Down Expand Up @@ -1453,8 +1493,7 @@ otelCollector:
type: ClusterIP

# -- OtelCollector Deployment annotation.
annotations:
"helm.sh/hook-weight": "3"
annotations: {}
# -- OtelCollector pod(s) annotation.
podAnnotations:
signoz.io/scrape: 'true'
Expand All @@ -1473,7 +1512,7 @@ otelCollector:
lowCardinalityExceptionGrouping: false

minReadySeconds: 5
progressDeadlineSeconds: 120
progressDeadlineSeconds: 600
replicaCount: 2

# OtelCollector RBAC config
Expand Down Expand Up @@ -1767,6 +1806,7 @@ otelCollector:

autoscalingTemplate: []
keda:
annotations:
enabled: false
pollingInterval: "30" # check 30sec periodically for metrics data
cooldownPeriod: "300" # once the load decreased, it will wait for 5 min and downscale
Expand Down Expand Up @@ -1978,16 +2018,17 @@ otelCollector:
endpoint: localhost:1777
exporters:
clickhousetraces:
datasource: tcp://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/${CLICKHOUSE_TRACE_DATABASE}
low_cardinal_exception_grouping: ${LOW_CARDINAL_EXCEPTION_GROUPING}
datasource: tcp://${env:CLICKHOUSE_USER}:${env:CLICKHOUSE_PASSWORD}@${env:CLICKHOUSE_HOST}:${env:CLICKHOUSE_PORT}/${env:CLICKHOUSE_TRACE_DATABASE}
low_cardinal_exception_grouping: ${env:LOW_CARDINAL_EXCEPTION_GROUPING}
clickhousemetricswrite:
endpoint: tcp://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/${CLICKHOUSE_DATABASE}
endpoint: tcp://${env:CLICKHOUSE_USER}:${env:CLICKHOUSE_PASSWORD}@${env:CLICKHOUSE_HOST}:${env:CLICKHOUSE_PORT}/${env:CLICKHOUSE_DATABASE}
timeout: 15s
resource_to_telemetry_conversion:
enabled: true
clickhouselogsexporter:
dsn: tcp://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/${CLICKHOUSE_LOG_DATABASE}
dsn: tcp://${env:CLICKHOUSE_USER}:${env:CLICKHOUSE_PASSWORD}@${env:CLICKHOUSE_HOST}:${env:CLICKHOUSE_PORT}/${env:CLICKHOUSE_LOG_DATABASE}
timeout: 10s
use_new_schema: true
prometheus:
endpoint: 0.0.0.0:8889
service:
Expand Down Expand Up @@ -2022,7 +2063,7 @@ otelCollectorMetrics:
image:
registry: docker.io
repository: signoz/signoz-otel-collector
tag: 0.102.4
tag: 0.111.5
pullPolicy: IfNotPresent

# -- Image Registry Secret Names for OtelCollector
Expand Down Expand Up @@ -2061,8 +2102,7 @@ otelCollectorMetrics:
type: ClusterIP

# -- OtelCollectorMetrics Deployment annotation.
annotations:
"helm.sh/hook-weight": "3"
annotations: {}
# -- OtelCollectorMetrics pod(s) annotation.
podAnnotations:
signoz.io/scrape: 'true'
Expand All @@ -2084,7 +2124,7 @@ otelCollectorMetrics:
# runAsUser: 1000

minReadySeconds: 5
progressDeadlineSeconds: 120
progressDeadlineSeconds: 600
replicaCount: 1

initContainers:
Expand Down Expand Up @@ -2375,9 +2415,9 @@ otelCollectorMetrics:
exporters:
clickhousemetricswrite:
timeout: 15s
endpoint: tcp://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/${CLICKHOUSE_DATABASE}
endpoint: tcp://${env:CLICKHOUSE_USER}:${env:CLICKHOUSE_PASSWORD}@${env:CLICKHOUSE_HOST}:${env:CLICKHOUSE_PORT}/${env:CLICKHOUSE_DATABASE}
clickhousemetricswrite/hostmetrics:
endpoint: tcp://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/${CLICKHOUSE_DATABASE}
endpoint: tcp://${env:CLICKHOUSE_USER}:${env:CLICKHOUSE_PASSWORD}@${env:CLICKHOUSE_HOST}:${env:CLICKHOUSE_PORT}/${env:CLICKHOUSE_DATABASE}
resource_to_telemetry_conversion:
enabled: true
service:
Expand All @@ -2395,4 +2435,3 @@ otelCollectorMetrics:

signoz-otel-gateway:
enabled: false

0 comments on commit fc53860

Please sign in to comment.