-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
manifests/profile/kubernetes/destination_port/prometheus.pp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2024 The Regents of the University of Michigan. | ||
# All Rights Reserved. Licensed according to the terms of the Revised | ||
# BSD License. See LICENSE.txt for details. | ||
|
||
class nebula::profile::kubernetes::destination_port::prometheus { | ||
$cluster_name = lookup('nebula::profile::kubernetes::cluster') | ||
|
||
@@concat_fragment { "haproxy kubernetes prometheus ${::hostname}": | ||
target => '/etc/haproxy/services.d/prometheus.cfg', | ||
order => '02', | ||
content => " server ${::hostname} ${::ipaddress}:443 check send-proxy\n", | ||
tag => "${cluster_name}_haproxy_kubernetes_prometheus", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
templates/profile/kubernetes/haproxy/services.d/prometheus.cfg.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Managed by puppet (nebula/profile/kubernetes/haproxy/services.d/prometheus.cfg.erb) | ||
frontend kubernetes-prometheus-front | ||
bind <%= @public_address %>:9090 | ||
mode tcp | ||
option tcplog | ||
default_backend kubernetes-prometheus-back | ||
|
||
backend kubernetes-prometheus-back | ||
mode tcp | ||
option tcp-check | ||
balance roundrobin |