~xdavidwu/flux

4b39f127bb698102b7ce9c3b6cc63163dfc03947 — Pinghao Wu 20 days ago 146c5d8
prometheus: prepare for rework
A monitoring/prometheus/configmap.yaml => monitoring/prometheus/configmap.yaml +8 -0
@@ 0,0 1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
  name: configs
data:
  prometheus.yml: |
    scrape_configs:
    # TODO

A monitoring/prometheus/deployment.yaml => monitoring/prometheus/deployment.yaml +20 -0
@@ 0,0 1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
  name: prometheus
spec:
  strategy:
    type: Recreate
  replicas: 1
  template:
    spec:
      containers:
        - name: prometheus
          image: quay.io/prometheus/prometheus:v3.1.0
          volumeMounts:
            - name: configs
              mountPath: /etc/prometheus
      volumes:
        - name: configs
          configMap:
            name: configs

A monitoring/prometheus/kustomization.yaml => monitoring/prometheus/kustomization.yaml +12 -0
@@ 0,0 1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: prometheus
labels:
  - pairs:
      app: prometheus
    includeTemplates: true
    includeSelectors: true
resources:
  - namespace.yaml
  - deployment.yaml
  - configmap.yaml

A monitoring/prometheus/namespace.yaml => monitoring/prometheus/namespace.yaml +7 -0
@@ 0,0 1,7 @@
apiVersion: v1
kind: Namespace
metadata:
  creationTimestamp: null
  name: prometheus
spec: {}
status: {}