Skip to content

Commit

Permalink
Update default values for statsd image
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi committed Oct 30, 2024
1 parent 4c08fa2 commit f553780
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,22 @@ spec:
automountServiceAccountToken: false
serviceAccountName: {{ .Values.wso2.apk.auth.serviceAccountName }}
containers:
{{if and .Values.wso2.apk.metrics.enabled .Values.wso2.apk.metrics.statsd }}
{{- if .Values.wso2.apk.metrics.enabled }}
{{- $statsd := .Values.wso2.apk.metrics.statsd | default (dict "image" (dict "repository" "prom/statsd-exporter" "tag" "v0.26.0") "imagePullPolicy" "IfNotPresent" "resources" (dict "limits" (dict "cpu" "2m" "memory" "128Mi") "requests" (dict "cpu" "0.1m" "memory" "64Mi"))) }}
- name: statsd
image: {{ .Values.wso2.apk.metrics.statsd.image.repository }}:{{ .Values.wso2.apk.metrics.statsd.image.tag }}
imagePullPolicy: {{ .Values.wso2.apk.metrics.statsd.imagePullPolicy }}
image: "{{ $statsd.image.repository }}:{{ $statsd.image.tag }}"
imagePullPolicy: "{{ $statsd.imagePullPolicy }}"
resources:
limits:
memory: "{{ $statsd.resources.limits.memory }}"
cpu: "{{ $statsd.resources.limits.cpu }}"
requests:
memory: "{{ $statsd.resources.requests.memory }}"
cpu: "{{ $statsd.resources.requests.cpu }}"
ports:
- name: statsd-metrics
containerPort: 9102
{{ end }}
{{- end }}
- name: ratelimiter
image: {{ .Values.wso2.apk.dp.ratelimiter.deployment.image }}
imagePullPolicy: {{ .Values.wso2.apk.dp.ratelimiter.deployment.imagePullPolicy }}
Expand Down

0 comments on commit f553780

Please sign in to comment.