diff --git a/prometheus/Dockerfile b/prometheus/Dockerfile new file mode 100644 index 0000000..30189e6 --- /dev/null +++ b/prometheus/Dockerfile @@ -0,0 +1,3 @@ +FROM prom/prometheus + +COPY prometheus.yml /etc/prometheus diff --git a/prometheus/daemonset.yml b/prometheus/daemonset.yml new file mode 100644 index 0000000..1ac41eb --- /dev/null +++ b/prometheus/daemonset.yml @@ -0,0 +1,36 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: prometheus + namespace: default + labels: + name: prometheus +spec: + selector: + matchLabels: + name: prometheus + updateStrategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 10% + template: + metadata: + labels: + name: prometheus + spec: + dnsPolicy: ClusterFirst + hostNetwork: true + containers: + - name: prometheus + image: prometheus-zevenet + imagePullPolicy: IfNotPresent + ports: + - containerPort: 9090 + resources: + limits: + memory: 200Mi + requests: + cpu: 100m + memory: 200Mi + securityContext: + privileged: true diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml new file mode 100644 index 0000000..50183c5 --- /dev/null +++ b/prometheus/prometheus.yml @@ -0,0 +1,10 @@ +global: + scrape_interval: 15s + scrape_timeout: 10s + evaluation_interval: 15s +scrape_configs: +- job_name: kube-nftlb + scrape_interval: 1s + static_configs: + - targets: + - localhost:9195