From 56755b83cc1307db30bcb259c2c1905564ff744b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Tue, 2 Aug 2016 14:46:33 +0300 Subject: [PATCH] Second attempt to fix #29585 --- examples/celery-rabbitmq/README.md | 11 ++++++++++- examples/celery-rabbitmq/flower-controller.yaml | 4 +++- examples/celery-rabbitmq/rabbitmq-controller.yaml | 7 +++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/examples/celery-rabbitmq/README.md b/examples/celery-rabbitmq/README.md index c5c9e9df0f34f..1b80aabec5c41 100644 --- a/examples/celery-rabbitmq/README.md +++ b/examples/celery-rabbitmq/README.md @@ -123,6 +123,13 @@ spec: resources: limits: cpu: 100m + livenessProbe: + httpGet: + # Path to probe; should be cheap, but representative of typical behavior + path: / + port: 5672 + initialDelaySeconds: 30 + timeoutSeconds: 1 ``` [Download example](rabbitmq-controller.yaml?raw=true) @@ -269,6 +276,8 @@ spec: containers: - image: endocode/flower name: flower + ports: + - containerPort: 5555 resources: limits: cpu: 100m @@ -276,7 +285,7 @@ spec: httpGet: # Path to probe; should be cheap, but representative of typical behavior path: / - port: 80 + port: 5555 initialDelaySeconds: 30 timeoutSeconds: 1 ``` diff --git a/examples/celery-rabbitmq/flower-controller.yaml b/examples/celery-rabbitmq/flower-controller.yaml index bf006e60283ae..5a830c06eef8d 100644 --- a/examples/celery-rabbitmq/flower-controller.yaml +++ b/examples/celery-rabbitmq/flower-controller.yaml @@ -15,6 +15,8 @@ spec: containers: - image: endocode/flower name: flower + ports: + - containerPort: 5555 resources: limits: cpu: 100m @@ -22,6 +24,6 @@ spec: httpGet: # Path to probe; should be cheap, but representative of typical behavior path: / - port: 80 + port: 5555 initialDelaySeconds: 30 timeoutSeconds: 1 diff --git a/examples/celery-rabbitmq/rabbitmq-controller.yaml b/examples/celery-rabbitmq/rabbitmq-controller.yaml index 5baa32c439378..9e6413038602a 100644 --- a/examples/celery-rabbitmq/rabbitmq-controller.yaml +++ b/examples/celery-rabbitmq/rabbitmq-controller.yaml @@ -20,3 +20,10 @@ spec: resources: limits: cpu: 100m + livenessProbe: + httpGet: + # Path to probe; should be cheap, but representative of typical behavior + path: / + port: 5672 + initialDelaySeconds: 30 + timeoutSeconds: 1