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://qa-elastic-stack-elastic-01:9200,https://qa-elastic-stack-elastic-02:9200,https://qa-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 - mountPath: /mnt/certs name: cert-volume hostAliases: - hostnames: - qa-elastic-stack-elastic-01 ip: 10.1.0.2 - hostnames: - qa-elastic-stack-elastic-02 ip: 10.1.0.3 - hostnames: - qa-elastic-stack-elastic-03 ip: 10.1.0.4