feat: add freeleaps-postgres-cds connector

This commit is contained in:
icecheng 2025-10-23 14:24:11 +08:00
parent d2b514795c
commit 70f785ccba
5 changed files with 63 additions and 8 deletions

View File

@ -0,0 +1,55 @@
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnect
metadata:
name: freeleaps-prod-postgres-cds
namespace: freeleaps-data-platform
annotations:
strimzi.io/use-connector-resources: "true"
spec:
version: 4.0.0
bootstrapServers: freeleaps-kafka-cluster-kafka-bootstrap.freeleaps-data-platform.svc.freeleaps.cluster:9093
config:
config.storage.topic: freeleaps-prod-postgres-cds-configs
config.storage.replication.factor: -1
group.id: freeleaps-prod-postgres-cds
offset.storage.topic: freeleaps-prod-postgres-cds-offsets
offset.storage.replication.factor: -1
status.storage.topic: freeleaps-prod-postgres-cds-status
status.storage.replication.factor: -1
image: freeleaps/kafka-connectors:postgres-connector
replicas: 1
authentication:
type: scram-sha-512
username: freeleaps-user
passwordSecret:
secretName: freeleaps-user
password: password
tls:
trustedCertificates:
- secretName: freeleaps-kafka-cluster-cluster-ca-cert
pattern: "*.crt"
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnector
metadata:
name: freeleaps-prod-postgres-cds
namespace: freeleaps-data-platform
labels:
strimzi.io/cluster: freeleaps-prod-postgres-cds
spec:
class: io.debezium.connector.postgresql.PostgresConnector
config:
database.hostname: freeleaps-prod-gitea-postgresql-ha-postgresql.freeleaps-prod.svc.freeleaps.cluster
database.port: 5432
database.user: postgres
database.password: X9H2*9M2ZWYmuZ
database.dbname: gitea
database.server.name: gitea-postgres
plugin.name: pgoutput
slot.name: debezium
publication.name: debezium_publication
capture.mode: all
provide.transaction.metadata: true
snapshot.mode: initial
topic.prefix: test-raw-cds-events-prod-gitea-postgres
tasksMax: 1

View File

@ -2,7 +2,7 @@ annotations:
category: Database category: Database
images: | images: |
- name: os-shell - name: os-shell
image: docker.io/bitnami/os-shell:12-debian-12-r26 image: docker.io/freeleaps/os-shell:12-debian-12-r36
- name: postgres-exporter - name: postgres-exporter
image: docker.io/bitnami/postgres-exporter:0.15.0-debian-12-r38 image: docker.io/bitnami/postgres-exporter:0.15.0-debian-12-r38
- name: postgresql - name: postgresql

View File

@ -1445,8 +1445,8 @@ volumePermissions:
## ##
image: image:
registry: docker.io registry: docker.io
repository: bitnami/os-shell repository: freeleaps/os-shell
tag: 12-debian-12-r26 tag: 12-debian-12-r36
digest: "" digest: ""
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets. ## Optionally specify an array of imagePullSecrets.

View File

@ -2,7 +2,7 @@ annotations:
category: Database category: Database
images: | images: |
- name: os-shell - name: os-shell
image: docker.io/bitnami/os-shell:12-debian-12-r26 image: docker.io/freeleaps/os-shell:12-debian-12-r36
- name: redis-cluster - name: redis-cluster
image: docker.io/bitnami/redis-cluster:7.2.5-debian-12-r4 image: docker.io/bitnami/redis-cluster:7.2.5-debian-12-r4
- name: redis-exporter - name: redis-exporter

View File

@ -430,8 +430,8 @@ volumePermissions:
## ##
image: image:
registry: docker.io registry: docker.io
repository: bitnami/os-shell repository: freeleaps/os-shell
tag: 12-debian-12-r26 tag: 12-debian-12-r36
digest: "" digest: ""
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets. ## Optionally specify an array of imagePullSecrets.
@ -1128,8 +1128,8 @@ sysctlImage:
## @param sysctlImage.pullSecrets Specify docker-registry secret names as an array ## @param sysctlImage.pullSecrets Specify docker-registry secret names as an array
## ##
registry: docker.io registry: docker.io
repository: bitnami/os-shell repository: freeleaps/os-shell
tag: 12-debian-12-r26 tag: 12-debian-12-r36
digest: "" digest: ""
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets. ## Optionally specify an array of imagePullSecrets.