netflux-kubernetes/deploy/base/inflated/prometheus/charts/alertmanager/templates/statefulset.yaml

85 lines
2.3 KiB
YAML
Raw Permalink Normal View History

2022-12-20 08:02:41 +00:00
---
# Source: prometheus/charts/alertmanager/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: prometheus-alertmanager
labels:
2023-07-16 06:22:33 +00:00
helm.sh/chart: alertmanager-0.33.1
2022-12-20 08:02:41 +00:00
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
2023-07-16 06:22:33 +00:00
app.kubernetes.io/version: "v0.25.0"
2022-12-20 08:02:41 +00:00
app.kubernetes.io/managed-by: Helm
2023-07-16 06:22:33 +00:00
namespace: default
2022-12-20 08:02:41 +00:00
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
serviceName: prometheus-alertmanager-headless
template:
metadata:
labels:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
annotations:
2023-07-16 06:22:33 +00:00
checksum/config: 25406287f5528bc29842743c5931229856284a49f3871c27ceeac453455b898e
2022-12-20 08:02:41 +00:00
spec:
2023-07-16 06:22:33 +00:00
automountServiceAccountToken: true
2022-12-20 08:02:41 +00:00
serviceAccountName: prometheus-alertmanager
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
containers:
- name: alertmanager
securityContext:
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
2023-07-16 06:22:33 +00:00
image: "quay.io/prometheus/alertmanager:v0.25.0"
2022-12-20 08:02:41 +00:00
imagePullPolicy: IfNotPresent
env:
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
args:
- --storage.path=/alertmanager
- --config.file=/etc/alertmanager/alertmanager.yml
ports:
- name: http
containerPort: 9093
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{}
volumeMounts:
- name: config
mountPath: /etc/alertmanager
- name: storage
mountPath: /alertmanager
volumes:
- name: config
configMap:
name: prometheus-alertmanager
volumeClaimTemplates:
- metadata:
name: storage
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi