blob: a2e46ba9af879c5cfa2c697015032d8039ca9b31 (
plain) (
tree)
|
|
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: replicated-partitions
namespace: test-kafka
spec:
replicas: 1
selector:
matchLabels:
test-type: readiness
test-target: under-replicated-partitions
template:
metadata:
labels:
test-type: readiness
test-target: under-replicated-partitions
spec:
containers:
- name: kafka
image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
ports:
- containerPort: 80
command:
- tail
- -f
- /dev/null
readinessProbe:
exec:
command:
- /bin/bash
- -c
- >
[
$(
./bin/kafka-topics.sh
--zookeeper zookeeper.kafka:2181
--describe
--under-replicated-partitions
|
wc -l
)
-eq
0
]
periodSeconds: 30
timeoutSeconds: 29
|