Skip to content

Instantly share code, notes, and snippets.

@alicek106
Last active April 15, 2020 10:30
Show Gist options
  • Save alicek106/4ab832782d6d9a8a82faf39ad0314cc9 to your computer and use it in GitHub Desktop.
Save alicek106/4ab832782d6d9a8a82faf39ad0314cc9 to your computer and use it in GitHub Desktop.
alertmanager.yaml
apiVersion: monitoring.coreos.com/v1
kind: Alertmanager
metadata:
labels:
owner: alicek106
name: alice-alertmanager
namespace: default
spec:
configMaps:
- alert-notification-tmpl
image: quay.io/prometheus/alertmanager:v0.20.0
nodeSelector:
kubernetes.io/os: linux
replicas: 2
securityContext:
fsGroup: 2000
runAsNonRoot: true
runAsUser: 1000
version: v0.20.0
---
apiVersion: v1
kind: Service
metadata:
labels:
owner: alicek106
name: alice-alertmanager
namespace: default
spec:
ports:
- name: web
port: 9093
targetPort: web
selector:
alertmanager: alice-alertmanager
app: alertmanager
sessionAffinity: ClientIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment