Compare commits

...

2 Commits

Author SHA1 Message Date
61e47825ac fix postgresql 2026-05-04 09:56:45 +02:00
f1e56a27d3 cnpg allowed empty source 2026-05-04 08:52:33 +02:00
4 changed files with 75 additions and 44 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

@@ -0,0 +1,29 @@
# 1. App für den CloudNativePG Operator
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cnpg-operator
namespace: argocd
spec:
project: default
source:
repoURL: https://cloudnative-pg.github.io/charts
chart: cloudnative-pg
targetRevision: 0.24.1
destination:
server: 'https://kubernetes.default.svc'
namespace: cnpg-system
syncPolicy:
automated:
prune: true
selfHeel: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
atuomated:
allowEmpty: true
ignoreDifferences:
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
jqPathExpressions:
- .spec.conversion.webhook.clientConfig.caBundle

View File

@@ -1,43 +0,0 @@
# 1. App für den CloudNativePG Operator
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cnpg-operator
namespace: argocd
spec:
project: default
source:
repoURL: https://cloudnative-pg.github.io/charts
chart: cloudnative-pg
targetRevision: 0.24.1
destination:
server: 'https://kubernetes.default.svc'
namespace: cnpg-system
syncPolicy:
automated:
prune: true
selfHeel: true
syncOptions:
- CreateNamespace=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

View File

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