DEV Community

DarkEdges
DarkEdges

Posted on

Sync the Kafka Cluster CA Certificate into your namespace

Following on from KafkaUser in another namespace you will also need to sync the kafka-cluster-cluster-ca-cert too.

This is also straight forward and can be done with zero impact to existing services. The trick is to annotate the clusterCaCert generation with the necessary details

In your Kafka yaml add the following under kafka

    template:
      clusterCaCert:
        metadata:
          annotations:
            reflector.v1.k8s.emberstack.com/reflection-allowed: "true"
            reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: "fluent"
Enter fullscreen mode Exit fullscreen mode

and create a secret to mirror it

apiVersion: v1                                                                                  
kind: Secret
metadata:
  name: kafka-cluster-cluster-ca-cert                                                                             
  namespace: fluent
  annotations:
    reflector.v1.k8s.emberstack.com/reflects: "kafka/kafka-cluster-cluster-ca-cert"                                                                          
type: Opaque
Enter fullscreen mode Exit fullscreen mode

Once done this too will be mirrored and available for use.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more