Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Lar apper konfigurere Connectors i Kafka-Connect via Kubernetes sine ConfigMaps.

License

Notifications You must be signed in to change notification settings

navikt/paw-kafka-connect-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka-Connect Operator

Lar apper konfigurere Connectors i Kafka-Connect via Kubernetes sine ConfigMaps.

Bruker shell-operator for å lytte på ConfigMaps som inneholder konfigurasjon for Connectors og sørger for å opprette, oppdatere, og slette Connectors.

Eksempel på en Connector i ConfigMap

Dette er et eksempel på en connector. Operatoren fanger opp alle ConfigMaps som har destination: connect som label. Flagget enabled kan brukes til å fort skru av/på en connector.

apiVersion: v1
kind: ConfigMap
metadata:
  name: paw-connect-data-inntekt-v27
  namespace: paw
  labels:
    team: paw
    destination: connect
    enabled: "false"
data:
  data-inntekt-v27.json: |-
    {
      "name": "data-inntekt-v27",
      "config": {
        "connector.class": "com.wepay.kafka.connect.bigquery.BigQuerySinkConnector",
        "autoCreateTables": "true",
        "sanitizeTopics": "true",
        "topics": "paw.data-inntekt-v27",
        "tasks.max": "1",
        "project": "",
        "defaultDataset": "dataprodukt",
        "transforms": "dropPrefix",
        "transforms.dropPrefix.type": "org.apache.kafka.connect.transforms.RegexRouter",
        "transforms.dropPrefix.regex": "paw\\.(.*)",
        "transforms.dropPrefix.replacement": "$1"
      }
    }

About

Lar apper konfigurere Connectors i Kafka-Connect via Kubernetes sine ConfigMaps.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •