1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- ---
- # Source: loki-stack/charts/prometheus/templates/alertmanager-deployment.yaml
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- component: "alertmanager"
- app: prometheus
- release: loki
- chart: prometheus-9.3.1
- heritage: Tiller
- name: loki-prometheus-alertmanager
- spec:
- selector:
- matchLabels:
- component: "alertmanager"
- app: prometheus
- release: loki
- replicas: 1
- template:
- metadata:
- labels:
- component: "alertmanager"
- app: prometheus
- release: loki
- chart: prometheus-9.3.1
- heritage: Tiller
- spec:
- serviceAccountName: loki-prometheus-alertmanager
- containers:
- - name: prometheus-alertmanager
- image: "prom/alertmanager:v0.18.0"
- imagePullPolicy: "IfNotPresent"
- env:
- - name: POD_IP
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: status.podIP
- args:
- - --config.file=/etc/config/alertmanager.yml
- - --storage.path=/data
- - --cluster.advertise-address=$(POD_IP):6783
- - --web.external-url=/
- ports:
- - containerPort: 9093
- readinessProbe:
- httpGet:
- path: /#/status
- port: 9093
- initialDelaySeconds: 30
- timeoutSeconds: 30
- resources:
- {}
-
- volumeMounts:
- - name: config-volume
- mountPath: /etc/config
- - name: storage-volume
- mountPath: "/data"
- subPath: ""
- - name: prometheus-alertmanager-configmap-reload
- image: "jimmidyson/configmap-reload:v0.2.2"
- imagePullPolicy: "IfNotPresent"
- args:
- - --volume-dir=/etc/config
- - --webhook-url=http://127.0.0.1:9093/-/reload
- resources:
- {}
-
- volumeMounts:
- - name: config-volume
- mountPath: /etc/config
- readOnly: true
- securityContext:
- fsGroup: 65534
- runAsGroup: 65534
- runAsNonRoot: true
- runAsUser: 65534
-
- volumes:
- - name: config-volume
- configMap:
- name: loki-prometheus-alertmanager
- - name: storage-volume
- persistentVolumeClaim:
- claimName: loki-prometheus-alertmanager
|