Compare commits
6 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ad3f6db11 | ||
|
|
353bb877be | ||
|
|
e523bb8bea | ||
|
|
b433373725 | ||
|
|
3026e53746 | ||
|
|
63669c69ff |
@@ -40,6 +40,7 @@ ArgoCD homelab project
|
|||||||
| **greece-notifier** | [](https://ag.hexor.cy/applications/argocd/greece-notifier) |
|
| **greece-notifier** | [](https://ag.hexor.cy/applications/argocd/greece-notifier) |
|
||||||
| **hexound** | [](https://ag.hexor.cy/applications/argocd/hexound) |
|
| **hexound** | [](https://ag.hexor.cy/applications/argocd/hexound) |
|
||||||
| **immich** | [](https://ag.hexor.cy/applications/argocd/immich) |
|
| **immich** | [](https://ag.hexor.cy/applications/argocd/immich) |
|
||||||
|
| **iperf3** | [](https://ag.hexor.cy/applications/argocd/iperf3) |
|
||||||
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
||||||
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
||||||
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
||||||
|
|||||||
@@ -11,8 +11,23 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: iperf3-server
|
app: iperf3-server
|
||||||
spec:
|
spec:
|
||||||
hostname: iperf3-$(NODE_NAME)
|
|
||||||
subdomain: iperf3
|
subdomain: iperf3
|
||||||
|
initContainers:
|
||||||
|
- name: set-hostname
|
||||||
|
image: busybox:1.35
|
||||||
|
command: ['sh', '-c']
|
||||||
|
args:
|
||||||
|
- |
|
||||||
|
NODE_NAME=$(echo $NODE_NAME | cut -d'.' -f1 | tr '[:upper:]' '[:lower:]')
|
||||||
|
echo "iperf3-${NODE_NAME}" > /etc/hostname
|
||||||
|
hostname "iperf3-${NODE_NAME}"
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
env:
|
||||||
|
- name: NODE_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.nodeName
|
||||||
containers:
|
containers:
|
||||||
- name: iperf3-server
|
- name: iperf3-server
|
||||||
image: networkstatic/iperf3:latest
|
image: networkstatic/iperf3:latest
|
||||||
@@ -25,6 +40,8 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
|
- name: HOSTNAME
|
||||||
|
value: $(NODE_NAME)
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "64Mi"
|
memory: "64Mi"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: iperf3-exporter
|
- name: iperf3-exporter
|
||||||
image: edgardlt/iperf3_exporter:latest
|
image: ghcr.io/edgard/iperf3_exporter:1.2.2
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9579
|
- containerPort: 9579
|
||||||
name: metrics
|
name: metrics
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ apiVersion: monitoring.coreos.com/v1
|
|||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: iperf3-exporter
|
name: iperf3-exporter
|
||||||
namespace: default
|
|
||||||
labels:
|
labels:
|
||||||
app: iperf3-exporter
|
app: iperf3-exporter
|
||||||
release: prometheus
|
release: prometheus
|
||||||
@@ -25,13 +24,13 @@ spec:
|
|||||||
- sourceLabels: [__address__]
|
- sourceLabels: [__address__]
|
||||||
targetLabel: __param_target
|
targetLabel: __param_target
|
||||||
regex: (.+):9579
|
regex: (.+):9579
|
||||||
replacement: iperf3-${1}.iperf3.default.svc.cluster.local:5201
|
replacement: iperf3-${1}.iperf3.iperf3.svc.cluster.local:5201
|
||||||
- sourceLabels: [__param_target]
|
- sourceLabels: [__param_target]
|
||||||
targetLabel: instance
|
targetLabel: instance
|
||||||
- targetLabel: __address__
|
- targetLabel: __address__
|
||||||
replacement: iperf3-exporter.default.svc.cluster.local:9579
|
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579
|
||||||
metricRelabelings:
|
metricRelabelings:
|
||||||
- sourceLabels: [__name__]
|
- sourceLabels: [__name__]
|
||||||
regex: iperf3_(.+)
|
regex: iperf3_(.+)
|
||||||
targetLabel: __name__
|
targetLabel: __name__
|
||||||
replacement: network_${1}
|
replacement: network_${1}
|
||||||
|
|||||||
Reference in New Issue
Block a user