From 47910682edfadffccbf77b3f0b2722376dc37350 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Tue, 1 Aug 2017 07:35:06 +0200 Subject: New image uses config files instead of env --- 11confluent-config.yml | 9 +++++---- 61schemas.yml | 19 +++++++++++++------ 71rest.yml | 18 ++++++++++-------- 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/11confluent-config.yml b/11confluent-config.yml index 62d8993..df91677 100644 --- a/11confluent-config.yml +++ b/11confluent-config.yml @@ -19,8 +19,8 @@ data: # See the License for the specific language governing permissions and # limitations under the License. - listeners=http://0.0.0.0:8081 - kafkastore.connection.url=localhost:2181 + listeners=http://0.0.0.0:80 + kafkastore.connection.url=zookeeper:2181 kafkastore.topic=_schemas debug=false @@ -42,8 +42,9 @@ data: ## #id=kafka-rest-test-server - #schema.registry.url=http://localhost:8081 - #zookeeper.connect=localhost:2181 + listeners=http://0.0.0.0:80 + schema.registry.url=http://schemas.kafka.svc.cluster.local:80 + zookeeper.connect=zookeeper:2181 # # Configure interceptor classes for sending consumer and producer metrics to Confluent Control Center # Make sure that monitoring-interceptors-.jar is on the Java class path diff --git a/61schemas.yml b/61schemas.yml index 20d1868..8d098dd 100644 --- a/61schemas.yml +++ b/61schemas.yml @@ -11,14 +11,21 @@ spec: app: schema-registry spec: containers: - - name: cp-schema-registry - image: confluentinc/cp-schema-registry@sha256:ac1eb34d9a60ce8904eb1bc01fd94bf1f6513924ca507734679d4b513133714c + - name: cp + image: solsson/kafka-cp@sha256:53075cf5877c1311516d5c78a4d52fd46d3d369514681e150f96bc06997fa0e4 env: - - name: SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL - value: zookeeper:2181 + # what does this do? - name: SCHEMA_REGISTRY_HOST_NAME value: schemas - - name: SCHEMA_REGISTRY_LISTENERS - value: http://0.0.0.0:80 + command: + - schema-registry-start + - /etc/schema-registry/schema-registry.properties ports: - containerPort: 80 + volumeMounts: + - name: config + mountPath: /etc/schema-registry + volumes: + - name: config + configMap: + name: confluent-config diff --git a/71rest.yml b/71rest.yml index 8f52b42..987e013 100644 --- a/71rest.yml +++ b/71rest.yml @@ -11,16 +11,18 @@ spec: app: kafka-rest spec: containers: - - name: cp-kafka-rest - image: confluentinc/cp-kafka-rest@sha256:aa213c1a67eae6ce9836b52a9b5ecee4d6a0b44f2b9cc69f4e4de85131462f1d + - name: cp + image: solsson/kafka-cp@sha256:53075cf5877c1311516d5c78a4d52fd46d3d369514681e150f96bc06997fa0e4 env: - - name: KAFKA_REST_ZOOKEEPER_CONNECT - value: zookeeper:2181 + # what does this do? - name: KAFKA_REST_HOST_NAME value: rest - - name: KAFKA_REST_LISTENERS - value: http://0.0.0.0:80 - - name: KAFKA_REST_SCHEMA_REGISTRY_URL - value: http://schemas.kafka.svc.cluster.local:80 ports: - containerPort: 80 + volumeMounts: + - name: config + mountPath: /etc/kafka-rest + volumes: + - name: config + configMap: + name: confluent-config -- cgit v1.2.3