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