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
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://prodnso-elastic-stack-elastic-01:9200,https://prodnso-elastic-stack-elastic-02:9200,https://prodnso-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:
|
|
- prodnso-elastic-stack-elastic-01
|
|
ip: 10.0.0.17
|
|
- hostnames:
|
|
- prodnso-elastic-stack-elastic-02
|
|
ip: 10.0.0.3
|
|
- hostnames:
|
|
- prodnso-elastic-stack-elastic-03
|
|
ip: 10.0.0.16
|