fix postgresql

This commit is contained in:
2026-05-04 09:56:45 +02:00
parent f1e56a27d3
commit 61e47825ac
3 changed files with 52 additions and 23 deletions

43
README.md Normal file
View File

@@ -0,0 +1,43 @@
# Anleitung
## Postgresql Timescale
### Fehler hebehen
#### `no matches for kind "Pooler" in version "postgresql.cnpg.io/v1"`
Lösung:
- CRDs manuell aus dem Internet installieren
```bash
kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/v1.24.1/releases/cnpg-1.24.1.yaml
```
***Achte auf die Versionnumer zb. 1.24.1***
- Operator-Pod neu starten
```bash
kubectl delete pod -n cnpg-system -l app.kubernetes.io/name=cloudnative-pg
```
- ArgoCD-UI cnpg-operator Sync
### Wenn es nicht geht, hilft **"Totaler Reset"**
1. Lösche die Webhooks komplett
```
kubectl delete validatingwebhookconfiguration cnpg-webhook-configuration
kubectl delete mutatingwebhookconfiguration cnpg-webhook-configuration
```
2. Lösche den Operator-Pod:
```bash
kubectl delete pod -n cnpg-system -l app.kubernetes.io/name=cloudnative-pg
```
3. ArgoCD "Force Sync": ArgoCD-UI cnpg-operator Sync mit Replace oder Prune

View File

@@ -19,27 +19,11 @@ spec:
selfHeel: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
atuomated:
allowEmpty: true
---
# 2. App für deine TimescaleDB (über CNPG)
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: timescale-db
namespace: argocd
spec:
project: default
source:
repoURL: 'https://gitea.vhn-demo.duckdns.org/hoang/strimzi.git'
path: k8s/base/database
targetRevision: main
destination:
server: 'https://kubernetes.default.svc'
namespace: database
syncPolicy:
automated:
prune: true
selfHeel: true
syncOptions:
- CreateNamespace=true
ignoreDifferences:
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
jqPathExpressions:
- .spec.conversion.webhook.clientConfig.caBundle

View File

@@ -15,4 +15,6 @@ spec:
syncPolicy:
automated:
prune: true
selfHeel: true
selfHeel: true
syncOptions:
- CreateNamespace=true