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.
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: es-query-exporter
|
|
annotations:
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/path: /metrics
|
|
prometheus.io/port: "5050"
|
|
spec:
|
|
replicas: 2
|
|
revisionHistoryLimit: 3
|
|
selector:
|
|
matchLabels:
|
|
app: es-query-exporter
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: es-query-exporter
|
|
spec:
|
|
hostAliases:
|
|
- ip: "10.0.0.5"
|
|
hostnames:
|
|
- "dev-elastic-stack-elastic-01"
|
|
- ip: "10.0.0.6"
|
|
hostnames:
|
|
- "dev-elastic-stack-elastic-02"
|
|
- ip: "10.0.0.7"
|
|
hostnames:
|
|
- "dev-elastic-stack-elastic-03"
|
|
containers:
|
|
- image: bitshift/elastic-query-exporter:v1.0.0-preview.4
|
|
name: es-query-exporter
|
|
ports:
|
|
- containerPort: 5050
|
|
# env:
|
|
# - name: ASPNETCORE_ENVIRONMENT
|
|
# value: Release
|
|
volumeMounts:
|
|
- name: queries
|
|
mountPath: "/app"
|
|
readOnly: true
|
|
- name: appsettings
|
|
mountPath: "/app/appsettings.Release.yaml"
|
|
readOnly: true
|
|
# securityContext:
|
|
# runAsNonRoot: true
|
|
volumes:
|
|
- name: queries
|
|
configMap:
|
|
name: es-query-exporter-queries
|
|
- name: appsettings
|
|
configMap:
|
|
name: es-query-exporter-appsettings
|