51 lines
1016 B
YAML
51 lines
1016 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: thanos-query
|
|
labels:
|
|
app: thanos-query
|
|
thanos-peer: "true"
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: thanos-query
|
|
thanos-peer: "true"
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: thanos-query
|
|
thanos-peer: "true"
|
|
spec:
|
|
containers:
|
|
- name: thanos-query
|
|
image: improbable/thanos:latest
|
|
args:
|
|
- "query"
|
|
- "--log.level=debug"
|
|
- "--query.replica-label=prometheus_replica"
|
|
- "--cluster.peers=thanos-peers.default.svc:10900"
|
|
ports:
|
|
- name: http
|
|
containerPort: 10902
|
|
- name: grpc
|
|
containerPort: 10901
|
|
- name: cluster
|
|
containerPort: 10900
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: thanos-query
|
|
name: thanos-query
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: thanos-query
|
|
ports:
|
|
- port: 9090
|
|
protocol: TCP
|
|
targetPort: http
|
|
name: http-query
|
|
nodePort: 31111 |