aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/kubernetes/pods/kafka.yaml
blob: 0bb8f1e5d7c1256919bbc15fb0d1fe595b3b9e19 (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
  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"