remove gandalf and shadowfax

This commit is contained in:
Joseph Hanson 2024-12-10 21:04:43 -06:00
parent fef8309a07
commit bd536352e8
4 changed files with 1 additions and 72 deletions

View file

@ -1,2 +1,2 @@
--- ---
providerRegex: ^bilbo|^frodo|^sam|^merry|^pippin|^rosie|^gandalf-01$ providerRegex: ^bilbo|^frodo|^sam|^merry|^pippin|^rosie$

View file

@ -18,17 +18,6 @@ spec:
controllers: controllers:
smartctl-exporter: smartctl-exporter:
type: daemonset type: daemonset
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: NotIn
values:
- gandalf-01
- shadowfax-01
containers: containers:
app: app:
image: &image image: &image
@ -51,43 +40,12 @@ spec:
port: &port 9633 port: &port 9633
path: / path: /
readiness: *probes readiness: *probes
smartctl-exporter-vms:
type: daemonset
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- gandalf-01
- shadowfax-01
containers:
app:
image: *image
args:
- --smartctl.path=/usr/sbin/smartctl
- --smartctl.interval=120s
- --web.listen-address=0.0.0.0:9633
- --web.telemetry-path=/metrics
- --smartctl.device=/dev/nvme0
securityContext: *securityContext
probes:
liveness: *probes
readiness: *probes
service: service:
smartctl-exporter: smartctl-exporter:
controller: smartctl-exporter controller: smartctl-exporter
ports: ports:
exporter: exporter:
port: *port port: *port
smartctl-exporter-vms:
controller: smartctl-exporter-vms
ports:
exporter:
port: *port
persistence: persistence:
dev: dev:
type: hostPath type: hostPath
@ -105,15 +63,3 @@ spec:
path: /metrics path: /metrics
interval: 1m interval: 1m
scrapeTimeout: 10s scrapeTimeout: 10s
smartctl-exporter-vms:
selector:
matchLabels:
app.kubernetes.io/instance: smartctl-exporter
app.kubernetes.io/name: smartctl-exporter
app.kubernetes.io/service: smartctl-exporter-smartctl-exporter-vms
endpoints:
- port: exporter
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s

View file

@ -5,5 +5,4 @@ kind: Kustomization
resources: resources:
- vmagent.yaml - vmagent.yaml
- vmalert.yaml - vmalert.yaml
- vmscrapeconfig.yaml
- vmsingle.yaml - vmsingle.yaml

View file

@ -1,16 +0,0 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/operator.victoriametrics.com/vmscrapeconfig_v1beta1.json
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMScrapeConfig
metadata:
name: &name zfs-exporter
spec:
staticConfigs:
- targets:
- "shadowfax.jahanson.tech:9134"
- "gandalf.jahanson.tech:9134"
path: /metrics
relabelConfigs:
- action: replace
targetLabel: job
replacement: *name