Merge pull request 'Automated Manifest Update' (#5535) from auto/update-manifests into manifests
Reviewed-on: #5535
This commit was merged in pull request #5535.
This commit is contained in:
@@ -131,7 +131,6 @@ data:
|
|||||||
ollama IN CNAME traefik-cl01tl
|
ollama IN CNAME traefik-cl01tl
|
||||||
omni-tools IN CNAME traefik-cl01tl
|
omni-tools IN CNAME traefik-cl01tl
|
||||||
paperless-ngx IN CNAME traefik-cl01tl
|
paperless-ngx IN CNAME traefik-cl01tl
|
||||||
photoview IN CNAME traefik-cl01tl
|
|
||||||
plex IN CNAME traefik-cl01tl
|
plex IN CNAME traefik-cl01tl
|
||||||
postiz IN CNAME traefik-cl01tl
|
postiz IN CNAME traefik-cl01tl
|
||||||
prometheus IN CNAME traefik-cl01tl
|
prometheus IN CNAME traefik-cl01tl
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
checksum/configMaps: 1e50d70ecca4e5208d6b585c76462b65bb9fe68fb24eb0ad29d93a1cba14660e
|
checksum/configMaps: 6309421b11a654946509b84a07e9f18c48c9538078368817f4c0cd78c62af3b1
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/controller: main
|
app.kubernetes.io/controller: main
|
||||||
app.kubernetes.io/instance: blocky
|
app.kubernetes.io/instance: blocky
|
||||||
|
|||||||
@@ -114,15 +114,6 @@ data:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
name: immich
|
name: immich
|
||||||
url: https://immich.alexlebens.net
|
url: https://immich.alexlebens.net
|
||||||
- alerts:
|
|
||||||
- type: ntfy
|
|
||||||
conditions:
|
|
||||||
- '[STATUS] == 200'
|
|
||||||
- '[CERTIFICATE_EXPIRATION] > 240h'
|
|
||||||
group: core
|
|
||||||
interval: 30s
|
|
||||||
name: photoview
|
|
||||||
url: https://photoview.alexlebens.net
|
|
||||||
- alerts:
|
- alerts:
|
||||||
- type: ntfy
|
- type: ntfy
|
||||||
conditions:
|
conditions:
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ spec:
|
|||||||
app.kubernetes.io/name: gatus
|
app.kubernetes.io/name: gatus
|
||||||
app.kubernetes.io/instance: gatus
|
app.kubernetes.io/instance: gatus
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: 0c6ac7e17e1d05499ee70f44582efeda5f75ff8a1ecea9d85f6c71851de0252b
|
checksum/config: 2045c35bfe77e066a567e99d66cb332dbc1aa9d4e4f6e281f601c552fc4ff610
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: default
|
serviceAccountName: default
|
||||||
automountServiceAccountToken: false
|
automountServiceAccountToken: false
|
||||||
|
|||||||
@@ -105,12 +105,6 @@ data:
|
|||||||
href: https://immich.alexlebens.net
|
href: https://immich.alexlebens.net
|
||||||
siteMonitor: http://immich.immich:2283
|
siteMonitor: http://immich.immich:2283
|
||||||
statusStyle: dot
|
statusStyle: dot
|
||||||
- Pictures:
|
|
||||||
icon: sh-photoview.webp
|
|
||||||
description: Photoview
|
|
||||||
href: https://photoview.alexlebens.net
|
|
||||||
siteMonitor: http://photoview.photoview:80
|
|
||||||
statusStyle: dot
|
|
||||||
- Pictures:
|
- Pictures:
|
||||||
icon: sh-foldergram.webp
|
icon: sh-foldergram.webp
|
||||||
description: Foldergram
|
description: Foldergram
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
checksum/configMaps: 0b72f190c612497cfa4c10e6aa585c1ece7909d3dc2b6bcf766108443decc226
|
checksum/configMaps: 999305e7f650087ece5d8de0c833358d7d79df46281ad88535b3b48e2ca3784e
|
||||||
checksum/secrets: d3ba83f111cd32f92c909268c55ad8bbd4f9e299b74b35b33c1a011180d8b378
|
checksum/secrets: d3ba83f111cd32f92c909268c55ad8bbd4f9e299b74b35b33c1a011180d8b378
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/controller: main
|
app.kubernetes.io/controller: main
|
||||||
|
|||||||
@@ -1,66 +0,0 @@
|
|||||||
apiVersion: postgresql.cnpg.io/v1
|
|
||||||
kind: Cluster
|
|
||||||
metadata:
|
|
||||||
name: photoview-postgresql-18-cluster
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: photoview-postgresql-18-cluster
|
|
||||||
helm.sh/chart: postgres-18-cluster-7.10.0
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
app.kubernetes.io/version: "7.10.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
spec:
|
|
||||||
instances: 3
|
|
||||||
imageName: "ghcr.io/cloudnative-pg/postgresql:18.3-standard-trixie"
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
postgresUID: 26
|
|
||||||
postgresGID: 26
|
|
||||||
storage:
|
|
||||||
size: 10Gi
|
|
||||||
storageClass: local-path
|
|
||||||
walStorage:
|
|
||||||
size: 2Gi
|
|
||||||
storageClass: local-path
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
hugepages-2Mi: 256Mi
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 256Mi
|
|
||||||
affinity:
|
|
||||||
enablePodAntiAffinity: true
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
primaryUpdateMethod: switchover
|
|
||||||
primaryUpdateStrategy: unsupervised
|
|
||||||
logLevel: info
|
|
||||||
enableSuperuserAccess: false
|
|
||||||
enablePDB: true
|
|
||||||
postgresql:
|
|
||||||
parameters:
|
|
||||||
hot_standby_feedback: "on"
|
|
||||||
max_slot_wal_keep_size: 2000MB
|
|
||||||
shared_buffers: 128MB
|
|
||||||
monitoring:
|
|
||||||
enablePodMonitor: true
|
|
||||||
disableDefaultQueries: false
|
|
||||||
plugins:
|
|
||||||
- name: barman-cloud.cloudnative-pg.io
|
|
||||||
enabled: true
|
|
||||||
isWALArchiver: true
|
|
||||||
parameters:
|
|
||||||
barmanObjectName: "photoview-postgresql-18-backup-garage-local"
|
|
||||||
serverName: "photoview-postgresql-18-backup-1"
|
|
||||||
bootstrap:
|
|
||||||
recovery:
|
|
||||||
database: app
|
|
||||||
source: photoview-postgresql-18-backup-1
|
|
||||||
externalClusters:
|
|
||||||
- name: photoview-postgresql-18-backup-1
|
|
||||||
plugin:
|
|
||||||
name: barman-cloud.cloudnative-pg.io
|
|
||||||
enabled: true
|
|
||||||
isWALArchiver: false
|
|
||||||
parameters:
|
|
||||||
barmanObjectName: "photoview-postgresql-18-recovery"
|
|
||||||
serverName: photoview-postgresql-18-backup-1
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/controller: main
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: photoview
|
|
||||||
helm.sh/chart: photoview-4.6.2
|
|
||||||
namespace: photoview
|
|
||||||
spec:
|
|
||||||
revisionHistoryLimit: 3
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/controller: main
|
|
||||||
app.kubernetes.io/name: photoview
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/controller: main
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/name: photoview
|
|
||||||
spec:
|
|
||||||
enableServiceLinks: false
|
|
||||||
serviceAccountName: default
|
|
||||||
automountServiceAccountToken: true
|
|
||||||
hostIPC: false
|
|
||||||
hostNetwork: false
|
|
||||||
hostPID: false
|
|
||||||
dnsPolicy: ClusterFirst
|
|
||||||
initContainers:
|
|
||||||
- command:
|
|
||||||
- /bin/sh
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
/bin/chown -R 999:999 /app/cache
|
|
||||||
image: busybox:1.37.0
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
name: init-chmod-data
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /app/cache
|
|
||||||
name: cache
|
|
||||||
containers:
|
|
||||||
- env:
|
|
||||||
- name: PHOTOVIEW_DATABASE_DRIVER
|
|
||||||
value: postgres
|
|
||||||
- name: PHOTOVIEW_POSTGRES_URL
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: uri
|
|
||||||
name: photoview-postgresql-18-cluster-app
|
|
||||||
- name: PHOTOVIEW_MEDIA_CACHE
|
|
||||||
value: /app/cache
|
|
||||||
image: photoview/photoview:2.4.0
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
name: main
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 10m
|
|
||||||
memory: 512Mi
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /app/cache
|
|
||||||
name: cache
|
|
||||||
- mountPath: /photos
|
|
||||||
name: media
|
|
||||||
readOnly: true
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: photoview-cache
|
|
||||||
- name: media
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: photoview-nfs-storage
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: photoview-postgresql-18-backup-garage-local-secret
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: photoview-postgresql-18-backup-garage-local-secret
|
|
||||||
helm.sh/chart: postgres-18-cluster-7.10.0
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
app.kubernetes.io/version: "7.10.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
spec:
|
|
||||||
secretStoreRef:
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
name: vault
|
|
||||||
data:
|
|
||||||
- secretKey: ACCESS_REGION
|
|
||||||
remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: /garage/home-infra/postgres-backups
|
|
||||||
metadataPolicy: None
|
|
||||||
property: ACCESS_REGION
|
|
||||||
- secretKey: ACCESS_KEY_ID
|
|
||||||
remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: /garage/home-infra/postgres-backups
|
|
||||||
metadataPolicy: None
|
|
||||||
property: ACCESS_KEY_ID
|
|
||||||
- secretKey: ACCESS_SECRET_KEY
|
|
||||||
remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: /garage/home-infra/postgres-backups
|
|
||||||
metadataPolicy: None
|
|
||||||
property: ACCESS_SECRET_KEY
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: photoview-postgresql-18-recovery-secret
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
helm.sh/chart: postgres-18-cluster-7.10.0
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
app.kubernetes.io/version: "7.10.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: photoview-postgresql-18-recovery-secret
|
|
||||||
spec:
|
|
||||||
secretStoreRef:
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
name: vault
|
|
||||||
data:
|
|
||||||
- secretKey: ACCESS_REGION
|
|
||||||
remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: /garage/home-infra/postgres-backups
|
|
||||||
metadataPolicy: None
|
|
||||||
property: ACCESS_REGION
|
|
||||||
- secretKey: ACCESS_KEY_ID
|
|
||||||
remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: /garage/home-infra/postgres-backups
|
|
||||||
metadataPolicy: None
|
|
||||||
property: ACCESS_KEY_ID
|
|
||||||
- secretKey: ACCESS_SECRET_KEY
|
|
||||||
remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: /garage/home-infra/postgres-backups
|
|
||||||
metadataPolicy: None
|
|
||||||
property: ACCESS_SECRET_KEY
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
apiVersion: gateway.networking.k8s.io/v1
|
|
||||||
kind: HTTPRoute
|
|
||||||
metadata:
|
|
||||||
name: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: photoview
|
|
||||||
helm.sh/chart: photoview-4.6.2
|
|
||||||
namespace: photoview
|
|
||||||
spec:
|
|
||||||
parentRefs:
|
|
||||||
- group: gateway.networking.k8s.io
|
|
||||||
kind: Gateway
|
|
||||||
name: traefik-gateway
|
|
||||||
namespace: traefik
|
|
||||||
hostnames:
|
|
||||||
- "photoview.alexlebens.net"
|
|
||||||
rules:
|
|
||||||
- backendRefs:
|
|
||||||
- group: ""
|
|
||||||
kind: Service
|
|
||||||
name: photoview
|
|
||||||
namespace: photoview
|
|
||||||
port: 80
|
|
||||||
weight: 100
|
|
||||||
matches:
|
|
||||||
- path:
|
|
||||||
type: PathPrefix
|
|
||||||
value: /
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
apiVersion: barmancloud.cnpg.io/v1
|
|
||||||
kind: ObjectStore
|
|
||||||
metadata:
|
|
||||||
name: photoview-postgresql-18-backup-garage-local
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: photoview-postgresql-18-backup-garage-local
|
|
||||||
helm.sh/chart: postgres-18-cluster-7.10.0
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
app.kubernetes.io/version: "7.10.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
spec:
|
|
||||||
retentionPolicy: 7d
|
|
||||||
instanceSidecarConfiguration:
|
|
||||||
env:
|
|
||||||
- name: AWS_REQUEST_CHECKSUM_CALCULATION
|
|
||||||
value: when_required
|
|
||||||
- name: AWS_RESPONSE_CHECKSUM_VALIDATION
|
|
||||||
value: when_required
|
|
||||||
configuration:
|
|
||||||
destinationPath: s3://postgres-backups/cl01tl/photoview/photoview-postgresql-18-cluster
|
|
||||||
endpointURL: http://garage-main.garage:3900
|
|
||||||
s3Credentials:
|
|
||||||
accessKeyId:
|
|
||||||
name: photoview-postgresql-18-backup-garage-local-secret
|
|
||||||
key: ACCESS_KEY_ID
|
|
||||||
secretAccessKey:
|
|
||||||
name: photoview-postgresql-18-backup-garage-local-secret
|
|
||||||
key: ACCESS_SECRET_KEY
|
|
||||||
region:
|
|
||||||
name: photoview-postgresql-18-backup-garage-local-secret
|
|
||||||
key: ACCESS_REGION
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: barmancloud.cnpg.io/v1
|
|
||||||
kind: ObjectStore
|
|
||||||
metadata:
|
|
||||||
name: "photoview-postgresql-18-recovery"
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
helm.sh/chart: postgres-18-cluster-7.10.0
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
app.kubernetes.io/version: "7.10.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: "photoview-postgresql-18-recovery"
|
|
||||||
spec:
|
|
||||||
configuration:
|
|
||||||
destinationPath: s3://postgres-backups/cl01tl/photoview/photoview-postgresql-18-cluster
|
|
||||||
endpointURL: http://garage-main.garage:3900
|
|
||||||
wal:
|
|
||||||
compression: snappy
|
|
||||||
maxParallel: 1
|
|
||||||
data:
|
|
||||||
compression: snappy
|
|
||||||
jobs: 1
|
|
||||||
s3Credentials:
|
|
||||||
accessKeyId:
|
|
||||||
name: photoview-postgresql-18-recovery-secret
|
|
||||||
key: ACCESS_KEY_ID
|
|
||||||
secretAccessKey:
|
|
||||||
name: photoview-postgresql-18-recovery-secret
|
|
||||||
key: ACCESS_SECRET_KEY
|
|
||||||
region:
|
|
||||||
name: photoview-postgresql-18-recovery-secret
|
|
||||||
key: ACCESS_REGION
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: photoview-nfs-storage
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: photoview-nfs-storage
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
spec:
|
|
||||||
persistentVolumeReclaimPolicy: Retain
|
|
||||||
storageClassName: nfs-client
|
|
||||||
capacity:
|
|
||||||
storage: 1Gi
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
nfs:
|
|
||||||
path: /volume2/Storage/Pictures
|
|
||||||
server: synologybond.alexlebens.net
|
|
||||||
mountOptions:
|
|
||||||
- vers=4
|
|
||||||
- minorversion=1
|
|
||||||
- noac
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: photoview-cache
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: photoview
|
|
||||||
helm.sh/chart: photoview-4.6.2
|
|
||||||
namespace: photoview
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- "ReadWriteOnce"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: "10Gi"
|
|
||||||
storageClassName: "ceph-block"
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: photoview-nfs-storage
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: photoview-nfs-storage
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
spec:
|
|
||||||
volumeName: photoview-nfs-storage
|
|
||||||
storageClassName: nfs-client
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
@@ -1,270 +0,0 @@
|
|||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: PrometheusRule
|
|
||||||
metadata:
|
|
||||||
name: photoview-postgresql-18-alert-rules
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: photoview-postgresql-18-alert-rules
|
|
||||||
helm.sh/chart: postgres-18-cluster-7.10.0
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
app.kubernetes.io/version: "7.10.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
spec:
|
|
||||||
groups:
|
|
||||||
- name: cloudnative-pg/photoview-postgresql-18
|
|
||||||
rules:
|
|
||||||
- alert: CNPGClusterBackendsWaitingWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster a backend is waiting for longer than 5 minutes.
|
|
||||||
description: |-
|
|
||||||
Pod {{ $labels.pod }}
|
|
||||||
has been waiting for longer than 5 minutes
|
|
||||||
expr: |
|
|
||||||
cnpg_backends_waiting_total{namespace="photoview"} > 300
|
|
||||||
for: 1m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterDatabaseDeadlockConflictsWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster has over 10 deadlock conflicts.
|
|
||||||
description: |-
|
|
||||||
There are over 10 deadlock conflicts in
|
|
||||||
{{ $labels.pod }}
|
|
||||||
expr: |
|
|
||||||
cnpg_pg_stat_database_deadlocks{namespace="photoview"} > 10
|
|
||||||
for: 1m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterHACritical
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster has no standby replicas!
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "{{`{{`}} $labels.job {{`}}`}}" has no ready standby replicas. Your cluster at a severe
|
|
||||||
risk of data loss and downtime if the primary instance fails.
|
|
||||||
|
|
||||||
The primary instance is still online and able to serve queries, although connections to the `-ro` endpoint
|
|
||||||
will fail. The `-r` endpoint os operating at reduced capacity and all traffic is being served by the main.
|
|
||||||
|
|
||||||
This can happen during a normal fail-over or automated minor version upgrades in a cluster with 2 or less
|
|
||||||
instances. The replaced instance may need some time to catch-up with the cluster primary instance.
|
|
||||||
|
|
||||||
This alarm will be always trigger if your cluster is configured to run with only 1 instance. In this
|
|
||||||
case you may want to silence it.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHACritical.md
|
|
||||||
expr: |
|
|
||||||
max by (job) (cnpg_pg_replication_streaming_replicas{namespace="photoview"} - cnpg_pg_replication_is_wal_receiver_up{namespace="photoview"}) < 1
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterHAWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster less than 2 standby replicas.
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "{{`{{`}} $labels.job {{`}}`}}" has only {{`{{`}} $value {{`}}`}} standby replicas, putting
|
|
||||||
your cluster at risk if another instance fails. The cluster is still able to operate normally, although
|
|
||||||
the `-ro` and `-r` endpoints operate at reduced capacity.
|
|
||||||
|
|
||||||
This can happen during a normal fail-over or automated minor version upgrades. The replaced instance may
|
|
||||||
need some time to catch-up with the cluster primary instance.
|
|
||||||
|
|
||||||
This alarm will be constantly triggered if your cluster is configured to run with less than 3 instances.
|
|
||||||
In this case you may want to silence it.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHAWarning.md
|
|
||||||
expr: |
|
|
||||||
max by (job) (cnpg_pg_replication_streaming_replicas{namespace="photoview"} - cnpg_pg_replication_is_wal_receiver_up{namespace="photoview"}) < 2
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterHighConnectionsCritical
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Instance maximum number of connections critical!
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" instance {{`{{`}} $labels.pod {{`}}`}} is using {{`{{`}} $value {{`}}`}}% of
|
|
||||||
the maximum number of connections.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsCritical.md
|
|
||||||
expr: |
|
|
||||||
sum by (pod) (cnpg_backends_total{namespace="photoview", pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}) / max by (pod) (cnpg_pg_settings_setting{name="max_connections", namespace="photoview", pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}) * 100 > 95
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterHighConnectionsWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Instance is approaching the maximum number of connections.
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" instance {{`{{`}} $labels.pod {{`}}`}} is using {{`{{`}} $value {{`}}`}}% of
|
|
||||||
the maximum number of connections.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsWarning.md
|
|
||||||
expr: |
|
|
||||||
sum by (pod) (cnpg_backends_total{namespace="photoview", pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}) / max by (pod) (cnpg_pg_settings_setting{name="max_connections", namespace="photoview", pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}) * 100 > 80
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterHighReplicationLag
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster high replication lag
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" is experiencing a high replication lag of
|
|
||||||
{{`{{`}} $value {{`}}`}}ms.
|
|
||||||
|
|
||||||
High replication lag indicates network issues, busy instances, slow queries or suboptimal configuration.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHighReplicationLag.md
|
|
||||||
expr: |
|
|
||||||
max(cnpg_pg_replication_lag{namespace="photoview",pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}) * 1000 > 1000
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterInstancesOnSameNode
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster instances are located on the same node.
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" has {{`{{`}} $value {{`}}`}}
|
|
||||||
instances on the same node {{`{{`}} $labels.node {{`}}`}}.
|
|
||||||
|
|
||||||
A failure or scheduled downtime of a single node will lead to a potential service disruption and/or data loss.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterInstancesOnSameNode.md
|
|
||||||
expr: |
|
|
||||||
count by (node) (kube_pod_info{namespace="photoview", pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}) > 1
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterLongRunningTransactionWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster query is taking longer than 5 minutes.
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster Pod {{ $labels.pod }}
|
|
||||||
is taking more than 5 minutes (300 seconds) for a query.
|
|
||||||
expr: |-
|
|
||||||
cnpg_backends_max_tx_duration_seconds{namespace="photoview"} > 300
|
|
||||||
for: 1m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterLowDiskSpaceCritical
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Instance is running out of disk space!
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" is running extremely low on disk space. Check attached PVCs!
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceCritical.md
|
|
||||||
expr: |
|
|
||||||
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"} / kubelet_volume_stats_capacity_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"})) > 0.9 OR
|
|
||||||
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-wal"} / kubelet_volume_stats_capacity_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-wal"})) > 0.9 OR
|
|
||||||
max(sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
|
||||||
/
|
|
||||||
sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
|
||||||
*
|
|
||||||
on(namespace, persistentvolumeclaim) group_left(volume)
|
|
||||||
kube_pod_spec_volumes_persistentvolumeclaims_info{pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}
|
|
||||||
) > 0.9
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterLowDiskSpaceWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Instance is running out of disk space.
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" is running low on disk space. Check attached PVCs.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceWarning.md
|
|
||||||
expr: |
|
|
||||||
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"} / kubelet_volume_stats_capacity_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"})) > 0.7 OR
|
|
||||||
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-wal"} / kubelet_volume_stats_capacity_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-wal"})) > 0.7 OR
|
|
||||||
max(sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
|
||||||
/
|
|
||||||
sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{namespace="photoview", persistentvolumeclaim=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
|
||||||
*
|
|
||||||
on(namespace, persistentvolumeclaim) group_left(volume)
|
|
||||||
kube_pod_spec_volumes_persistentvolumeclaims_info{pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}
|
|
||||||
) > 0.7
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterOffline
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster has no running instances!
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" has no ready instances.
|
|
||||||
|
|
||||||
Having an offline cluster means your applications will not be able to access the database, leading to
|
|
||||||
potential service disruption and/or data loss.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterOffline.md
|
|
||||||
expr: |
|
|
||||||
(count(cnpg_collector_up{namespace="photoview",pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"}) OR on() vector(0)) == 0
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: critical
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterPGDatabaseXidAgeWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster has a number of transactions from the frozen XID to the current one.
|
|
||||||
description: |-
|
|
||||||
Over 300,000,000 transactions from frozen xid
|
|
||||||
on pod {{ $labels.pod }}
|
|
||||||
expr: |
|
|
||||||
cnpg_pg_database_xid_age{namespace="photoview"} > 300000000
|
|
||||||
for: 1m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterPGReplicationWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster standby is lagging behind the primary.
|
|
||||||
description: |-
|
|
||||||
Standby is lagging behind by over 300 seconds (5 minutes)
|
|
||||||
expr: |
|
|
||||||
cnpg_pg_replication_lag{namespace="photoview"} > 300
|
|
||||||
for: 1m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterReplicaFailingReplicationWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster has a replica is failing to replicate.
|
|
||||||
description: |-
|
|
||||||
Replica {{ $labels.pod }}
|
|
||||||
is failing to replicate
|
|
||||||
expr: |
|
|
||||||
cnpg_pg_replication_in_recovery{namespace="photoview"} > cnpg_pg_replication_is_wal_receiver_up{namespace="photoview"}
|
|
||||||
for: 1m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
- alert: CNPGClusterZoneSpreadWarning
|
|
||||||
annotations:
|
|
||||||
summary: CNPG Cluster instances in the same zone.
|
|
||||||
description: |-
|
|
||||||
CloudNativePG Cluster "photoview/photoview-postgresql-18-cluster" has instances in the same availability zone.
|
|
||||||
|
|
||||||
A disaster in one availability zone will lead to a potential service disruption and/or data loss.
|
|
||||||
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterZoneSpreadWarning.md
|
|
||||||
expr: |
|
|
||||||
3 > count(count by (label_topology_kubernetes_io_zone) (kube_pod_info{namespace="photoview", pod=~"photoview-postgresql-18-cluster-([1-9][0-9]*)$"} * on(node,instance) group_left(label_topology_kubernetes_io_zone) kube_node_labels)) < 3
|
|
||||||
for: 5m
|
|
||||||
labels:
|
|
||||||
severity: warning
|
|
||||||
namespace: photoview
|
|
||||||
cnpg_cluster: photoview-postgresql-18-cluster
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: postgresql.cnpg.io/v1
|
|
||||||
kind: ScheduledBackup
|
|
||||||
metadata:
|
|
||||||
name: "photoview-postgresql-18-scheduled-backup-live-backup"
|
|
||||||
namespace: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: "photoview-postgresql-18-scheduled-backup-live-backup"
|
|
||||||
helm.sh/chart: postgres-18-cluster-7.10.0
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/part-of: photoview
|
|
||||||
app.kubernetes.io/version: "7.10.0"
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
spec:
|
|
||||||
immediate: true
|
|
||||||
suspend: false
|
|
||||||
schedule: "0 15 15 * * *"
|
|
||||||
backupOwnerReference: self
|
|
||||||
cluster:
|
|
||||||
name: photoview-postgresql-18-cluster
|
|
||||||
method: plugin
|
|
||||||
pluginConfiguration:
|
|
||||||
name: barman-cloud.cloudnative-pg.io
|
|
||||||
parameters:
|
|
||||||
barmanObjectName: "photoview-postgresql-18-backup-garage-local"
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: photoview
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/name: photoview
|
|
||||||
app.kubernetes.io/service: photoview
|
|
||||||
helm.sh/chart: photoview-4.6.2
|
|
||||||
namespace: photoview
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
name: http
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/controller: main
|
|
||||||
app.kubernetes.io/instance: photoview
|
|
||||||
app.kubernetes.io/name: photoview
|
|
||||||
Reference in New Issue
Block a user