~xdavidwu/flux

ef34f6c6f46334b8f6bf4b2eee93a3da4508f61c — Pinghao Wu a month ago 3fdaf5e
migrate nginx-exporter to flux
A monitoring/nginx-exporter/deployment.yaml => monitoring/nginx-exporter/deployment.yaml +18 -0
@@ 0,0 1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-exporter
spec:
  replicas: 1
  template:
    spec:
      containers:
        - name: nginx-exporter
          image: public.ecr.aws/nginx/nginx-prometheus-exporter:1.4.0
          command:
            - /usr/bin/nginx-prometheus-exporter
            - -nginx.scrape-uri
            - http://10.0.3.1/nginx_status
          readinessProbe:
            httpGet:
              port: 9113

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

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

A monitoring/nginx-exporter/service.yaml => monitoring/nginx-exporter/service.yaml +9 -0
@@ 0,0 1,9 @@
apiVersion: v1
kind: Service
metadata:
  name: nginx-exporter
spec:
  ports:
    - name: metric
      protocol: TCP
      port: 9113