Compare commits

..

2 Commits

Author SHA1 Message Date
Gitea Actions Bot
215554a19d Auto-update README with current k8s applications
All checks were successful
Terraform / Terraform (pull_request) Successful in 42s
Generated by CI/CD workflow on 2025-11-18 20:31:00

This PR updates the README.md file with the current list of applications found in the k8s/ directory structure.
2025-11-18 20:31:00 +00:00
Ultradesu
04330aa474 Fixed iperf3 monitor
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 13s
Check with kubeconform / lint (push) Successful in 15s
Auto-update README / Generate README and Create MR (push) Successful in 14s
2025-11-18 22:30:15 +02:00
2 changed files with 94 additions and 71 deletions

View File

@@ -14,60 +14,6 @@ spec:
labels: labels:
app: iperf3-exporter app: iperf3-exporter
spec: spec:
serviceAccountName: iperf3-server
initContainers:
- name: create-exporter-service
image: bitnami/kubectl:latest
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
command:
- /bin/bash
- -c
- |
# Clean node name for service name
NODE_CLEAN=$(echo "$NODE_NAME" | cut -d'.' -f1 | tr '[:upper:]' '[:lower:]' | tr '_' '-')
SERVICE_NAME="iperf3-exporter-${NODE_CLEAN}"
# Create service for this exporter pod
kubectl apply -f - <<EOF
apiVersion: v1
kind: Service
metadata:
name: ${SERVICE_NAME}
namespace: iperf3
labels:
app: iperf3-exporter-service
target-node: "${NODE_NAME}"
spec:
type: ClusterIP
ports:
- name: metrics
port: 9579
protocol: TCP
---
apiVersion: v1
kind: Endpoints
metadata:
name: ${SERVICE_NAME}
namespace: iperf3
labels:
app: iperf3-exporter-service
target-node: "${NODE_NAME}"
subsets:
- addresses:
- ip: ${POD_IP}
ports:
- name: metrics
port: 9579
protocol: TCP
EOF
containers: containers:
- name: iperf3-exporter - name: iperf3-exporter
image: ghcr.io/edgard/iperf3_exporter:1.2.2 image: ghcr.io/edgard/iperf3_exporter:1.2.2

View File

@@ -16,28 +16,105 @@ spec:
interval: 5m interval: 5m
scrapeTimeout: 30s scrapeTimeout: 30s
params: params:
target: target: ['iperf3-ch.iperf3.svc.cluster.local:5201']
- "iperf3-ch.iperf3.svc.cluster.local:5201" period: ['10s']
- "iperf3-us.iperf3.svc.cluster.local:5201" streams: ['4']
- "iperf3-iris.iperf3.svc.cluster.local:5201"
- "iperf3-home.iperf3.svc.cluster.local:5201"
- "iperf3-master.iperf3.svc.cluster.local:5201"
- "iperf3-it.iperf3.svc.cluster.local:5201"
- "iperf3-nas.iperf3.svc.cluster.local:5201"
- "iperf3-spb.iperf3.svc.cluster.local:5201"
duration:
- "10"
streams:
- "4"
relabelings: relabelings:
- sourceLabels: [__param_target] - sourceLabels: [__param_target]
targetLabel: instance targetLabel: instance
- targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
- port: metrics
path: /probe
interval: 5m
scrapeTimeout: 30s
params:
target: ['iperf3-us.iperf3.svc.cluster.local:5201']
period: ['10s']
streams: ['4']
relabelings:
- sourceLabels: [__param_target] - sourceLabels: [__param_target]
targetLabel: __param_target targetLabel: instance
- targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
- port: metrics
path: /probe
interval: 5m
scrapeTimeout: 30s
params:
target: ['iperf3-iris.iperf3.svc.cluster.local:5201']
period: ['10s']
streams: ['4']
relabelings:
- sourceLabels: [__param_target] - sourceLabels: [__param_target]
targetLabel: __address__ targetLabel: instance
regex: iperf3-(.+)\.iperf3\.svc\.cluster\.local:5201 - targetLabel: __address__
replacement: iperf3-exporter-${1}.iperf3.svc.cluster.local:9579 replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
- port: metrics
path: /probe
interval: 5m
scrapeTimeout: 30s
params:
target: ['iperf3-home.iperf3.svc.cluster.local:5201']
period: ['10s']
streams: ['4']
relabelings:
- sourceLabels: [__param_target]
targetLabel: instance
- targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
- port: metrics
path: /probe
interval: 5m
scrapeTimeout: 30s
params:
target: ['iperf3-master.iperf3.svc.cluster.local:5201']
period: ['10s']
streams: ['4']
relabelings:
- sourceLabels: [__param_target]
targetLabel: instance
- targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
- port: metrics
path: /probe
interval: 5m
scrapeTimeout: 30s
params:
target: ['iperf3-it.iperf3.svc.cluster.local:5201']
period: ['10s']
streams: ['4']
relabelings:
- sourceLabels: [__param_target]
targetLabel: instance
- targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
- port: metrics
path: /probe
interval: 5m
scrapeTimeout: 30s
params:
target: ['iperf3-nas.iperf3.svc.cluster.local:5201']
period: ['10s']
streams: ['4']
relabelings:
- sourceLabels: [__param_target]
targetLabel: instance
- targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
- port: metrics
path: /probe
interval: 5m
scrapeTimeout: 30s
params:
target: ['iperf3-spb.iperf3.svc.cluster.local:5201']
period: ['10s']
streams: ['4']
relabelings:
- sourceLabels: [__param_target]
targetLabel: instance
- targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
metricRelabelings: metricRelabelings:
- sourceLabels: [__name__] - sourceLabels: [__name__]
regex: iperf3_(.+) regex: iperf3_(.+)