Skip to content

Commit

Permalink
Add workaroud for Cortex Alertmanager service discovery bug (#110)
Browse files Browse the repository at this point in the history
* Add workaroud for Cortex Alertmanager service discovery bug

Signed-off-by: Rastislav Szabo <[email protected]>

* Add tests run output

Signed-off-by: Rastislav Szabo <[email protected]>
  • Loading branch information
Rastislav Szabo authored Apr 25, 2022
1 parent a0e2e06 commit 89110b2
Show file tree
Hide file tree
Showing 5 changed files with 422 additions and 366 deletions.
22 changes: 22 additions & 0 deletions charts/cortex/templates/cortex-alertmanager-headless-kkp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This is a KKP-specific headless alertmanager service, used to work around
# the Cortex helm chart bug in chart versions below v1.0.0

apiVersion: v1
kind: Service
metadata:
name: cortex-alertmanager-headless-kkp
spec:
clusterIP: None
internalTrafficPolicy: Cluster
ports:
- name: http-metrics
port: 8080
protocol: TCP
targetPort: http-metrics
publishNotReadyAddresses: true
selector:
app.kubernetes.io/component: alertmanager
app.kubernetes.io/instance: cortex
app.kubernetes.io/name: cortex
sessionAffinity: None
type: ClusterIP
Loading

0 comments on commit 89110b2

Please sign in to comment.