tweak blackbox-exporter, ajust request/limits
This commit is contained in:
parent
0859b94acc
commit
e4a93204c9
|
@ -11,19 +11,23 @@ spec:
|
|||
labels:
|
||||
app.kubernetes.io/name: blackbox-exporter
|
||||
spec:
|
||||
securityContext:
|
||||
sysctls:
|
||||
- name: net.ipv4.ping_group_range
|
||||
value: "0 2147483647"
|
||||
containers:
|
||||
- name: blackbox-exporter
|
||||
image: prom/blackbox-exporter
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
cpu: 500m
|
||||
limits:
|
||||
memory: 128Mi
|
||||
cpu: 500m
|
||||
ports:
|
||||
- containerPort: 9115
|
||||
name: http-metrics
|
||||
- name: blackbox-exporter
|
||||
image: prom/blackbox-exporter
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
cpu: 100m
|
||||
limits:
|
||||
memory: 128Mi
|
||||
cpu: 500m
|
||||
ports:
|
||||
- containerPort: 9115
|
||||
name: http-metrics
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -37,4 +41,4 @@ spec:
|
|||
ports:
|
||||
- name: http-metrics
|
||||
port: 9115
|
||||
targetPort: http-metrics
|
||||
targetPort: http-metrics
|
||||
|
|
|
@ -27,10 +27,14 @@ spec:
|
|||
- name: grafana
|
||||
image: grafana/grafana
|
||||
env:
|
||||
- name: GF_AUTH_ANONYMOUS_ENABLED
|
||||
value: "true"
|
||||
- name: GF_SERVER_DOMAIN
|
||||
value: ${GRAFANA_EXTERNAL_HOST}
|
||||
# - name: GF_AUTH_ANONYMOUS_ENABLED
|
||||
# value: "true"
|
||||
- name: GF_INSTALL_PLUGINS
|
||||
value: marcusolsson-json-datasource,marcusolsson-treemap-panel
|
||||
- name: GF_FEATURE_TOGGLES_ENABLE
|
||||
value: ngalert
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
|
|
|
@ -66,10 +66,10 @@ spec:
|
|||
containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1500m
|
||||
cpu: 2000m
|
||||
memory: 1Gi
|
||||
limits:
|
||||
cpu: 2000m
|
||||
cpu: 4000m
|
||||
memory: 1.5Gi
|
||||
volumeMounts:
|
||||
- name: nextcloud-pv
|
||||
|
|
|
@ -41,11 +41,11 @@ spec:
|
|||
containerPort: 5432
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1000m
|
||||
cpu: 500m
|
||||
memory: 1Gi
|
||||
limits:
|
||||
cpu: 1500m
|
||||
memory: 2Gi
|
||||
cpu: 1000m
|
||||
memory: 1Gi
|
||||
volumeMounts:
|
||||
- name: postgres-pvc
|
||||
mountPath: /data
|
||||
|
|
|
@ -19,4 +19,4 @@ spec:
|
|||
relabelingConfigs:
|
||||
- action: replace
|
||||
sourceLabels: [__meta_kubernetes_ingress_label_app_kubernetes_io_name]
|
||||
targetLabel: name
|
||||
targetLabel: service
|
||||
|
|
|
@ -8,10 +8,13 @@ bases:
|
|||
images:
|
||||
- name: gitea/gitea
|
||||
newTag: 1.15.0
|
||||
- name: grafana
|
||||
newTag: 8.1.2
|
||||
- name: grafana/grafana
|
||||
newTag: 8.1.3
|
||||
- name: prom/node-exporter
|
||||
newTag: v0.18.1
|
||||
- name: prom/blackbox-exporter
|
||||
newName: badjware/blackbox-exporter-tweak
|
||||
newTag: 0.19.0-1
|
||||
- name: drone/drone
|
||||
newTag: 2.0.6
|
||||
- name: drone/drone-runner-kube
|
||||
|
|
|
@ -11,10 +11,13 @@ resources:
|
|||
images:
|
||||
- name: gitea/gitea
|
||||
newTag: 1.15.0
|
||||
- name: grafana
|
||||
newTag: 8.1.2
|
||||
- name: grafana/grafana
|
||||
newTag: 8.1.3
|
||||
- name: prom/node-exporter
|
||||
newTag: v0.18.1
|
||||
- name: prom/blackbox-exporter
|
||||
newName: badjware/blackbox-exporter-tweak
|
||||
newTag: 0.19.0-1
|
||||
- name: drone/drone
|
||||
newTag: 2.0.6
|
||||
- name: drone/drone-runner-kube
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: Probe
|
||||
metadata:
|
||||
name: blackbox-exporter
|
||||
spec:
|
||||
targets:
|
||||
staticConfig:
|
||||
static:
|
||||
- http://192.168.40.30/
|
||||
labels:
|
||||
name: bobcat-miner
|
|
@ -2,6 +2,6 @@ GITEA_EXTERNAL_HOST=code.badjware.dev
|
|||
DRONE_EXTERNAL_HOST=drone.badjware.dev
|
||||
NEXTCLOUD_EXTERNAL_HOST=cloud.badjware.dev
|
||||
|
||||
GRAFANA_EXTERNAL_HOST=grafana.badjnet.home
|
||||
GRAFANA_EXTERNAL_HOST=grafana.badjware.dev
|
||||
KUBERNETES_DASHBOARD_EXTERNAL_HOST=kubernetes-dashboard.badjnet.home
|
||||
PROMETHEUS_EXTERNAL_HOST=prometheus.badjnet.home
|
||||
|
|
|
@ -7,12 +7,12 @@ metadata:
|
|||
monitor: prometheus
|
||||
namespace: monitoring
|
||||
spec:
|
||||
module: http_2xx
|
||||
module: icmp
|
||||
prober:
|
||||
url: blackbox-exporter.monitoring.svc:9115
|
||||
targets:
|
||||
staticConfig:
|
||||
static:
|
||||
- http://192.168.40.30/
|
||||
- 192.168.40.30
|
||||
labels:
|
||||
name: bobcat-miner
|
||||
service: bobcat-miner
|
||||
|
|
Loading…
Reference in New Issue