Kafka 백킹서비스 설치 디렉토리 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
wonho 2025-10-23 15:10:20 +09:00
parent 16f82d3553
commit 12baa4bc77
3 changed files with 131 additions and 0 deletions

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: kafka-external
namespace: kt-event-marketing
spec:
ports:
- name: tcp-client
port: 9092
protocol: TCP
targetPort: client
selector:
app.kubernetes.io/instance: kafka
app.kubernetes.io/name: kafka
app.kubernetes.io/part-of: kafka
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,54 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka-ui
labels:
app: kafka-ui
spec:
replicas: 1
selector:
matchLabels:
app: kafka-ui
template:
metadata:
labels:
app: kafka-ui
spec:
containers:
- name: kafka-ui
image: provectuslabs/kafka-ui:latest
env:
- name: KAFKA_CLUSTERS_0_NAME
value: "k8s-kafka"
- name: KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS
value: "kafka:9092"
- name: KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL
value: "PLAINTEXT"
- name: KAFKA_CLUSTERS_0_PROPERTIES_SASL_ENABLED
value: "false"
ports:
- containerPort: 8080
name: http
resources:
limits:
memory: "1Gi"
cpu: "500m"
requests:
memory: "512Mi"
cpu: "250m"
---
apiVersion: v1
kind: Service
metadata:
name: kafka-ui
labels:
app: kafka-ui
spec:
type: LoadBalancer
ports:
- port: 8080
targetPort: http
protocol: TCP
name: http
selector:
app: kafka-ui

View File

@ -0,0 +1,60 @@
# values.yaml
global:
storageClass: "managed"
auth:
clientProtocol: plaintext
interBrokerProtocol: plaintext
sasl:
enabled: false
tls:
enabled: false
listeners:
client:
protocol: PLAINTEXT
kraft:
enabled: true
controller:
replicaCount: 1
heapOpts: "-Xmx1g -Xms1g"
persistence:
enabled: true
size: 10Gi
resources:
limits:
memory: 2Gi
cpu: 1
requests:
memory: 1Gi
cpu: 1
broker:
replicaCount: 3
heapOpts: "-Xmx1g -Xms1g"
persistence:
enabled: true
size: 10Gi
resources:
limits:
memory: 2Gi
cpu: 1
requests:
memory: 1Gi
cpu: 1
deleteTopicEnable: true
autoCreateTopicsEnable: false
offsets:
topic:
replication:
factor: 3
segment:
bytes: 1073741824
image:
registry: docker.io
repository: bitnamilegacy/kafka