hongbo-miao/hongbomiao.com

View on GitHub
kubernetes/manifests/hm-kafka/opa-kafka-connect/postgres-kafka-connector.yaml

Summary

Maintainability
Test Coverage
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnector
metadata:
  name: postgres-kafka-connector
  namespace: hm-kafka
  labels:
    strimzi.io/cluster: hm-kafka-opa-kafka-connect
spec:
  class: io.debezium.connector.postgresql.PostgresConnector
  tasksMax: 1
  config:
    database.hostname: postgres-service.hm-postgres.svc
    database.port: 5432
    database.dbname: opa_db
    database.user: "${file:/opt/kafka/external-configuration/hm-opa-db-credentials-volume/opa-db-credentials.properties:postgres_user}"
    database.password: "${file:/opt/kafka/external-configuration/hm-opa-db-credentials-volume/opa-db-credentials.properties:postgres_password}"
    database.server.name: opa_db_server
    table.include.list: public.role