Skip to content

Instantly share code, notes, and snippets.

@cemo
Created April 29, 2018 21:38
Show Gist options
  • Save cemo/6e7f4607d3b9abe66ffe08ee9c428761 to your computer and use it in GitHub Desktop.
Save cemo/6e7f4607d3b9abe66ffe08ee9c428761 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: kafka-manager
namespace: kafka
spec:
replicas: 1
selector:
matchLabels:
app: kafka-manager
template:
metadata:
labels:
app: kafka-manager
spec:
containers:
- name: kafka-manager
image: solsson/kafka-manager@sha256:5db7d54cdb642ec5a92f37a869fdcf2aa479b2552e900b2d2b83b38a1806c2de
command: ["/bin/sh","-c"]
args:
- sed -i.bak '/<\/configuration>/i\<logger name=\"kafka.manager.model\" level="OFF"/>\n' /opt/kafka-manager/conf/logback.xml;
cat /opt/kafka-manager/conf/logback.xml;
./bin/kafka-manager -Dhttp.port=80
ports:
- containerPort: 80
env:
- name: ZK_HOSTS
value: zookeeper.kafka:2181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment