Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created December 13, 2018 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/f75d344f0cb58e1827108c4f54e6fa0e to your computer and use it in GitHub Desktop.
Save abhirockzz/f75d344f0cb58e1827108c4f54e6fa0e to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka-producer-deployment
spec:
selector:
matchLabels:
app: kafka-producer
replicas: 1 # 1 instance only
template:
metadata:
labels:
app: kafka-producer
spec:
containers:
- name: kafka-producer
image: kafka-producer
imagePullPolicy: Never
env:
- name: KAFKA_BROKER
value: <KAFKA_HOST>:<PORT>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment