aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/kubernetes/kafka.yaml
blob: 55d165f31b62f6ef216019510d8966d57cc981cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: v1
kind: Pod
metadata:
  name: kafka-server
  namespace: csit
spec:
  hostNetwork: true
  containers:
    - image: spotify/kafka
      name: kafka
      ports:
        - containerPort: 2181
          hostPort: 2181
          name: zookeeper
        - containerPort: 9092
          hostPort: 9092
          name: kafka
      env:
        - name: ADVERTISED_HOST
          value: "172.17.0.1"
        - name: ADVERTISED_PORT
          value: "9092"