分类
kafka

kubernetes kafka-client

镜像使用 https://hub.docker.com/r/confluentinc/cp-kafka/

kubectl apply -f kafka-client.yaml

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: kafka-client
  namespace: app
spec:
  selector:
    matchLabels:
      app: kafka-client
  template:
    metadata:
      labels:
        app: kafka-client
    spec:
      containers:
        - name: kafka-client
          image: confluentinc/cp-kafka
          imagePullPolicy: IfNotPresent
          command: ["sleep"]
          args: ["infinity"]

发表评论

电子邮件地址不会被公开。 必填项已用*标注