Skip to content

Instantly share code, notes, and snippets.

@jeffbeagley
Created December 26, 2018 17:08
Show Gist options
  • Save jeffbeagley/7934fb90d3778519914ccd4521da2ca4 to your computer and use it in GitHub Desktop.
Save jeffbeagley/7934fb90d3778519914ccd4521da2ca4 to your computer and use it in GitHub Desktop.
KSQL Server running within K8
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ksql-server
namespace: kafka
labels:
app: ksql-server
spec:
replicas: 1
selector:
matchLabels:
app: ksql-server
template:
metadata:
labels:
app: ksql-server
spec:
containers:
- name: ksql-server
image: confluentinc/cp-ksql-server:5.1.0
env:
- name: KSQL_OPTS
value: "-Dbootstrap.servers=$(OUTSIDE_0_PORT_32400_TCP) -Dlisteners=http://0.0.0.0:8088"
- name: KSQL_BOOTSTRAP_SERVERS
value: $(OUTSIDE_0_PORT_32400_TCP)
- name: KSQL_SERVER_PORT
value: "8088"
- name: KSQL_PORT
value: "8088"
ports:
- containerPort: 8088
---
apiVersion: v1
kind: Service
metadata:
name: ksql
namespace: kafka
spec:
ports:
- port: 8088
selector:
app: ksql-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment