Compare commits

..

59 commits

Author SHA1 Message Date
cd3b26f448
chore(longhorn): switch to fsn1 objectstorage & update bucket name
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-06 02:13:17 +01:00
5ac0b378ef Merge pull request 'FAIL2BAN PROMETHEUS EXPORTER: update image tag to 52' (#264) from 52_fail2ban_prometheus_exporter into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-06 01:14:32 +01:00
a6cf3c2e55 FAIL2BAN PROMETHEUS EXPORTER: update image tag to 52 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-06 00:14:24 +00:00
a3cd97f907 Merge pull request 'FAIL2BAN PROMETHEUS EXPORTER: update image tag to 50' (#263) from 50_fail2ban_prometheus_exporter into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-06 00:14:40 +01:00
d953ef6aa3 FAIL2BAN PROMETHEUS EXPORTER: update image tag to 50 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-05 23:14:32 +00:00
c98106baa0 Merge pull request 'COUNTRY GEO LOCATION: update image tag to 31' (#262) from 31_country_geo_location into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-06 00:13:01 +01:00
7465cf856f COUNTRY GEO LOCATION: update image tag to 31 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-05 23:12:48 +00:00
8757be0399 Merge pull request 'DASHBOARD STAGING: update image tag to 191' (#261) from 191_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-05 15:45:10 +01:00
646d251163 DASHBOARD STAGING: update image tag to staging-191 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-05 14:45:01 +00:00
4179ebb298 Merge pull request 'DASHBOARD STAGING: update image tag to 190' (#260) from 190_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-05 03:06:39 +01:00
d5ebc335ff DASHBOARD STAGING: update image tag to staging-190 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-05 02:06:29 +00:00
e52ef858c9 Merge pull request 'DASHBOARD: update image tag to 189' (#258) from 189_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-04 19:08:24 +01:00
63d4b60959 DASHBOARD: update image tag to 189 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-04 18:08:14 +00:00
78ded34c5b Merge pull request 'DASHBOARD STAGING: update image tag to 188' (#257) from 188_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-04 19:05:45 +01:00
cf472d8a0b DASHBOARD STAGING: update image tag to staging-188 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-04 18:05:35 +00:00
cc2e7f74c8 Merge pull request 'DASHBOARD: update image tag to 187' (#256) from 187_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-03 05:07:07 +01:00
0a2f399ce1 DASHBOARD: update image tag to 187 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-03 04:07:00 +00:00
a624181d60 Merge pull request 'DASHBOARD STAGING: update image tag to 186' (#255) from 186_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-03 05:05:16 +01:00
c5f4690398 DASHBOARD STAGING: update image tag to staging-186 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-03 04:05:05 +00:00
b8fabf5a34 Merge pull request 'DASHBOARD: update image tag to 185' (#254) from 185_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 20:08:44 +01:00
f5ab42e21d DASHBOARD: update image tag to 185 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 19:08:35 +00:00
1ce281a633 Merge pull request 'DASHBOARD STAGING: update image tag to 184' (#253) from 184_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 20:06:08 +01:00
3972f31025 DASHBOARD STAGING: update image tag to staging-184 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 19:05:58 +00:00
6ac6410d6a Merge pull request 'FAIL2BAN PROMETHEUS EXPORTER: update image tag to 48' (#252) from 48_fail2ban_prometheus_exporter into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 04:14:30 +01:00
af96fce872 FAIL2BAN PROMETHEUS EXPORTER: update image tag to 48 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 03:14:21 +00:00
3973d31fb2 Merge pull request 'COUNTRY GEO LOCATION: update image tag to 29' (#250) from 29_country_geo_location into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 03:14:52 +01:00
7532fa1882 COUNTRY GEO LOCATION: update image tag to 29 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-11-01 02:14:42 +00:00
3c2b9b9c1b Merge pull request 'DASHBOARD: update image tag to 183' (#249) from 183_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 20:07:09 +01:00
b30157d9bd DASHBOARD: update image tag to 183 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 19:07:01 +00:00
efc99d4972 Merge pull request 'DASHBOARD STAGING: update image tag to 182' (#248) from 182_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 20:05:42 +01:00
93e6017176 DASHBOARD STAGING: update image tag to staging-182 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 19:05:33 +00:00
f461b675c1 Merge pull request 'DASHBOARD: update image tag to 181' (#247) from 181_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 17:09:12 +01:00
eee1e280de DASHBOARD: update image tag to 181 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 16:09:04 +00:00
834ba80b25 Merge pull request 'DASHBOARD STAGING: update image tag to 180' (#246) from 180_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 17:06:07 +01:00
eb631e6bd8 DASHBOARD STAGING: update image tag to staging-180 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 16:05:58 +00:00
0b4e9e48eb Merge pull request 'FAIL2BAN PROMETHEUS EXPORTER: update image tag to 44' (#245) from 44_fail2ban_prometheus_exporter into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 15:16:23 +01:00
4ed8f1abe9 FAIL2BAN PROMETHEUS EXPORTER: update image tag to 44 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 14:16:15 +00:00
107139ff7e Merge pull request 'COUNTRY GEO LOCATION: update image tag to 27' (#244) from 27_country_geo_location into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 14:17:59 +01:00
tom
6b43be1176 COUNTRY GEO LOCATION: update image tag to 27 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 13:17:51 +00:00
bb9e22ffe7 Merge pull request 'FAIL2BAN PROMETHEUS EXPORTER: update image tag to 42' (#243) from 42_fail2ban_prometheus_exporter into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 14:17:18 +01:00
tom
9aae18ec30 FAIL2BAN PROMETHEUS EXPORTER: update image tag to 42 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 13:17:11 +00:00
e84b8529c5 Merge pull request 'chore: move fail2ban-exporter-deployment to core-deployments' (#233) from tn-move-fail2ban-exporter-deployment-to-core-deployments into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
Reviewed-on: #233
Reviewed-by: Aaron Riedel <git@ar21.de>
2024-10-31 14:07:34 +01:00
43dfcc4b8f Merge pull request 'DASHBOARD: update image tag to 179' (#242) from 179_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 08:41:43 +01:00
e9722b8452 DASHBOARD: update image tag to 179 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 06:07:51 +00:00
3635d9de70 Merge pull request 'DASHBOARD STAGING: update image tag to 178' (#241) from 178_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 07:04:42 +01:00
101a6d29ab DASHBOARD STAGING: update image tag to staging-178 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-31 06:04:32 +00:00
c8cd3c003b Merge pull request 'DASHBOARD: update image tag to 177' (#239) from 177_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 19:07:37 +01:00
8b5c1ff021 DASHBOARD: update image tag to 177 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 18:07:29 +00:00
6477efa1aa Merge pull request 'DASHBOARD STAGING: update image tag to 176' (#238) from 176_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 19:05:54 +01:00
bdb79cda63 DASHBOARD STAGING: update image tag to staging-176 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 18:05:47 +00:00
384d7ddff3 Merge pull request 'DASHBOARD: update image tag to 175' (#237) from 175_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 18:06:15 +01:00
9723669778 DASHBOARD: update image tag to 175 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 17:06:05 +00:00
68ef9eb380 Merge pull request 'DASHBOARD STAGING: update image tag to 174' (#236) from 174_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 18:04:58 +01:00
a992c3265e DASHBOARD STAGING: update image tag to staging-174 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 17:04:48 +00:00
630971c6c0 Merge pull request 'DASHBOARD: update image tag to 173' (#235) from 173_dashboard_prod into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 15:20:55 +01:00
2fc99a5bdc DASHBOARD: update image tag to 173 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 14:20:48 +00:00
7d0382fcc4 Merge pull request 'DASHBOARD STAGING: update image tag to 172' (#234) from 172_dashboard_staging into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 15:18:56 +01:00
f88729b372 DASHBOARD STAGING: update image tag to staging-172 (done automagically via Woodpecker pipeline)
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 14:18:47 +00:00
2dc2c7e548
move fail2ban-exporter-deployment to core-deployments
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
2024-10-29 13:57:42 +01:00
10 changed files with 252 additions and 2 deletions

View file

@ -72,3 +72,24 @@ spec:
automated: automated:
selfHeal: false selfHeal: false
prune: false prune: false
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: fail2ban-prometheus
namespace: argocd
spec:
project: default
source:
repoURL: https://git.ar21.de/yolokube/core-deployments.git
targetRevision: HEAD
path: fail2ban-exporter
destination:
server: https://kubernetes.default.svc
namespace: fail2ban-prometheus
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: false
prune: true

View file

@ -5,5 +5,5 @@ kind: Kustomization
images: images:
- name: git.ar21.de/yolokube/dashboard - name: git.ar21.de/yolokube/dashboard
newName: git.ar21.de/yolokube/dashboard newName: git.ar21.de/yolokube/dashboard
newTag: "171" newTag: "189"
namespace: dashboard namespace: dashboard

View file

@ -5,7 +5,7 @@ kind: Kustomization
images: images:
- name: git.ar21.de/yolokube/dashboard - name: git.ar21.de/yolokube/dashboard
newName: git.ar21.de/yolokube/dashboard newName: git.ar21.de/yolokube/dashboard
newTag: staging-170 newTag: staging-191
namespace: dashboard-staging namespace: dashboard-staging
patches: patches:
- patch: |- - patch: |-

View file

@ -0,0 +1,56 @@
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: fail2ban-prometheus-exporter
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-prometheus-exporter
name: fail2ban-prometheus-exporter
namespace: fail2ban-prometheus
spec:
selector:
matchLabels:
app: fail2ban-prometheus-exporter
template:
metadata:
labels:
app: fail2ban-prometheus-exporter
app.kubernetes.io/instance: fail2ban
app.kubernetes.io/name: fail2ban-prometheus-exporter
spec:
containers:
- env:
- name: F2B_GEOIP_SERVICE
value: fail2ban-geoip
image: git.ar21.de/yolokube/fail2ban-prometheus-exporter:latest
imagePullPolicy: IfNotPresent
name: fail2ban-prometheus-exporter
ports:
- containerPort: 9191
name: http-metrics
protocol: TCP
resources:
limits:
cpu: 800m
memory: 128Mi
requests:
cpu: 200m
memory: 32Mi
volumeMounts:
- mountPath: /var/run/fail2ban/fail2ban.sock
name: fail2ban
readOnly: true
serviceAccountName: fail2ban-prometheus-exporter-service-account
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
volumes:
- hostPath:
path: /var/run/fail2ban/fail2ban.sock
type: ""
name: fail2ban

View file

@ -0,0 +1,64 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: fail2ban-geoip
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-geoip
name: fail2ban-geoip
namespace: fail2ban-prometheus
spec:
replicas: 2
selector:
matchLabels:
app: fail2ban-geoip
template:
metadata:
labels:
app: fail2ban-geoip
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-geoip
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- fail2ban-geoip
topologyKey: kubernetes.io/hostname
weight: 1
containers:
- env:
- name: GEOIP_LISTEN_ADDRESS
value: :8080
- name: GEOIP_DATA_URL
value: https://data.neuber.io/data.csv
image: git.ar21.de/yolokube/country-geo-locations:latest
imagePullPolicy: IfNotPresent
name: fail2ban-geoip
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
httpGet:
httpHeaders:
- name: Accept
value: application/json
path: /api/v1/location/1.1.1.1
port: http
initialDelaySeconds: 3
periodSeconds: 2
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "1.5"
memory: 3.5Gi
serviceAccountName: fail2ban-geoip-service-account

View file

@ -0,0 +1,17 @@
resources:
- ./namespace.yaml
- ./serviceaccount.yaml
- ./daemonset.yaml
- ./deployment.yaml
- ./service.yaml
- ./servicemonitor.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: git.ar21.de/yolokube/country-geo-locations
newName: git.ar21.de/yolokube/country-geo-locations
newTag: "31"
- name: git.ar21.de/yolokube/fail2ban-prometheus-exporter
newName: git.ar21.de/yolokube/fail2ban-prometheus-exporter
newTag: "52"
namespace: fail2ban-prometheus

View file

@ -0,0 +1,8 @@
---
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/instance: fail2ban-prometheus
prometheus: yolokube
name: fail2ban-prometheus

View file

@ -0,0 +1,38 @@
---
apiVersion: v1
kind: Service
metadata:
labels:
app: fail2ban-geoip
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-geoip
name: fail2ban-geoip
namespace: fail2ban-prometheus
spec:
ports:
- name: http
port: 80
targetPort: http
selector:
app: fail2ban-geoip
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: fail2ban-prometheus-exporter
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-prometheus-exporter
name: fail2ban-prometheus-exporter
namespace: fail2ban-prometheus
spec:
internalTrafficPolicy: Cluster
ports:
- name: http-metrics
port: 9191
protocol: TCP
targetPort: 9191
selector:
app: fail2ban-prometheus-exporter
type: ClusterIP

View file

@ -0,0 +1,18 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-geoip
name: fail2ban-geoip-service-account
namespace: fail2ban-prometheus
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-prometheus-exporter
name: fail2ban-prometheus-exporter-service-account
namespace: fail2ban-prometheus

View file

@ -0,0 +1,28 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: fail2ban-prometheus-exporter
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-prometheus-exporter
name: fail2ban-prometheus-servicemonitor
namespace: fail2ban-prometheus
spec:
attachMetadata:
node: false
endpoints:
- interval: 30s
path: /metrics
port: http-metrics
relabelings:
- action: replace
sourceLabels:
- __meta_kubernetes_endpoint_node_name
targetLabel: node
scheme: http
jobLabel: jobLabel
selector:
matchLabels:
app.kubernetes.io/instance: fail2ban-prometheus
app.kubernetes.io/name: fail2ban-prometheus-exporter