Created
December 13, 2018 18:37
-
-
Save abhirockzz/f75d344f0cb58e1827108c4f54e6fa0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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