Compare commits
3 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06f0158069 | ||
|
|
e523bb8bea | ||
|
|
b433373725 |
@@ -40,6 +40,7 @@ ArgoCD homelab project
|
||||
| **greece-notifier** | [](https://ag.hexor.cy/applications/argocd/greece-notifier) |
|
||||
| **hexound** | [](https://ag.hexor.cy/applications/argocd/hexound) |
|
||||
| **immich** | [](https://ag.hexor.cy/applications/argocd/immich) |
|
||||
| **iperf3** | [](https://ag.hexor.cy/applications/argocd/iperf3) |
|
||||
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
||||
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
||||
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
||||
|
||||
@@ -11,8 +11,23 @@ spec:
|
||||
labels:
|
||||
app: iperf3-server
|
||||
spec:
|
||||
hostname: iperf3-$(NODE_NAME)
|
||||
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:
|
||||
- name: iperf3-server
|
||||
image: networkstatic/iperf3:latest
|
||||
@@ -25,6 +40,8 @@ spec:
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: HOSTNAME
|
||||
value: $(NODE_NAME)
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
|
||||
@@ -3,7 +3,6 @@ apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: iperf3-exporter
|
||||
namespace: default
|
||||
labels:
|
||||
app: iperf3-exporter
|
||||
release: prometheus
|
||||
@@ -25,11 +24,11 @@ spec:
|
||||
- sourceLabels: [__address__]
|
||||
targetLabel: __param_target
|
||||
regex: (.+):9579
|
||||
replacement: iperf3-${1}.iperf3.default.svc.cluster.local:5201
|
||||
replacement: iperf3-${1}.iperf3.iperf.svc.cluster.local:5201
|
||||
- sourceLabels: [__param_target]
|
||||
targetLabel: instance
|
||||
- targetLabel: __address__
|
||||
replacement: iperf3-exporter.default.svc.cluster.local:9579
|
||||
replacement: iperf3-exporter.iperf.svc.cluster.local:9579
|
||||
metricRelabelings:
|
||||
- sourceLabels: [__name__]
|
||||
regex: iperf3_(.+)
|
||||
|
||||
Reference in New Issue
Block a user