~xdavidwu/flux

a9bec5d7da44b5648fc4a6a6798b2fff1a4b4ca0 — Pinghao Wu 19 days ago 10b4245
prometheus: add thanos query-frontend
A monitoring/prometheus/deployment-query-frontend.yaml => monitoring/prometheus/deployment-query-frontend.yaml +31 -0
@@ 0,0 1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
  name: thanos-query-frontend
spec:
  replicas: 1
  selector:
    matchLabels:
      component: query-frontend
  template:
    metadata:
      annotations:
        prometheus.xdavidwu.link/instance: main
      labels:
        metrics: metrics
        component: query-frontend
    spec:
      containers:
        - name: query-frontend
          image: quay.io/thanos/thanos:THANOS_VERSION
          args:
            - query-frontend
            - --query-frontend.downstream-url=http://thanos-query:10902
            - --query-range.request-downsampled
          ports:
            - name: metrics
              containerPort: 10902
          readinessProbe:
            httpGet:
              port: metrics
              path: /-/ready

M monitoring/prometheus/kustomization.yaml => monitoring/prometheus/kustomization.yaml +2 -0
@@ 17,6 17,8 @@ resources:
  - service-store.yaml
  - deployment-query.yaml
  - service-query.yaml
  - deployment-query-frontend.yaml
  - service-query-frontend.yaml
  - configmap.yaml
  - serviceaccount.yaml
  - clusterrole.yaml

A monitoring/prometheus/service-query-frontend.yaml => monitoring/prometheus/service-query-frontend.yaml +12 -0
@@ 0,0 1,12 @@
apiVersion: v1
kind: Service
metadata:
  name: thanos
spec:
  selector:
    component: query-frontend
  ports:
    - name: prometheus
      protocol: TCP
      port: 80
      targetPort: 10902