Compare commits

..

1 Commits

Author SHA1 Message Date
Gitea Actions Bot
f7d056260d Auto-update README with current k8s applications
All checks were successful
Terraform / Terraform (pull_request) Successful in 39s
Generated by CI/CD workflow on 2025-11-18 19:34:49

This PR updates the README.md file with the current list of applications found in the k8s/ directory structure.
2025-11-18 19:34:49 +00:00
5 changed files with 10 additions and 99 deletions

View File

@@ -11,64 +11,11 @@ spec:
labels: labels:
app: iperf3-server app: iperf3-server
spec: spec:
serviceAccountName: iperf3-server hostname: iperf3-$(NODE_NAME)
subdomain: iperf3 subdomain: iperf3
initContainers:
- name: create-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-${NODE_CLEAN}"
# Create service for this pod
kubectl apply -f - <<EOF
apiVersion: v1
kind: Service
metadata:
name: ${SERVICE_NAME}
namespace: iperf3
labels:
app: iperf3-node-service
target-node: "${NODE_NAME}"
spec:
type: ClusterIP
ports:
- name: iperf3
port: 5201
protocol: TCP
---
apiVersion: v1
kind: Endpoints
metadata:
name: ${SERVICE_NAME}
namespace: iperf3
labels:
app: iperf3-node-service
target-node: "${NODE_NAME}"
subsets:
- addresses:
- ip: ${POD_IP}
ports:
- name: iperf3
port: 5201
protocol: TCP
EOF
containers: containers:
- name: iperf3-server - name: iperf3-server
image: networkstatic/iperf3:latest image: ghcr.io/edgard/iperf3_exporter:1.2.2
args: ["-s"] args: ["-s"]
ports: ports:
- containerPort: 5201 - containerPort: 5201

View File

@@ -16,7 +16,7 @@ spec:
spec: spec:
containers: containers:
- name: iperf3-exporter - name: iperf3-exporter
image: ghcr.io/edgard/iperf3_exporter:1.2.2 image: edgardlt/iperf3_exporter:latest
ports: ports:
- containerPort: 9579 - containerPort: 9579
name: metrics name: metrics

View File

@@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- rbac.yaml
- daemonset.yaml - daemonset.yaml
- service-headless.yaml - service-headless.yaml
- iperf3-exporter-daemonset.yaml - iperf3-exporter-daemonset.yaml

View File

@@ -1,36 +0,0 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: iperf3-server
namespace: iperf3
labels:
app: iperf3-server
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: iperf3-service-manager
namespace: iperf3
labels:
app: iperf3-server
rules:
- apiGroups: [""]
resources: ["services", "endpoints"]
verbs: ["get", "list", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: iperf3-service-manager
namespace: iperf3
labels:
app: iperf3-server
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: iperf3-service-manager
subjects:
- kind: ServiceAccount
name: iperf3-server
namespace: iperf3

View File

@@ -3,6 +3,7 @@ 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
@@ -16,21 +17,21 @@ spec:
interval: 5m interval: 5m
scrapeTimeout: 30s scrapeTimeout: 30s
params: params:
target:
- "iperf3.iperf3.svc.cluster.local:5201"
duration: duration:
- "10" - "10"
streams: streams:
- "4" - "4"
relabelings: relabelings:
- sourceLabels: [__address__]
targetLabel: __param_target
regex: (.+):9579
replacement: iperf3-${1}.iperf3.default.svc.cluster.local:5201
- sourceLabels: [__param_target] - sourceLabels: [__param_target]
targetLabel: instance targetLabel: instance
- sourceLabels: [__param_target]
targetLabel: __param_target
- targetLabel: __address__ - targetLabel: __address__
replacement: iperf3-exporter.iperf3.svc.cluster.local:9579 replacement: iperf3-exporter.default.svc.cluster.local:9579
metricRelabelings: metricRelabelings:
- sourceLabels: [__name__] - sourceLabels: [__name__]
regex: iperf3_(.+) regex: iperf3_(.+)
targetLabel: __name__ targetLabel: __name__
replacement: network_${1} replacement: network_${1}