aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/namespaces/monitoring/alerts/alertmanager/initscript.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/namespaces/monitoring/alerts/alertmanager/initscript.yaml b/kubernetes/namespaces/monitoring/alerts/alertmanager/initscript.yaml
index 3de207b..26e08b9 100644
--- a/kubernetes/namespaces/monitoring/alerts/alertmanager/initscript.yaml
+++ b/kubernetes/namespaces/monitoring/alerts/alertmanager/initscript.yaml
@@ -24,7 +24,7 @@ data:
AM_IPS=$(jq '.items[].status.podIP' /tmp/peers.json -r)
echo Generating CLI flags for Alertmanager...
- PEER_ARGS=$(echo $AM_IPS | sed 's/ /\n/g' | awk '{ print "--cluster.peer="$1":9094" }')
+ PEER_ARGS=$(echo $AM_IPS | awk -v RS=' ' -v ORS=' ' '{ print "--cluster.peer="$1":9094" }')
echo Writing CLI flags to /tmp/peers...
echo $PEER_ARGS > /tmp/peers