From edeca3df36e72ddb464a10c580ae33b8ed1d2f17 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Mon, 7 Aug 2017 08:22:42 +0200 Subject: Moves to an addon folder, kubectl apply -f addon-cp/ --- addon-cp/rest.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 addon-cp/rest.yml (limited to 'addon-cp/rest.yml') diff --git a/addon-cp/rest.yml b/addon-cp/rest.yml new file mode 100644 index 0000000..f03f5b5 --- /dev/null +++ b/addon-cp/rest.yml @@ -0,0 +1,30 @@ +apiVersion: apps/v1beta1 +kind: Deployment +metadata: + name: rest + namespace: kafka +spec: + replicas: 1 + template: + metadata: + labels: + app: kafka-rest + spec: + containers: + - name: cp + image: solsson/kafka-cp@sha256:a22047b9e8bf4b8badfd2fbba47f2d1acdcbb84dfb03c61a15e1ac203036cedf + env: + - name: KAFKAREST_LOG4J_OPTS + value: -Dlog4j.configuration=file:/etc/kafka-rest/log4j.properties + command: + - kafka-rest-start + - /etc/kafka-rest/kafka-rest.properties + ports: + - containerPort: 80 + volumeMounts: + - name: config + mountPath: /etc/kafka-rest + volumes: + - name: config + configMap: + name: confluent-config -- cgit v1.2.3 From 4ee79a4e25325aad52ced1c771fe4e45316d0af8 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Mon, 7 Aug 2017 08:24:32 +0200 Subject: Stay online at update, even with only one replica --- addon-cp/rest.yml | 5 +++++ addon-cp/schemas.yml | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'addon-cp/rest.yml') diff --git a/addon-cp/rest.yml b/addon-cp/rest.yml index f03f5b5..a450eab 100644 --- a/addon-cp/rest.yml +++ b/addon-cp/rest.yml @@ -5,6 +5,11 @@ metadata: namespace: kafka spec: replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 template: metadata: labels: diff --git a/addon-cp/schemas.yml b/addon-cp/schemas.yml index f85d74c..00bd62f 100644 --- a/addon-cp/schemas.yml +++ b/addon-cp/schemas.yml @@ -5,6 +5,11 @@ metadata: namespace: kafka spec: replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 template: metadata: labels: -- cgit v1.2.3 From 2f946b26f308d2ee6e3eb2b0d307c30b98a462a4 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Mon, 7 Aug 2017 08:35:09 +0200 Subject: Adds readiness probes --- addon-cp/rest.yml | 4 ++++ addon-cp/schemas.yml | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'addon-cp/rest.yml') diff --git a/addon-cp/rest.yml b/addon-cp/rest.yml index a450eab..a08587d 100644 --- a/addon-cp/rest.yml +++ b/addon-cp/rest.yml @@ -24,6 +24,10 @@ spec: command: - kafka-rest-start - /etc/kafka-rest/kafka-rest.properties + readinessProbe: + httpGet: + path: / + port: 80 ports: - containerPort: 80 volumeMounts: diff --git a/addon-cp/schemas.yml b/addon-cp/schemas.yml index 00bd62f..8265640 100644 --- a/addon-cp/schemas.yml +++ b/addon-cp/schemas.yml @@ -24,6 +24,10 @@ spec: command: - schema-registry-start - /etc/schema-registry/schema-registry.properties + readinessProbe: + httpGet: + path: / + port: 80 ports: - containerPort: 80 volumeMounts: -- cgit v1.2.3 From c20adc0a6cfc54e91db66271ef7b7481d4ff7f0a Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Mon, 7 Aug 2017 08:36:04 +0200 Subject: Adds liveness probes identical to readiness --- addon-cp/rest.yml | 4 ++++ addon-cp/schemas.yml | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'addon-cp/rest.yml') diff --git a/addon-cp/rest.yml b/addon-cp/rest.yml index a08587d..60fcc31 100644 --- a/addon-cp/rest.yml +++ b/addon-cp/rest.yml @@ -28,6 +28,10 @@ spec: httpGet: path: / port: 80 + livenessProbe: + httpGet: + path: / + port: 80 ports: - containerPort: 80 volumeMounts: diff --git a/addon-cp/schemas.yml b/addon-cp/schemas.yml index 8265640..4d99ce0 100644 --- a/addon-cp/schemas.yml +++ b/addon-cp/schemas.yml @@ -28,6 +28,10 @@ spec: httpGet: path: / port: 80 + livenessProbe: + httpGet: + path: / + port: 80 ports: - containerPort: 80 volumeMounts: -- cgit v1.2.3 From 3b6a11ecfd707e738b6e65c4c179048e77336dfd Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Tue, 3 Oct 2017 15:29:59 +0200 Subject: Confluent platform built from same java image as kafka:0.11.0.1 --- addon-cp/rest.yml | 2 +- addon-cp/schemas.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'addon-cp/rest.yml') diff --git a/addon-cp/rest.yml b/addon-cp/rest.yml index 60fcc31..c835ebf 100644 --- a/addon-cp/rest.yml +++ b/addon-cp/rest.yml @@ -17,7 +17,7 @@ spec: spec: containers: - name: cp - image: solsson/kafka-cp@sha256:a22047b9e8bf4b8badfd2fbba47f2d1acdcbb84dfb03c61a15e1ac203036cedf + image: solsson/kafka-cp@sha256:89e5b3b326bf8ef888efa9501cd22fb941ca7b5ccef8dfc2f44a1e218f4427e1 env: - name: KAFKAREST_LOG4J_OPTS value: -Dlog4j.configuration=file:/etc/kafka-rest/log4j.properties diff --git a/addon-cp/schemas.yml b/addon-cp/schemas.yml index 4d99ce0..c762d63 100644 --- a/addon-cp/schemas.yml +++ b/addon-cp/schemas.yml @@ -17,7 +17,7 @@ spec: spec: containers: - name: cp - image: solsson/kafka-cp@sha256:a22047b9e8bf4b8badfd2fbba47f2d1acdcbb84dfb03c61a15e1ac203036cedf + image: solsson/kafka-cp@sha256:89e5b3b326bf8ef888efa9501cd22fb941ca7b5ccef8dfc2f44a1e218f4427e1 env: - name: SCHEMA_REGISTRY_LOG4J_OPTS value: -Dlog4j.configuration=file:/etc/schema-registry/log4j.properties -- cgit v1.2.3