Skip to content

Commit

Permalink
Prometheus hostname fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oskar-s9s committed Apr 9, 2024
1 parent 46c72f2 commit b8283ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/clustercontrol/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A ClusterControl Helm Chart for Kubernetes

type: application

version: 2024.03.1
version: 2024.04.1
appVersion: "1.9.8"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion charts/clustercontrol/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ stringData:
rpc_key={{ or .Values.cmon.password $randomPassword }}
ccsetup_key={{ $ccsetupRandomPassword }}
controller_id={{ .Values.cmon.id }}
prometheus_hostname={{ .Values.prometheusHostname }}
prometheus_hostname={{ default (printf "%s-monitoring-server" .Release.Name) .Values.prometheusHostname }}
---
apiVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion charts/clustercontrol/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fqdn: &fqdn localhost

# host of your prometheus/victoria metrics instance, MUST be available on port 9090
# REQUIRED, if not provided, metrics and dashboards won't be available
prometheusHostname: cc-monitoring-server
prometheusHostname: # defaults to .Release.name-monitoring-server

# k8s storage class used for PVs across cc. This is a global variable applied to all PVCs/PVs to simplify things.
# OPTIONAL, if not provided, default storage class will be used
Expand Down

0 comments on commit b8283ff

Please sign in to comment.