~xdavidwu/flux

a86469752e47fc62494241bed3d0b6181878dfe5 — Pinghao Wu 19 days ago 409f6ab
prometheus: prepare for other thanos components
M monitoring/prometheus/deployment.yaml => monitoring/prometheus/deployment.yaml +5 -1
@@ 6,12 6,16 @@ spec:
  strategy:
    type: Recreate
  replicas: 1
  selector:
    matchLabels:
      component: prometheus
  template:
    metadata:
      annotations:
        prometheus.xdavidwu.link/instance: main
      labels:
        metrics: metrics
        component: prometheus
    spec:
      containers:
        - name: prometheus


@@ 36,7 40,7 @@ spec:
              mountPath: /prometheus
            - name: configs
              mountPath: /etc/prometheus
        - name: thanos-sidecar
        - name: sidecar
          image: quay.io/thanos/thanos:THANOS_VERSION
          args:
            - sidecar

M monitoring/prometheus/kustomization.yaml => monitoring/prometheus/kustomization.yaml +1 -0
@@ 12,6 12,7 @@ images:
resources:
  - namespace.yaml
  - deployment.yaml
  - service.yaml
  - configmap.yaml
  - serviceaccount.yaml
  - clusterrole.yaml

A monitoring/prometheus/service.yaml => monitoring/prometheus/service.yaml +15 -0
@@ 0,0 1,15 @@
apiVersion: v1
kind: Service
metadata:
  name: prometheus
spec:
  selector:
    component: prometheus
  ports:
    - name: prometheus
      protocol: TCP
      port: 80
      targetPort: 9090
    - name: sidecar-grpc
      protocol: TCP
      port: 10901