kafdrop 도 간단히 쓰기에 괜찮은데 :) thanks LinkedIn
kafka-ui 추가 구성해보는 이유는
클러스터 전체를 대시 보드 형태로 볼수 있고, 토픽, 파티션, 브로커, 컨슈머 상태 파악이나 메시지확인과 producing 테스트가 용이하고 Kafka의 보안설정과 연동한 권한 설정이 가능하다는 부분에 장점이 있기 때문이다.
설치해보자
kind: Deployment
apiVersion: apps/v1
metadata:
name: kafka-ui
spec:
replicas: 1
selector:
matchLabels:
app: kafka-ui
template:
metadata:
labels:
app: kafka-ui
spec:
containers:
- name: container
image: 'provectuslabs/kafka-ui:latest'
ports:
- containerPort: 8080
protocol: TCP
env:
- name: DYNAMIC_CONFIG_ENABLED
value: 'true'
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 1
progressDeadlineSeconds: 600
---
kind: Service
apiVersion: v1
metadata:
name: kafka-ui
spec:
ipFamilies:
- IPv4
ports:
- protocol: TCP
port: 8080
targetPort: 8080
internalTrafficPolicy: Cluster
type: ClusterIP
ipFamilyPolicy: SingleStack
sessionAffinity: None
selector:
app: kafka-ui
클러스터 정보를 등록하고 브로커를 조회해본다.

728x90
'CloudNative > App Definition & Developement' 카테고리의 다른 글
| confluentinc/cp-kafka KRaft yaml (zookeeper out) (2) | 2024.11.20 |
|---|---|
| confluentinc/cp-kafka, zookeeper, kafka-ui (1) | 2024.11.18 |
| sonarqube java ruleset (1) | 2024.05.24 |
| postgresql pgadmin helm install (0) | 2024.05.16 |
| on-prem k8s gitlab helm 구성 (2) | 2024.04.17 |