You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: prometheus-es-exporter
release: prometheus-es-exporter
name: prometheus-es-exporter
spec:
template:
spec:
containers:
- args:
- --es-cluster=https://prodwork01-elastic-stack-elastic-01:9200,https://prodwork01-elastic-stack-elastic-02:9200,https://prodwork01-elastic-stack-elastic-03:9200
- --port=9206
- --config-file=/mnt/config/exporter.cfg
- --ca-certs=/mnt/certs/es_ca.crt
env:
- name: ES_EXPORTER_BASIC_USER
valueFrom:
secretKeyRef:
name: prometheus-es-exporter-es-creds
key: username
- name: ES_EXPORTER_BASIC_PASSWORD
valueFrom:
secretKeyRef:
name: prometheus-es-exporter-es-creds
key: password
image: braedon/prometheus-es-exporter:0.14.0
livenessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: prometheus
timeoutSeconds: 1
name: prometheus-es-exporter
ports:
- containerPort: 9206
name: prometheus
protocol: TCP
readinessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: prometheus
timeoutSeconds: 1
volumeMounts:
- mountPath: /mnt/config
name: config-volume
hostAliases:
- hostnames:
- prodwork01-elastic-stack-elastic-01
ip: 10.3.0.13
- hostnames:
- prodwork01-elastic-stack-elastic-02
ip: 10.3.0.14
- hostnames:
- prodwork01-elastic-stack-elastic-03
ip: 10.3.0.16