apiVersion: apps/v1
kind: Deployment
metadata:
  name: kafka
spec:
  selector:
    matchLabels:
      app: kafka
  replicas: 1
  template:
    metadata:
      labels:
        app: kafka
    spec:
      containers:
      - name: kafka
        image: 119.253.86.183:18080/hadoop/book2/kafka:2.11
        tty: true
        ports:
        - containerPort: 9092
