Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Fix Consul ESM Bugs (#31)
Browse files Browse the repository at this point in the history
- Config file not being used
- Incorrect Ping interval value
  • Loading branch information
lawliet89 authored Oct 23, 2020
1 parent fc82fb7 commit fb4cc4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/consul-esm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
appVersion: "0.3.3"
appVersion: "0.4.0"
description: Consul ESM for external service health checks in Consul
name: consul-esm
version: 0.2.0
version: 0.2.2
home: https://github.com/hashicorp/consul-esm
4 changes: 2 additions & 2 deletions charts/consul-esm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ data:
# The interval to ping and update coordinates for external nodes that have
# 'external-probe' set to true. By default, ESM will attempt to ping and
# update the coordinates for all nodes it is watching every 10 seconds.
node_probe_interval = "{{ .Values.config.node_probe_interval }}"
node_probe_interval = "{{ .Values.config.nodeProbeInterval }}"
{{- if .Values.config.httpAddr }}
# The address of the local Consul agent. Can also be provided through the
# CONSUL_HTTP_ADDR environment variable.
http_addr = "{{ .Values.config.httpAddr }}"
{{- end -}}
{{- end }}
# The ACL token to use when communicating with the local Consul agent. Can
# also be provided through the CONSUL_HTTP_TOKEN environment variable.
Expand Down
3 changes: 3 additions & 0 deletions charts/consul-esm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- /bin/consul-esm
- -config-file=/config/config.hcl
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if (or .Values.env .Values.config.useNodeAgent.enabled) }}
Expand Down

0 comments on commit fb4cc4e

Please sign in to comment.