move fail2ban-exporter-deployment to core-deployments
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful
This commit is contained in:
parent
01bae052c9
commit
2dc2c7e548
8 changed files with 251 additions and 0 deletions
64
fail2ban-exporter/deployment.yaml
Normal file
64
fail2ban-exporter/deployment.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue