Skip to content

Commit

Permalink
Change jmx-exporter and fix errors (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyoo2003 committed Feb 21, 2021
1 parent acd4480 commit a67e3af
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
10 changes: 6 additions & 4 deletions charts/digdag/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: digdag
description: A Helm chart for Digdag
type: application
version: 0.5.0
version: 0.5.1
appVersion: 0.10.0
dependencies:
- condition: postgresql-ha.enabled
Expand All @@ -26,13 +26,15 @@ annotations:
category: Workflow
# https://artifacthub.io/docs/topics/annotations/helm/
artifacthub.io/changes: |
- Upgrade Digdag application version
- Change prometheus jmx exporter image
- Fix job-migrator error
- Restore digdag replicaCount
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/images: |
- name: digdag
image: ghcr.io/skyoo2003/digdag:0.0.1
- name: wait-for-it
image: willwill/wait-for-it:latest
- name: jmx-prometheus-exporter
image: sscaling/jmx-prometheus-exporter:0.12.0
- name: prometheus-jmx-exporter
image: ghcr.io/skyoo2003/prometheus-jmx-exporter:0.0.1
artifacthub.io/license: MIT
2 changes: 1 addition & 1 deletion charts/digdag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The following table lists configurable parameters, their descriptions, and their
| image.pullPolicy | Image pull policy. | IfNotPresent |
| image.command | Image entrypoint. | nil |
| image.args | Image entrypoint's arguments. | ["server", "--config", "/digdag/config/digdag.properties"] |
| replicaCount | Number of Digdag replicas to deploy. | 3 |
| replicaCount | Number of Digdag replicas to deploy. | 2 |
| updateStrategy | Update strategy to deploy. See [link](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) for details. | {type: RollingUpdate} |
| terminationGracePeriodSeconds | Duration in seconds a Digdag pod needs to terminate gracefully. | 30 |
| shareProcessNamespace | Whether to share process namespace for pods | false |
Expand Down
6 changes: 3 additions & 3 deletions charts/digdag/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ spec:
{{- end }}
volumeMounts:
- name: jmx-exporter-config
mountPath: /opt/jmx_exporter/config.yml
subPath: config.yml
mountPath: /exporter/config
readOnly: true
{{- end }}
{{- if .Values.sidecars }}
{{- tpl (toYaml .Values.sidecars | nindent 6) . }}
{{- end }}
volumes:
- name: digdag
configMap:
name: {{ include "digdag.fullname" .}}
name: {{ include "digdag.fullname" . }}
{{- if and .Values.metrics.enabled .Values.jmx.enabled }}
- name: jmx-exporter-config
configMap:
Expand Down
6 changes: 3 additions & 3 deletions charts/digdag/templates/job-migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ spec:
- "migrate"
- "run"
- "--config"
- "/opt/etc/digdag/server.properties"
- "/digdag/config/digdag.properties"
volumeMounts:
- name: digdag
mountPath: /opt/etc/digdag
mountPath: /digdag/config
readOnly: true
volumes:
- name: digdag
configMap:
name: {{ include "digdag.fullname" .}}
name: {{ include "digdag.fullname" . }}
6 changes: 3 additions & 3 deletions charts/digdag/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ image:

## Number of Digdag replicas to deploy
##
replicaCount: 3
replicaCount: 2

## Update strategy to deploy
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
Expand Down Expand Up @@ -244,8 +244,8 @@ metrics:
enabled: false

image:
repository: docker.io/sscaling/jmx-prometheus-exporter
tag: 0.12.0
repository: ghcr.io/skyoo2003/prometheus-jmx-exporter
tag: 0.0.1
pullPolicy: IfNotPresent

## JMX exporter configuration
Expand Down

0 comments on commit a67e3af

Please sign in to comment.