Created
December 26, 2018 17:08
-
-
Save jeffbeagley/7934fb90d3778519914ccd4521da2ca4 to your computer and use it in GitHub Desktop.
KSQL Server running within K8
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: 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