Tweak probes, add monitoring where it's desired

This commit is contained in:
Alex D. 2025-04-28 19:07:28 +00:00
parent 774678b0e1
commit dcf95ae3ae
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
24 changed files with 182 additions and 25 deletions

View File

@ -44,5 +44,5 @@ spec:
ports: ports:
- name: http-git - name: http-git
containerPort: 8923 containerPort: 8923
- name: prometheus-anub-git - name: prometheus-anug
containerPort: 9103 containerPort: 9103

View File

@ -14,6 +14,6 @@ spec:
- name: http-git - name: http-git
port: 8923 port: 8923
protocol: TCP protocol: TCP
- name: prometheus-anub-git - name: prometheus-anug
port: 9103 port: 9103
protocol: TCP protocol: TCP

View File

@ -73,7 +73,7 @@ spec:
- name: prometheus-node - name: prometheus-node
containerPort: 9100 containerPort: 9100
protocol: TCP protocol: TCP
livenessProbe: readinessProbe:
httpGet: httpGet:
port: 9100 port: 9100
path: /metrics path: /metrics

View File

@ -70,7 +70,7 @@ spec:
- name: prometheus-node - name: prometheus-node
containerPort: 9100 containerPort: 9100
protocol: TCP protocol: TCP
livenessProbe: readinessProbe:
httpGet: httpGet:
port: 9100 port: 9100
path: /metrics path: /metrics

View File

@ -78,7 +78,7 @@ spec:
- name: prometheus-node - name: prometheus-node
containerPort: 9100 containerPort: 9100
protocol: TCP protocol: TCP
livenessProbe: readinessProbe:
httpGet: httpGet:
port: 9100 port: 9100
path: /metrics path: /metrics

View File

@ -69,7 +69,7 @@ spec:
- name: prometheus-node - name: prometheus-node
containerPort: 9100 containerPort: 9100
protocol: TCP protocol: TCP
livenessProbe: readinessProbe:
httpGet: httpGet:
port: 9100 port: 9100
path: /metrics path: /metrics

View File

@ -51,7 +51,8 @@ spec:
- name: loki-storage - name: loki-storage
mountPath: /var/lib/loki mountPath: /var/lib/loki
ports: ports:
- containerPort: 3100 - name: http
containerPort: 3100
readinessProbe: readinessProbe:
httpGet: httpGet:
port: 3100 port: 3100
@ -60,6 +61,25 @@ spec:
httpGet: httpGet:
port: 3100 port: 3100
path: /ready path: /ready
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumeMounts:
- name: loki-storage
mountPath: /var/lib/loki
readOnly: true
volumes: volumes:
- name: loki-storage - name: loki-storage
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -52,6 +52,25 @@ spec:
containerPort: 11555 containerPort: 11555
- name: auth - name: auth
containerPort: 11666 containerPort: 11666
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumeMounts:
- name: mail-storage
mountPath: /var/mail
readOnly: true
volumes: volumes:
- name: mail-storage - name: mail-storage
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -20,3 +20,6 @@ spec:
- name: auth - name: auth
port: 11666 port: 11666
protocol: TCP protocol: TCP
- name: prometheus-node
port: 9100
protocol: TCP

View File

@ -93,6 +93,21 @@ spec:
volumeMounts: volumeMounts:
- name: logger-exchange - name: logger-exchange
mountPath: /var/log/postfix mountPath: /var/log/postfix
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumes: volumes:
- name: postfix-storage - name: postfix-storage
emptyDir: emptyDir:

View File

@ -14,3 +14,6 @@ spec:
- name: smtp - name: smtp
port: 25 port: 25
protocol: TCP protocol: TCP
- name: prometheus-node
port: 9100
protocol: TCP

View File

@ -50,10 +50,29 @@ spec:
- name: rspamd-data - name: rspamd-data
mountPath: /var/lib/rspamd mountPath: /var/lib/rspamd
ports: ports:
- containerPort: 7510 - name: milter
- containerPort: 7511 containerPort: 7510
- containerPort: 7512 - name: prometheus-ctrl
- containerPort: 7513 containerPort: 7512
livenessProbe:
httpGet:
port: 7512
path: /ping
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumes: volumes:
- name: rspamd-data - name: rspamd-data
emptyDir: emptyDir:

View File

@ -11,15 +11,12 @@ spec:
app: rspamd app: rspamd
type: ClusterIP type: ClusterIP
ports: ports:
- name: normal
port: 7511
protocol: TCP
- name: controller - name: controller
port: 7512 port: 7512
protocol: TCP protocol: TCP
- name: proxy - name: proxy
port: 7510 port: 7510
protocol: TCP protocol: TCP
- name: fuzzy - name: prometheus-node
port: 7513 port: 9100
protocol: TCP protocol: TCP

View File

@ -53,7 +53,7 @@ spec:
- name: prometheus-node - name: prometheus-node
containerPort: 9100 containerPort: 9100
protocol: TCP protocol: TCP
livenessProbe: readinessProbe:
httpGet: httpGet:
port: 9100 port: 9100
path: /metrics path: /metrics

View File

@ -65,6 +65,24 @@ spec:
- name: dns-udp - name: dns-udp
protocol: UDP protocol: UDP
containerPort: 53 containerPort: 53
- name: prometheus-nsd
protocol: TCP
containerPort: 9104
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumes: volumes:
- name: nsd-db - name: nsd-db
emptyDir: emptyDir:

View File

@ -25,7 +25,7 @@ spec:
runAsUser: 10000 runAsUser: 10000
runAsGroup: 10000 runAsGroup: 10000
containers: containers:
- name: node-exporter - name: postgres-exporter
image: redxen.eu/daemons/postgres_exporter:latest image: redxen.eu/daemons/postgres_exporter:latest
securityContext: securityContext:
capabilities: capabilities:

View File

@ -83,7 +83,7 @@ spec:
- name: prometheus-node - name: prometheus-node
containerPort: 9100 containerPort: 9100
protocol: TCP protocol: TCP
livenessProbe: readinessProbe:
httpGet: httpGet:
port: 9100 port: 9100
path: /metrics path: /metrics
@ -91,14 +91,10 @@ spec:
- name: postgresql-storage - name: postgresql-storage
mountPath: /var/lib/postgresql/data mountPath: /var/lib/postgresql/data
readOnly: true readOnly: true
- name: tmpfs-run
mountPath: /run/postgresql
readOnly: true
volumes: volumes:
- name: postgresql-storage - name: postgresql-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: postgresql-pvc claimName: postgresql-pvc
readOnly: false
- name: tmpfs-run - name: tmpfs-run
emptyDir: emptyDir:
medium: Memory medium: Memory

View File

@ -57,8 +57,26 @@ spec:
httpGet: httpGet:
port: 9090 port: 9090
path: / path: /
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumeMounts:
- name: prometheus-storage
mountPath: /var/lib/prometheus
readOnly: true
volumes: volumes:
- name: prometheus-storage - name: prometheus-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: prometheus-pvc claimName: prometheus-pvc
readOnly: false

View File

@ -14,3 +14,6 @@ spec:
- name: http - name: http
port: 9090 port: 9090
protocol: TCP protocol: TCP
- name: prometheus-node
port: 9100
protocol: TCP

View File

@ -55,6 +55,28 @@ spec:
readinessProbe: readinessProbe:
exec: exec:
command: ["redis-cli", "ping"] command: ["redis-cli", "ping"]
livenessProbe:
exec:
command: ["redis-cli", "ping"]
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumeMounts:
- name: redis-storage
mountPath: /var/lib/redis
readOnly: true
volumes: volumes:
- name: redis-storage - name: redis-storage
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -14,3 +14,6 @@ spec:
- name: redis - name: redis
port: 6379 port: 6379
protocol: TCP protocol: TCP
- name: prometheus-node
port: 9100
protocol: TCP

View File

@ -64,4 +64,3 @@ spec:
- name: registry-storage - name: registry-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: registry-pvc claimName: registry-pvc
readOnly: false

View File

@ -76,6 +76,25 @@ spec:
httpGet: httpGet:
port: 80 port: 80
path: / path: /
- name: node-exporter
image: redxen.eu/daemons/node_exporter:latest
securityContext:
capabilities:
drop: ["ALL"]
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
ports:
- name: prometheus-node
containerPort: 9100
protocol: TCP
readinessProbe:
httpGet:
port: 9100
path: /metrics
volumeMounts:
- name: seedbox-data
mountPath: /var/data
readOnly: true
volumes: volumes:
- name: seedbox-data - name: seedbox-data
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -14,3 +14,6 @@ spec:
- name: http - name: http
port: 80 port: 80
protocol: TCP protocol: TCP
- name: prometheus-node
port: 9100
protocol: TCP