Skip to content

Commit

Permalink
feat: metrics disable service in case of pod monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantin.sidorenko.ext committed Sep 29, 2023
1 parent fa48686 commit 4bd2b17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/camunda-bpm-platform/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
{{- include "camunda-bpm-platform.selectorLabels" . | nindent 4 }}
{{- end }}
---
{{- if .Values.metrics.enabled }}
{{- if and .Values.metrics.enabled .Values.metrics.service.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down
16 changes: 11 additions & 5 deletions charts/camunda-bpm-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ service:
metrics:
enabled: false
service:
enabled: true
port: 9404
portName: metrics
protocol: TCP
Expand Down Expand Up @@ -115,7 +116,8 @@ livenessProbe:

ingress:
enabled: false
annotations: {}
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
Expand All @@ -136,15 +138,17 @@ podAnnotations: {}
podSecurityContext:
fsGroup: 1000

securityContext: {}
securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

resources: {}
resources:
{}
# If you do want to specify resources, uncomment the following lines,
# adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
Expand All @@ -154,11 +158,13 @@ resources: {}
# cpu: 100m
# memory: 128Mi

extraVolumeMounts: []
extraVolumeMounts:
[]
# - name: dummy-volume
# mountPath: /dummy/volume

extraVolumes: []
extraVolumes:
[]
# - name: dummy-volume
# hostPath:
# path: /tmp/dummy-volume
Expand Down

0 comments on commit 4bd2b17

Please sign in to comment.